fisker Cheung
7e73f1cf0d
Update cSpell config ( #12154 )
2022-01-27 15:03:49 +08:00
Sosuke Suzuki
23dea6c0bb
Reduce JS parsers bundle size 2 ( #12164 )
...
* Move get-shebang
* Use `getLast` directly
* Move `isNonEmptyArray`
2022-01-27 15:44:53 +09:00
fisker Cheung
54e9feb2d3
Build: Add --report flag ( #12159 )
2022-01-27 11:16:50 +08:00
fisker Cheung
b08b79cc87
Update build script ( #12157 )
2022-01-27 09:37:55 +08:00
Sosuke Suzuki
d13feed42b
Reduce JS parsers bundle size ( #12156 )
...
* Extract utils
* utils.js -> utils/index.js
* Fix linter
2022-01-26 23:29:19 +09:00
fisker Cheung
f2ab2f9306
Remove useless TypeScriptServices from parser-typescript.js ( #12155 )
2022-01-26 22:27:10 +08:00
fisker Cheung
f265e584df
Build: Add --no-babel flag ( #12153 )
2022-01-26 20:33:15 +08:00
fisker Cheung
93af7641c9
Remove ts.sys in parser-typescript.js ( #12151 )
2022-01-26 19:38:03 +08:00
fisker Cheung
d5bf36060f
Exclude process shim ( #12149 )
2022-01-26 19:08:55 +08:00
fisker Cheung
7fbd4fcab3
Replace esbuild-plugin-browserslist with browserslist-to-esbuild ( #12150 )
2022-01-26 17:55:45 +08:00
fisker Cheung
2c5839b4ac
Exclude assert shim ( #12147 )
2022-01-26 08:56:44 +08:00
Joel Bradshaw and fisker Cheung
38b5b98393
Clarify documentation around proseWrap ( #12134 )
...
* Clarify documentation around proseWrap
These docs were a bit misleading, describing never as "opt-out" when it in fact can result in massive changes in an existing wrapped file is confusing, and referring to the default behavior as "wrapping as-is" is confusing, because Prettier isn't actually doing any wrapping - it's just leaving it as-is. Hopefully this is clearer.
* Update stable version docs
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-01-26 00:33:05 +09:00
dependabot[bot]
4dd195099e
Build(deps): Bump typescript from 4.5.4 to 4.5.5 ( #12119 )
2022-01-24 12:05:25 +00:00
dependabot[bot] and fisker Cheung
7b480b1400
Build(deps-dev): Bump esbuild from 0.14.11 to 0.14.13 ( #12129 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-01-24 17:29:31 +08:00
dependabot[bot] and fisker Cheung
249096c749
Build(deps): Bump @babel/parser from 7.16.8 to 7.16.12 ( #12126 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-01-24 17:29:19 +08:00
dependabot[bot]
07c2158c7b
Build(deps-dev): Bump node-fetch from 3.1.0 to 3.1.1 ( #12135 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-24 15:21:21 +08:00
dependabot[bot]
361e4aeb06
Build(deps): Bump @typescript-eslint/typescript-estree ( #12121 )
2022-01-24 03:49:09 +00:00
dependabot[bot]
a67bae33a3
Build(deps): Bump @typescript-eslint/typescript-estree ( #12121 )
2022-01-24 03:49:04 +00:00
dependabot[bot]
15c4815f26
Build(deps): Bump node-fetch from 3.1.0 to 3.2.0 in /scripts/release ( #12133 )
2022-01-24 03:45:06 +00:00
dependabot[bot]
d914180f51
Build(deps-dev): Bump @babel/core from 7.16.7 to 7.16.12 ( #12132 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.16.7 to 7.16.12.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.12/packages/babel-core )
---
updated-dependencies:
- dependency-name: "@babel/core"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-23 23:31:55 +08:00
dependabot[bot]
7c3433cbb8
Build(deps): Bump resolve from 1.21.0 to 1.22.0 ( #12130 )
2022-01-23 10:30:44 +00:00
dependabot[bot]
9ff346720e
Build(deps-dev): Bump webpack from 5.66.0 to 5.67.0 in /website ( #12120 )
2022-01-23 08:24:29 +00:00
dependabot[bot]
6a4bb95b18
Build(deps-dev): Bump @babel/preset-env from 7.16.8 to 7.16.11 ( #12124 )
2022-01-23 08:15:44 +00:00
dependabot[bot]
a184c296da
Build(deps-dev): Bump @typescript-eslint/eslint-plugin ( #12127 )
2022-01-23 08:13:43 +00:00
dependabot[bot]
d35c730a29
Build(deps-dev): Bump esbuild-plugin-browserslist from 0.4.1 to 0.4.2 ( #12128 )
...
Bumps esbuild-plugin-browserslist from 0.4.1 to 0.4.2.
---
updated-dependencies:
- dependency-name: esbuild-plugin-browserslist
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-23 16:12:01 +08:00
dependabot[bot]
181109df67
Build(deps-dev): Bump cspell from 5.15.2 to 5.16.0 ( #12131 )
...
Bumps [cspell](https://github.com/streetsidesoftware/cspell ) from 5.15.2 to 5.16.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases )
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md )
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.15.2...v5.16.0 )
---
updated-dependencies:
- dependency-name: cspell
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-23 13:43:12 +08:00
Sosuke Suzuki
db73cc8e0c
Print end-of-line comment for continue/break statements ( #12075 )
...
* Add handleBreakAndContinueStatementComments to handleEndOfLineComment
* Add tests
* Add changelog
* Update tests
* Add more tests
* Fix for own line comments
* Fix tests
* Fix tests
* Fix tests
* Add unstable tests
2022-01-19 22:29:37 +09:00
fisker Cheung
27e7376229
Fix hangs on invalid v-for ( #12113 )
2022-01-19 20:53:17 +08:00
fisker Cheung
53da86c34d
Fix some lgtm alerts ( #12084 )
2022-01-17 09:19:50 +08:00
Jed Fox
f29a7565e9
Collapse JSXExpressionContainer → AwaitExpression → JSXElement ( #12109 )
2022-01-16 14:59:22 -05:00
dependabot[bot]
76ae21044c
Build(deps): Bump @typescript-eslint/typescript-estree ( #12103 )
2022-01-16 09:53:46 +00:00
dependabot[bot]
54045e38bd
Build(deps-dev): Bump esbuild from 0.14.10 to 0.14.11 ( #12102 )
2022-01-16 09:47:39 +00:00
dependabot[bot]
9f54d2dc2f
Build(deps-dev): Bump eslint-plugin-unicorn from 40.0.0 to 40.1.0 ( #12107 )
2022-01-16 09:13:53 +00:00
dependabot[bot]
f6fa479e0b
Build(deps-dev): Bump @typescript-eslint/eslint-plugin ( #12095 )
2022-01-16 08:07:12 +00:00
dependabot[bot]
bd8a74b13b
Build(deps-dev): Bump cspell from 5.15.1 to 5.15.2 ( #12098 )
2022-01-16 08:03:04 +00:00
dependabot[bot]
ac317e9ece
Build(deps-dev): Bump @babel/preset-env from 7.16.7 to 7.16.8 ( #12096 )
2022-01-16 07:55:42 +00:00
dependabot[bot]
b0f1256de8
Build(deps-dev): Bump eslint from 8.6.0 to 8.7.0 ( #12106 )
2022-01-16 07:45:28 +00:00
dependabot[bot]
abf96e387e
Build(deps): Bump string-width from 5.0.1 to 5.1.0 in /scripts/release ( #12104 )
2022-01-16 05:16:17 +00:00
dependabot[bot]
e22c2a4c2d
Build(deps): Bump fast-glob from 3.2.9 to 3.2.11 ( #12100 )
2022-01-16 05:13:40 +00:00
dependabot[bot]
ae92a2157d
Build(deps-dev): Bump eslint-plugin-jest from 25.3.4 to 25.7.0 ( #12094 )
2022-01-16 05:11:12 +00:00
dependabot[bot]
c8553db9fa
Build(deps-dev): Bump webpack from 5.65.0 to 5.66.0 in /website ( #12093 )
2022-01-16 05:09:43 +00:00
dependabot[bot]
c1131fdab8
Build(deps): Bump @babel/parser from 7.16.7 to 7.16.8 ( #12092 )
2022-01-16 05:09:12 +00:00
dependabot[bot]
b874522c9d
Build(deps-dev): Bump @babel/types from 7.16.7 to 7.16.8 ( #12091 )
2022-01-16 05:08:57 +00:00
dependabot[bot]
6c0749f4c6
Build(deps-dev): Bump core-js from 3.20.2 to 3.20.3 ( #12089 )
2022-01-16 05:08:38 +00:00
fisker Cheung
16aa669141
Update rollup-plugin-license ( #12081 )
2022-01-16 10:21:29 +08:00
Jed Fox
920283a1dd
Inline await expressions in JSX ( #12088 )
2022-01-15 16:00:39 -05:00
fisker Cheung
cc6856ae20
Build: Switch to esbuild (backport #12052 and #10006 ) ( #12055 )
2022-01-14 15:58:13 +08:00
Sosuke Suzuki
6ccc462409
Print comments for parenthesized TS keyword types ( #12070 )
...
* Prefer node.start for TS keyword types
* Add tests
* Add changelog
* Refactor
* Use isTsKeywordType
* Fix lint problems
2022-01-13 09:54:06 +09:00
翠 / green and fisker Cheung
dd3e1a49e0
Improved performance with large HTML files ( #11696 )
...
* Simplify Object.assign
* Remove copying ast inside addIsSpaceSensitive
* Remove copying ast inside extractWhitespaces
* Remove copying ast inside removeIgnorableFirstLf
* Remove copying ast inside mergeIeConditonalStartEndCommentIntoElementOpeningTag
* Remove copying ast inside mergeNodeIntoText
* Remove copying ast inside mergeSimpleElementIntoText
* Remove copying ast inside extractInterpolation
* Remove copying ast inside _parse
* Remove copying ast inside preprocess
* Fix lint
* Refactor index/next/prev recalculation with loop
* Remove redundant condition
Co-authored-by: fisker Cheung <lionkay@gmail.com >
* Remove index/siblings from properties
* Define and use replaceChild method
* Change prev/next into getter
* Make parent non writable
* setNonEnumerableProperties to setNonEnumerableProperty
* Set parent with constructor
* Make parent a normal property
* Use child.prev/next
* Remove parent parameter from constructor
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-01-11 10:06:46 -03:00
Sosuke Suzuki
c083abac94
Enable @typescript-eslint/prefer-ts-expect-error ( #12071 )
...
* Add @typescript-eslint/eslint-plugin
* Enable prefer-ts-expect-error
* Address review
2022-01-10 10:35:09 +09:00