chore(deps): update all non-major dependencies
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@babel/core (source) | devDependencies | patch | 7.20.2 -> 7.20.12 |
@open-wc/scoped-elements (source) | dependencies | patch | 2.1.3 -> 2.1.4 |
@rollup/plugin-commonjs (source) | devDependencies | patch | 23.0.3 -> 23.0.7 |
@rollup/plugin-terser (source) | devDependencies | minor | ^0.1.0 -> ^0.3.0 |
@webcomponents/scoped-custom-element-registry (source) | dependencies | patch | ^0.0.6 -> ^0.0.7 |
eslint (source) | devDependencies | minor | 8.28.0 -> 8.32.0 |
fabric (source) | dependencies | minor | 5.2.4 -> 5.3.0 |
glob | devDependencies | minor | 8.0.3 -> 8.1.0 |
lit (source) | dependencies | minor | 2.4.1 -> 2.6.1 |
mocha (source) | devDependencies | minor | 10.1.0 -> 10.2.0 |
playwright-core (source) | devDependencies | minor | 1.28.1 -> 1.29.2 |
prettier (source) | devDependencies | patch | 2.8.0 -> 2.8.3 |
rollup (source) | devDependencies | minor | 3.5.0 -> 3.10.0 |
⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.
Release Notes
babel/babel
v7.20.12
🐛 Bug Fix
-
babel-traverse
-
babel-helper-create-class-features-plugin
,babel-plugin-proposal-class-properties
-
#15312 fix:
delete this
in static class properties initialization (@SuperSodaSea)
-
#15312 fix:
💅 Polish
v7.20.7
👓 Spec Compliance
-
babel-helper-member-expression-to-functions
,babel-helper-replace-supers
,babel-plugin-proposal-class-properties
,babel-plugin-transform-classes
- #15223 fix: Deleting super property should throw (@SuperSodaSea)
-
babel-helpers
,babel-plugin-proposal-class-properties
,babel-plugin-transform-classes
,babel-plugin-transform-object-super
- #15241 fix: Throw correct error types from sed ant class TDZ helpers (@SuperSodaSea)
🐛 Bug Fix
-
babel-parser
,babel-plugin-transform-typescript
- #15209 fix: Support auto accessors with TypeScript annotations (@liuxingbaoyu)
-
babel-traverse
-
#15287 Fix
.parentPath
after rename inSwitchCase
(@nicolo-ribaudo)
-
#15287 Fix
-
babel-plugin-transform-typescript
,babel-traverse
- #15284 fix: Ts import type and func with duplicate name (@liuxingbaoyu)
-
babel-plugin-transform-block-scoping
- #15278 Fix tdz analysis for reassigned captured for bindings (@nicolo-ribaudo)
-
babel-plugin-proposal-async-generator-functions
,babel-preset-env
-
#15235 fix: Transform
for await
with shadowed variables (@liuxingbaoyu)
-
#15235 fix: Transform
-
babel-generator
,babel-plugin-proposal-optional-chaining
-
#15258 fix: Correctly generate
(a ?? b) as T
(@liuxingbaoyu)
-
#15258 fix: Correctly generate
-
babel-plugin-transform-react-jsx
,babel-types
-
#15233 fix: Emit correct sourcemap ranges for
JSXText
(@liuxingbaoyu)
-
#15233 fix: Emit correct sourcemap ranges for
-
babel-core
,babel-helpers
,babel-plugin-transform-computed-properties
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
- #15232 fix: Computed properties should keep original definition order (@SuperSodaSea)
-
babel-helper-member-expression-to-functions
,babel-helper-replace-supers
,babel-plugin-proposal-class-properties
,babel-plugin-transform-classes
- #15223 fix: Deleting super property should throw (@SuperSodaSea)
-
babel-generator
-
#15216 fix: Print newlines for leading Comments of
TSEnumMember
(@liuxingbaoyu)
-
#15216 fix: Print newlines for leading Comments of
💅 Polish
-
babel-plugin-transform-block-scoping
,babel-traverse
- #15275 Improve relative execution tracking in fn exprs (@nicolo-ribaudo)
🏠 Internal
-
babel-helper-define-map
,babel-plugin-transform-property-mutators
-
#15274 Inline & simplify
@babel/helper-define-map
(@nicolo-ribaudo)
-
#15274 Inline & simplify
-
babel-core
,babel-plugin-proposal-class-properties
,babel-plugin-transform-block-scoping
,babel-plugin-transform-classes
,babel-plugin-transform-destructuring
,babel-plugin-transform-parameters
,babel-plugin-transform-regenerator
,babel-plugin-transform-runtime
,babel-preset-env
,babel-traverse
-
#15200 Rewrite
transform-block-scoping
plugin (@nicolo-ribaudo)
-
#15200 Rewrite
:running_woman: Performance
-
babel-helper-compilation-targets
-
#15228 perf: Speed up
getTargets
(@liuxingbaoyu)
-
#15228 perf: Speed up
v7.20.5
👓 Spec Compliance
-
babel-helpers
,babel-plugin-transform-destructuring
,babel-plugin-transform-modules-commonjs
,babel-preset-env
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
,babel-traverse
- #15183 Improve array destructuring spec compliance (@SuperSodaSea)
-
babel-cli
,babel-helpers
,babel-plugin-proposal-class-properties
,babel-plugin-proposal-class-static-block
,babel-plugin-transform-classes
,babel-plugin-transform-runtime
,babel-preset-env
-
babel-helper-create-class-features-plugin
,babel-helpers
,babel-plugin-proposal-decorators
,babel-plugin-proposal-private-property-in-object
,babel-preset-env
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
🐛 Bug Fix
-
babel-parser
-
babel-helper-wrap-function
,babel-preset-env
,babel-traverse
-
#15181 fix: Edge cases for async functions and
noNewArrow
assumption (@liuxingbaoyu)
-
#15181 fix: Edge cases for async functions and
-
babel-plugin-transform-arrow-functions
,babel-plugin-transform-parameters
,babel-traverse
-
#15163 fix: Throw error when compiling
super()
in arrow functions with default / rest parameters (@SuperSodaSea)
-
#15163 fix: Throw error when compiling
-
babel-helpers
,babel-node
,babel-plugin-proposal-async-generator-functions
,babel-plugin-transform-regenerator
,babel-preset-env
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
-
#15194 fix: Bump
regenerator
and add tests (@SuperSodaSea)
-
#15194 fix: Bump
-
babel-helper-create-regexp-features-plugin
-
#15192 fix: Update
regjsparser
for@babel/standalone
(@liuxingbaoyu)
-
#15192 fix: Update
-
babel-parser
,babel-types
- #15109 fix: Babel 8 types (@liuxingbaoyu)
-
babel-generator
-
#15143 Don't print inner comments as leading when wrapping in
(``)
(@nicolo-ribaudo)
-
#15143 Don't print inner comments as leading when wrapping in
-
babel-plugin-transform-block-scoping
,babel-traverse
-
#15167 Register
switch
'sdiscriminant
in the outer scope (@nicolo-ribaudo)
-
#15167 Register
💅 Polish
-
babel-generator
-
#15173 Improve generator behavior when
comments:false
(@liuxingbaoyu)
-
#15173 Improve generator behavior when
-
babel-plugin-transform-block-scoping
- #15164 Only extract IDs for TDZ checks in assign when necessary (@nicolo-ribaudo)
🏠 Internal
open-wc/open-wc
v2.1.4
Patch Changes
-
89fb560
: Add type entrypoint which enables you to get more advanced type information likeimport { ScopedElementsHost } from '@​open-wc/scoped-elements/types.js';
rollup/plugins (@rollup/plugin-commonjs)
v23.0.7
2022-12-17
Bugfixes
- fix: produce code which works when __esModule is already defined #1379
v23.0.6
2022-12-17
Bugfixes
- fix: update magic-string #1373
v23.0.5
2022-12-15
Bugfixes
- fix: resolve export exports not found #1363
v23.0.4
2022-12-07
Bugfixes
rollup/plugins (@rollup/plugin-terser)
v0.3.0
2023-01-06
Features
- feat: emit source map #1383
v0.2.1
2022-12-21
Bugfixes
- fix: __filename not defined #1367
v0.2.0
2022-12-05
Features
- feat: parallel execution #1341
webcomponents/polyfills
v0.0.7
Fixed
- Polyfilled ElementInternals prototype methods now return their original value.
eslint/eslint
v8.32.0
Features
Bug Fixes
Documentation
-
17b65ad
docs: IA Update page URL move (#16665) (Ben Perlmutter) -
5981296
docs: fix theme switcher button (#16752) (Sam Chen) -
6669413
docs: deploy prerelease docs under the/docs/next/
path (#16541) (Nitin Kumar) -
78ecfe0
docs: use inline code for rule options name (#16768) (Percy Ma) -
fc2ea59
docs: Update README (GitHub Actions Bot) -
762a872
docs: Update README (GitHub Actions Bot)
Chores
-
2952d6e
chore: sync templates/*.md files with issue templates (#16758) (gfyoung) -
3e34418
chore: Add new issues to triage project (#16740) (Nicholas C. Zakas)
v8.31.0
Features
-
52c7c73
feat: check assignment patterns in no-underscore-dangle (#16693) (Milos Djermanovic) -
b401cde
feat: add options to check destructuring in no-underscore-dangle (#16006) (Morten Kaltoft) -
30d0daf
feat: group properties with values in parentheses inkey-spacing
(#16677) (Francesco Trotta)
Bug Fixes
-
35439f1
fix: correct syntax error inprefer-arrow-callback
autofix (#16722) (Francesco Trotta) -
87b2470
fix: new instance of FlatESLint should load latest config file version (#16608) (Milos Djermanovic)
Documentation
-
4339dc4
docs: Update README (GitHub Actions Bot) -
4e4049c
docs: optimize code block structure (#16669) (Sam Chen) -
54a7ade
docs: do not escape code blocks of formatters examples (#16719) (Sam Chen) -
e5ecfef
docs: Add function call example for no-undefined (#16712) (Elliot Huffman) -
a3262f0
docs: Add mastodon link (#16638) (Amaresh S M) -
a14ccf9
docs: clarify files property (#16709) (Sam Chen) -
3b29eb1
docs: fix npm link (#16710) (Abdullah Osama) -
a638673
docs: fix search bar focus onEsc
(#16700) (Shanmughapriyan S) -
f62b722
docs: country flag missing in windows (#16698) (Shanmughapriyan S) -
4d27ec6
docs: display zh-hans in the docs language switcher (#16686) (Percy Ma) -
8bda20e
docs: remove manually maintained anchors (#16685) (Percy Ma) -
b68440f
docs: User Guide Getting Started expansion (#16596) (Ben Perlmutter)
Chores
-
65d4e24
chore: Upgrade @eslint/eslintrc@1.4.1 (#16729) (Brandon Mills) -
8d93081
chore: fix CI failure (#16721) (Sam Chen) -
8f17247
chore: Set up automatic updating of README (#16717) (Nicholas C. Zakas) -
4cd87cb
ci: bump actions/stale from 6 to 7 (#16713) (dependabot[bot]) -
fd20c75
chore: sort package.json scripts in alphabetical order (#16705) (Darius Dzien) -
10a5c78
chore: update ignore patterns ineslint.config.js
(#16678) (Milos Djermanovic)
v8.30.0
Features
-
075ef2c
feat: add suggestion for no-return-await (#16637) (Daniel Bartholomae) -
7190d98
feat: update globals (#16654) (Sébastien Règne)
Bug Fixes
-
1a327aa
fix: Ensure flat config unignores work consistently like eslintrc (#16579) (Nicholas C. Zakas) -
9b8bb72
fix: autofix recursive functions in no-var (#16611) (Milos Djermanovic)
Documentation
-
6a8cd94
docs: Clarify Discord info in issue template config (#16663) (Nicholas C. Zakas) -
ad44344
docs: CLI documentation standardization (#16563) (Ben Perlmutter) -
293573e
docs: fix broken line numbers (#16606) (Sam Chen) -
fa2c64b
docs: use relative links for internal links (#16631) (Percy Ma) -
75276c9
docs: reorder options in no-unused-vars (#16625) (Milos Djermanovic) -
7276fe5
docs: Fix anchor in URL (#16628) (Karl Horky) -
6bef135
docs: don't apply layouts to html formatter example (#16591) (Tanuj Kanti) -
dfc7ec1
docs: Formatters page updates (#16566) (Ben Perlmutter) -
8ba124c
docs: update theprefer-const
example (#16607) (Pavel) -
e6cb05a
docs: fix css leaking (#16603) (Sam Chen)
Chores
-
f2c4737
chore: upgrade @eslint/eslintrc@1.4.0 (#16675) (Milos Djermanovic) -
ba74253
chore: standardize npm script names per #14827 (#16315) (Patrick McElhaney) -
0d9af4c
ci: fix npm v9 problem withfile:
(#16664) (Milos Djermanovic) -
90c9219
refactor: migrate off deprecated function-style rules in all tests (#16618) (Bryan Mishkin)
v8.29.0
Features
-
49a07c5
feat: addallowParensAfterCommentPattern
option to no-extra-parens (#16561) (Nitin Kumar) -
e6a865d
feat:prefer-named-capture-group
add suggestions (#16544) (Josh Goldberg) -
a91332b
feat: In no-invalid-regexp validate flags also for non-literal patterns (#16583) (trosos)
Documentation
-
0311d81
docs: Configuring Plugins page intro, page tweaks, and rename (#16534) (Ben Perlmutter) -
57089b1
docs: add a property assignment example for camelcase rule (#16605) (Milos Djermanovic) -
b6ab030
docs: add docs codeowners (#16601) (Strek) -
6380c87
docs: fix sitemap and feed (#16592) (Milos Djermanovic) -
ade621d
docs: perf debounce the search query (#16586) (Shanmughapriyan S) -
fbcf3ab
docs: fix searchbar clear button (#16585) (Shanmughapriyan S) -
f894035
docs: HTTPS link to yeoman.io (#16582) (Christian Oliff) -
de12b26
docs: Update configuration file pages (#16509) (Ben Perlmutter) -
1ae9f20
docs: update correct code examples forno-extra-parens
rule (#16560) (Nitin Kumar)
Chores
lit/lit
v2.6.1
Patch Changes
-
#3526
65e56655
- Disable ShadyDOM noPatch in Node dev build. This fixes the issue of throwing due to undefinedwindow
. -
#3561
e5c254e9
- Fix built-in shimming ofHTMLElement
for Node build ofreactive-element
to respect existingHTMLElement
in global
v2.6.0
Minor Changes
-
#3522
72fcf0d7
- When running in Node, Lit now automatically includes minimal DOM shims which are sufficient for most SSR (Server Side Rendering) use-cases, removing the need to import the global DOM shim from@lit-labs/ssr
.The new
@lit-labs/ssr-dom-shim
package has been introduced, which exports anHTMLElement
,CustomElementRegistry
, and defaultcustomElements
singleton.The existing
@lit-labs/ssr
global DOM shim can still be used, and is compatible with the new package, because@lit-labs/ssr
imports from@lit-labs/ssr-dom-shim
. Importing the global DOM shim adds more APIs to the global object, such as a globalHTMLElement
,TreeWalker
,fetch
, and other APIs. It is recommended that users try to remove usage of the@lit-labs/ssr
DOM shim, and instead rely on the more minimal, automatic shimming that@lit/reactive-element
now provides automatically.
Patch Changes
- Updated dependencies [
72fcf0d7
]:- @lit/reactive-element@1.6.0
- lit-html@2.6.0
v2.5.0
Minor Changes
-
#3507
b152db29
-lit-html
andreactive-element
now include development Node builds with unminified code and dev warnings.
Patch Changes
- Updated dependencies [
b152db29
]:- lit-html@2.5.0
- @lit/reactive-element@1.5.0
mochajs/mocha
v10.2.0
🎉 Enhancements
🐛 Fixes
- #4946: Browser: color of failed test icon (@kleisauke)
📖 Documentation
- #4944: Remove duplicated header (@PauloGoncalvesBH)
Microsoft/playwright
v1.29.2
Highlights
https://github.com/microsoft/playwright/issues/19661 - [BUG] 1.29.1 browserserver + page.goto = net::ERR_SOCKS_CONNECTION_FAILED
Browser Versions
- Chromium 109.0.5414.46
- Mozilla Firefox 107.0
- WebKit 16.4
This version was also tested against the following stable channels:
- Google Chrome 108
- Microsoft Edge 108
v1.29.1
Highlights
https://github.com/microsoft/playwright/issues/18928 - [BUG] Electron firstWindow times out after upgrading to 1.28.0 https://github.com/microsoft/playwright/issues/19246 - [BUG] Electron firstWindow times out after upgrading to 1.28.1 https://github.com/microsoft/playwright/issues/19412 - [REGRESSION]: 1.28 does not work with electron-serve anymore. https://github.com/microsoft/playwright/issues/19540 - [BUG] electron.app.getAppPath() returns the path one level higher if you run electron pointing to the directory https://github.com/microsoft/playwright/issues/19548 - [REGRESSION]: Ubuntu 18 LTS not supported anymore
Browser Versions
- Chromium 109.0.5414.46
- Mozilla Firefox 107.0
- WebKit 16.4
This version was also tested against the following stable channels:
- Google Chrome 108
- Microsoft Edge 108
v1.29.0
New APIs
-
New method
route.fetch()
and new optionjson
forroute.fulfill()
:await page.route('**/api/settings', async route => { // Fetch original settings. const response = await route.fetch(); // Force settings theme to a predefined value. const json = await response.json(); json.theme = 'Solorized'; // Fulfill with modified data. await route.fulfill({ json }); });
-
New method
locator.all()
to iterate over all matching elements:// Check all checkboxes! const checkboxes = page.getByRole('checkbox'); for (const checkbox of await checkboxes.all()) await checkbox.check();
-
Locator.selectOption
matches now by value or label:<select multiple> <option value="red">Red</div> <option value="green">Green</div> <option value="blue">Blue</div> </select>
await element.selectOption('Red');
-
Retry blocks of code until all assertions pass:
await expect(async () => { const response = await page.request.get('https://api.example.com'); await expect(response).toBeOK(); }).toPass();
Read more in our documentation.
-
Automatically capture full page screenshot on test failure:
// playwright.config.ts import type { PlaywrightTestConfig } from '@​playwright/test'; const config: PlaywrightTestConfig = { use: { screenshot: { mode: 'only-on-failure', fullPage: true, } } }; export default config;
Miscellaneous
- Playwright Test now respects
jsconfig.json
. - New options
args
andproxy
forandroidDevice.launchBrowser()
. - Option
postData
in methodroute.continue()
now supports serializable values.
Browser Versions
- Chromium 109.0.5414.46
- Mozilla Firefox 107.0
- WebKit 16.4
This version was also tested against the following stable channels:
- Google Chrome 108
- Microsoft Edge 108
prettier/prettier
v2.8.3
#14170 by @fisker)
Allow self-closing tags on custom elements (See Angular v15.1.0 release note for details.
// Input
<app-test/>
// Prettier 2.8.2
SyntaxError: Only void and foreign elements can be self closed "app-test" (1:1)
> 1 | <app-test/>
| ^^^^^^^^^
2 |
// Prettier 2.8.3
<app-test />
v2.8.2
#13155 by @DerekNonGeneric & @fisker)
Don't lowercase link references (<!-- Input -->
We now don't strictly follow the release notes format suggested by [Keep a Changelog].
[Keep a Changelog]: https://example.com/
<!-- Prettier 2.8.1 -->
We now don't strictly follow the release notes format suggested by [Keep a Changelog].
[keep a changelog]: https://example.com/
<!--
^^^^^^^^^^^^^^^^^^ lowercased
-->
<!-- Prettier 2.8.2 -->
<Same as input>
#13691 by @dcyriller)
Preserve self-closing tags ({{! Input }}
<div />
<div></div>
<custom-component />
<custom-component></custom-component>
<i />
<i></i>
<Component />
<Component></Component>
{{! Prettier 2.8.1 }}
<div></div>
<div></div>
<custom-component></custom-component>
<custom-component></custom-component>
<i></i>
<i></i>
<Component />
<Component />
{{! Prettier 2.8.2 }}
<div />
<div></div>
<custom-component />
<custom-component></custom-component>
<i />
<i></i>
<Component />
<Component />
#13930 by @jamescdavis)
Allow custom "else if"-like blocks with block params (#13507 added support for custom block keywords used with else
, but failed to allow block params. This updates printer-glimmer to allow block params with custom "else if"-like blocks.
{{! Input }}
{{#when isAtWork as |work|}}
Ship that
{{work}}!
{{else when isReading as |book|}}
You can finish
{{book}}
eventually...
{{else}}
Go to bed!
{{/when}}
{{! Prettier 2.8.1 }}
{{#when isAtWork as |work|}}
Ship that
{{work}}!
{{else when isReading}}
You can finish
{{book}}
eventually...
{{else}}
Go to bed!
{{/when}}
{{! Prettier 2.8.2 }}
{{#when isAtWork as |work|}}
Ship that
{{work}}!
{{else when isReading as |book|}}
You can finish
{{book}}
eventually...
{{else}}
Go to bed!
{{/when}}
#13931 by @jneander)
Preserve empty lines between nested SCSS maps (/* Input */
$map: (
'one': (
'key': 'value',
),
'two': (
'key': 'value',
),
)
/* Prettier 2.8.1 */
$map: (
'one': (
'key': 'value',
),
'two': (
'key': 'value',
),
)
/* Prettier 2.8.2 */
$map: (
'one': (
'key': 'value',
),
'two': (
'key': 'value',
),
)
let[
(#14000, #14044 by @fisker, @thorn0)
Fix missing parentheses when an expression statement starts with // Input
(let[0] = 2);
// Prettier 2.8.1
let[0] = 2;
// Prettier 2.8.1 (second format)
SyntaxError: Unexpected token (1:5)
> 1 | let[0] = 2;
| ^
2 |
// Prettier 2.8.2
(let)[0] = 2;
#14007 by @mvorisek)
Fix semicolon duplicated at the end of LESS file (// Input
@​variable: {
field: something;
};
// Prettier 2.8.1
@​variable: {
field: something;
}; ;
// Prettier 2.8.2
@​variable: {
field: something;
};
#14008 by @mvorisek)
Fix no space after unary minus when followed by opening parenthesis in LESS (// Input
.unary_minus_single {
margin: -(@​a);
}
.unary_minus_multi {
margin: 0 -(@​a);
}
.binary_minus {
margin: 0 - (@​a);
}
// Prettier 2.8.1
.unary_minus_single {
margin: - (@​a);
}
.unary_minus_multi {
margin: 0 - (@​a);
}
.binary_minus {
margin: 0 - (@​a);
}
// Prettier 2.8.2
.unary_minus_single {
margin: -(@​a);
}
.unary_minus_multi {
margin: 0 -(@​a);
}
.binary_minus {
margin: 0 - (@​a);
}
#14034 by @mvorisek)
Do not change case of property name if inside a variable declaration in LESS (// Input
@​var: {
preserveCase: 0;
};
// Prettier 2.8.1
@​var: {
preservecase: 0;
};
// Prettier 2.8.2
@​var: {
preserveCase: 0;
};
#14038 by @fisker)
Fix formatting for auto-accessors with comments (// Input
class A {
@​dec()
// comment
accessor b;
}
// Prettier 2.8.1
class A {
@​dec()
accessor // comment
b;
}
// Prettier 2.8.1 (second format)
class A {
@​dec()
accessor; // comment
b;
}
// Prettier 2.8.2
class A {
@​dec()
// comment
accessor b;
}
#14042 by @onishi-kohei)
Add parentheses for TSTypeQuery to improve readability (// Input
a as (typeof node.children)[number]
a as (typeof node.children)[]
a as ((typeof node.children)[number])[]
// Prettier 2.8.1
a as typeof node.children[number];
a as typeof node.children[];
a as typeof node.children[number][];
// Prettier 2.8.2
a as (typeof node.children)[number];
a as (typeof node.children)[];
a as (typeof node.children)[number][];
#14047 by @thorn0)
Fix displacing of comments in default switch case (It was a regression in Prettier 2.6.0.
// Input
switch (state) {
default:
result = state; // no change
break;
}
// Prettier 2.8.1
switch (state) {
default: // no change
result = state;
break;
}
// Prettier 2.8.2
switch (state) {
default:
result = state; // no change
break;
}
babel-ts
(#14049 by @sosukesuzuki)
Support type annotations on auto accessors via The bug that @babel/parser
cannot parse auto accessors with type annotations has been fixed. So we now support it via babel-ts
parser.
class Foo {
accessor prop: number;
}
#14073 by @fisker)
Fix formatting of empty type parameters (// Input
const foo: bar</* comment */> = () => baz;
// Prettier 2.8.1
Error: Comment "comment" was not printed. Please report this error!
// Prettier 2.8.2
const foo: bar</* comment */> = () => baz;
ExpressionStatement
instead of the whole statement (#14077 by @fisker)
Add parentheses to head of // Input
({}).toString.call(foo) === "[object Array]"
? foo.forEach(iterateArray)
: iterateObject(foo);
// Prettier 2.8.1
({}.toString.call(foo) === "[object Array]"
? foo.forEach(iterateArray)
: iterateObject(foo));
// Prettier 2.8.2
({}).toString.call(foo.forEach) === "[object Array]"
? foo.forEach(iterateArray)
: iterateObject(foo);
#14081 by @fisker)
Fix comments after directive (// Input
"use strict" /* comment */;
// Prettier 2.8.1 (with other js parsers except `babel`)
Error: Comment "comment" was not printed. Please report this error!
// Prettier 2.8.2
<Same as input>
#14082 with by @fisker)
Fix formatting for comments inside JSX attribute (// Input
function MyFunctionComponent() {
<button label=/*old*/"new">button</button>
}
// Prettier 2.8.1
Error: Comment "old" was not printed. Please report this error!
// Prettier 2.8.2
function MyFunctionComponent() {
<button label=/*old*/ "new">button</button>;
}
#14083 by @fisker)
Quote numeric keys for json-stringify parser (// Input
{0: 'value'}
// Prettier 2.8.1
{
0: "value"
}
// Prettier 2.8.2
{
"0": "value"
}
#14089 by @sosukesuzuki)
Fix removing commas from function arguments in maps (/* Input */
$foo: map-fn(
(
"#{prop}": inner-fn($first, $second),
)
);
/* Prettier 2.8.1 */
$foo: map-fn(("#{prop}": inner-fn($first $second)));
/* Prettier 2.8.2 */
$foo: map-fn(
(
"#{prop}": inner-fn($first, $second),
)
);
#14103 by @fisker)
Do not insert space in LESS property access (// Input
a {
color: @​colors[@​white];
}
// Prettier 2.8.1
a {
color: @​colors[ @​white];
}
// Prettier 2.8.2
<Same as input>
v2.8.1
#9184 by @agamkrbit)
Fix SCSS map in arguments (// Input
$display-breakpoints: map-deep-merge(
(
"print-only": "only print",
"screen-only": "only screen",
"xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})",
),
$display-breakpoints
);
// Prettier 2.8.0
$display-breakpoints: map-deep-merge(
(
"print-only": "only print",
"screen-only": "only screen",
"xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, " sm
")-1})",
),
$display-breakpoints
);
// Prettier 2.8.1
$display-breakpoints: map-deep-merge(
(
"print-only": "only print",
"screen-only": "only screen",
"xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})",
),
$display-breakpoints
);
#13919 by @sosukesuzuki)
Support auto accessors syntax (Support for Auto Accessors Syntax landed in TypeScript 4.9.
(Doesn't work well with babel-ts
parser)
class Foo {
accessor foo: number = 3;
}
rollup/rollup
v3.10.0
2023-01-12
Features
- Add information about the resolving plugin to resolved ids (#4789)
- Improve treeshaking for optional chaining when the root is nullish (#4797)
Bug Fixes
- Remove unnecessary internal defaults for acorn options (#4786)
Merge Requests
- #4785: Use @jridgewell/sourcemap-codec (@bluwy)
- #4786: Remove default acorn options + other fixes (@dnalborczyk)
-
#4789: feat: add
resolvedBy
field toResolvedId
(@TrickyPi) - #4794: fix: import can be shortened (@cunzaizhuyi)
- #4796: Update dependencies (@lukastaegert)
- #4797: feat: treeshake for optional chaining (@antfu)
v3.9.1
2023-01-02
Bug Fixes
- Sort keys in generated dynamic namespace objects (#4780)
- Do not consider Array.group to be side effect free as the specs have changed (#4779)
Merge Requests
- #4777: Import from node:fs/promises (@dnalborczyk)
- #4778: Bump deps (@dnalborczyk)
- #4779: Remove array grouping (web compat issue) (@dnalborczyk)
- #4780: Sort namespace object keys (@dnalborczyk)
- #4781: Use Set and builtin-modules package (@dnalborczyk)
- #4782: Use more restrictive types (@dnalborczyk)
v3.9.0
2022-12-28
Features
- Support ES2022 arbitrary module namespace identifiers (#4770)
- Add optional
version
property to plugin type (#4771)
Merge Requests
- #4768: Fix small typo in 999-big-list-of-options.md (@ericmutta)
- #4769: docs: add a instruction about how to run one test on your local computer (@TrickyPi)
- #4770: Add support for arbitrary module namespace identifiers (@lukastaegert)
-
#4771: Add
version
property to Plugin type (@Septh)
v3.8.1
2022-12-23
Bug Fixes
- Reduce memory footprint when explicitly passing
cache: false
(#4762) - Fix a crash when preserving modules and reexporting namespaces (#4766)
Merge Requests
- #4762: Improve AST garbage collection (@bluwy)
- #4766: Fix handling of namespace reexports when preserving modules (@lukastaegert)
v3.8.0
2022-12-22
Features
- Deduplicate ESM exports and reexports when preserving modules (#4759)
Bug Fixes
- Handle files that are emitted as a side effect of the manualChunks option (#4759)
Merge Requests
- #4759: feat: deduplicate reexports and renderedExports to simplify output (@TrickyPi)
- #4761: Support emitting files via manualChunks in output (@lukastaegert)
- #4763: docs: update outdated info (@TrickyPi)
v3.7.5
2022-12-17
Bug Fixes
- Avoid name shadowing when default exporting a class that matches the name of another class (#4756)
- Do not display the error message both in a separate line and in the stack trace in rollup CLI (#4749)
- Make type of
RollupWarning.cause
compatible withError.cause
(#4757) - Do not swallow side effects when interacting with modules namespaces nested in another object (#4758)
Merge Requests
-
#4749: feat: simplify
stack
info in cli error (@TrickyPi) - #4756: Avoid name conflicts for default exported classes (@lukastaegert)
- #4757: fix: RollupLog cause allow unknown (@Shinigami92)
- #4758: Correctly handle side effects when a namespace is nested in an object (@lukastaegert)
v3.7.4
2022-12-13
Bug Fixes
- Do not remove calls to
.exec
and.test
for included stateful regular expressions (#4742)
Merge Requests
- #4742: fix: check whether RegExp have the global or sticky flags set (@TrickyPi)
v3.7.3
2022-12-11
Bug Fixes
- Ensure
this.getFileName
no longer returns a placeholder as soon as hash placeholders have been resolved (#4747)
Merge Requests
- #4747: provide hashed file name when using this.getFileName in generateBundle (@lukastaegert)
v3.7.2
2022-12-10
Bug Fixes
- Improve chunk generation performance when one module is dynamically imported by many other modules (#4736)
Merge Requests
- #4736: Improve chunk assignment performance (@lukastaegert)
v3.7.1
2022-12-09
Bug Fixes
- Ad a hint to use @rollup/plugin-json when imports from a JSON file are not found (#4741)
Merge Requests
- #4741: fix: provide json hint when importing a no export json file (@TrickyPi)
v3.7.0
2022-12-08
Features
- Do not treat
.test
and.exec
on regular expressions as side effects (#4737)
Merge Requests
- #4737: feat: add sutiable RegExp prototype methods (@TrickyPi)
v3.6.0
2022-12-05
Features
- extend
this.getModuleInfo
with information about exports (#4731)
Merge Requests
-
#4731: feat: add
exports
andexportedBindings
toModule
class (@TrickyPi)
v3.5.1
2022-12-01
Bug Fixes
- Accept functions returning a config in defineConfig (#4728)
Merge Requests
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.