asciidoctor-vscode
asciidoctor-vscode copied to clipboard
Lock file maintenance Node dependencies
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| lockFileMaintenance | All locks refreshed | ||
| @highlightjs/cdn-assets (source) | devDependencies | minor | ~11.8.0 -> ~11.9.0 |
| @playwright/test (source) | devDependencies | minor | ~1.41 -> ~1.42.0 |
| @types/vscode | devDependencies | minor | ~1.75 -> ~1.87.0 |
| @vscode/vsce (source) | devDependencies | minor | 2.23.0 -> 2.24.0 |
| eslint (source) | devDependencies | minor | 8.48.0 -> 8.57.0 |
| eslint-plugin-import | devDependencies | minor | 2.28.1 -> 2.29.1 |
| mocha (source) | devDependencies | minor | 10.2.0 -> 10.3.0 |
| node | volta | minor | 18.17.1 -> 18.19.1 |
| ts-loader | devDependencies | minor | 9.4.4 -> 9.5.1 |
| webpack | devDependencies | minor | 5.88.2 -> 5.90.3 |
🔧 This Pull Request updates lock files to use the latest dependency versions.
Release Notes
highlightjs/highlight.js
v11.9.0
CAVEATS / POTENTIALLY BREAKING CHANGES
- Drops support for Node 14.x, which is no longer supported by Node.js.
- In the
nodebuildstyles/*.cssfiles now ship un-minified with minified counterparts as:styles/*.min.cssmvorisek (this makes things consistent with ourcdnbuilds)
Parser:
- (enh) prevent re-highlighting of an element [joshgoebel][]
- (chore) Remove discontinued badges from README Bradley Mackey
- (chore) Fix build size report Bradley Mackey
New Grammars:
- added 3rd party Iptables grammar to SUPPORTED_LANGUAGES Checconio
- added 3rd party x86asmatt grammar to SUPPORTED_LANGUAGES gondow
- added 3rd party riscv64 grammar to SUPPORTED_LANGUAGES aana-h2
- added 3rd party Ballerina grammar to SUPPORTED_LANGUAGES Yasith Deelaka
Core Grammars:
- fix(cpp) fixed highlighter break state Md Saad Akhtar
- fix(rust) added negative-lookahead for callable keywords
ifwhilefor[Omar Hussein][] - enh(armasm) added
x0-x30andw0-w30ARMv8 registers Nicholas Thompson - enh(haxe) added
final,is,macrokeywords and `This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| lockFileMaintenance | All locks refreshed | ||
| @highlightjs/cdn-assets (source) | devDependencies | minor | ~11.8.0 -> ~11.9.0 |
| @playwright/test (source) | devDependencies | minor | ~1.41 -> ~1.42.0 |
| @types/vscode | devDependencies | minor | ~1.75 -> ~1.87.0 |
| @vscode/vsce (source) | devDependencies | minor | 2.23.0 -> 2.24.0 |
| eslint (source) | devDependencies | minor | 8.48.0 -> 8.57.0 |
| eslint-plugin-import | devDependencies | minor | 2.28.1 -> 2.29.1 |
| mocha (source) | devDependencies | minor | 10.2.0 -> 10.3.0 |
| node | volta | minor | 18.17.1 -> 18.19.1 |
| ts-loader | devDependencies | minor | 9.4.4 -> 9.5.1 |
| webpack | devDependencies | minor | 5.88.2 -> 5.90.3 |
🔧 This Pull Request updates lock files to use the latest dependency versions.
identifiers Robert Borghese
- enh(haxe) support numeric separators and suffixes Robert Borghese
- fix(haxe) fixed metadata arguments and support non-colon syntax Robert Borghese
- fix(haxe) differentiate
abstractdeclaration from keyword Robert Borghese - fix(bash) do not delimit a string by an escaped apostrophe [hancar][]
- enh(swift) support
macrokeyword Bradley Mackey - enh(swift) support parameter pack keywords Bradley Mackey
- enh(swift) regex literal support Bradley Mackey
- enh(swift)
@uncheckedand@Sendablesupport Bradley Mackey - enh(scala) add using directives support
//> using foo bar[Jamie Thompson][] - fix(scala) fixed comments in constructor arguments not being properly highlighted Isaac Nonato
- enh(swift) ownership modifiers support Bradley Mackey
- enh(nsis) Add
!assertcompiler flag [idleberg][] - fix(haskell) do not treat double dashes inside infix operators as comments [Zlondrej][]
- enh(rust) added
eprintln!macro qoheniac - enh(leaf) update syntax to 4.0 Samuel Bishop
- fix(reasonml) simplify syntax and align it with ocaml jchavarri
- fix(swift)
warn_unqualified_accessis an attribute Bradley Mackey - enh(swift) macro attributes are highlighted as keywords Bradley Mackey
- enh(stan) updated for version 2.33 (#3859) Brian Ward
- fix(css) added '_' css variable detection Md Saad Akhtar
- enh(groovy) add
recordandvaras keywords Guillaume Laforge
Developer Tool:
- (chore) Update dev tool to use the new
highlightAPI. Shah Shabbir Ahmmed - (enh) Auto-update the highlighted output when the language dropdown changes. Shah Shabbir Ahmmed
microsoft/playwright
v1.42.1
Highlights
https://github.com/microsoft/playwright/issues/29732 - [Regression]: HEAD requests to webServer.url since v1.42.0https://github.com/microsoft/playwright/issues/297466 - [Regression]: Playwright CT CLI scripts fail due to broken initializePlugin imporhttps://github.com/microsoft/playwright/issues/2973939 - [Bug]: Component tests fails when imported a module with a dot in a nahttps://github.com/microsoft/playwright/issues/29731731 - [Regression]: 1.42.0 breaks some import statemehttps://github.com/microsoft/playwright/issues/297609760 - [Bug]: Possible regression with chained locators in v1.42
Browser Versions
- Chromium 123.0.6312.4
- Mozilla Firefox 123.0
- WebKit 17.4
This version was also tested against the following stable channels:
- Google Chrome 122
- Microsoft Edge 123
v1.42.0
New APIs
-
Test tags
New tag syntax for adding tags to the tests (@-tokens in the test title are still supported).
test('test customer login', { tag: ['@​fast', '@​login'] }, async ({ page }) => { // ... });Use
--grepcommand line option to run only tests with certain tags.npx playwright test --grep @​fast -
Annotating skipped tests
New annotation syntax for test annotations allows annotating the tests that do not run.
test('test full report', { annotation: [ { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23180' }, { type: 'docs', description: 'https://playwright.dev/docs/test-annotations#tag-tests' }, ], }, async ({ page }) => { // ... }); -
page.addLocatorHandler()
New method page.addLocatorHandler() registers a callback that will be invoked when specified element becomes visible and may block Playwright actions. The callback can get rid of the overlay. Here is an example that closes a cookie dialog when it appears.
// Setup the handler. await page.addLocatorHandler( page.getByRole('heading', { name: 'Hej! You are in control of your cookies.' }), async () => { await page.getByRole('button', { name: 'Accept all' }).click(); }); // Write the test as usual. await page.goto('https://www.ikea.com/'); await page.getByRole('link', { name: 'Collection of blue and white' }).click(); await expect(page.getByRole('heading', { name: 'Light and easy' })).toBeVisible(); -
Project wildcard filter Playwright command line flag now supports '*' wildcard when filtering by project.
npx playwright test --project='*mobile*' -
Other APIs
-
expect(callback).toPass({ timeout }) The timeout can now be configured by
expect.toPass.timeoutoption globally or in project config -
electronApplication.on('console') electronApplication.on('console') event is emitted when Electron main process calls console API methods.
electronApp.on('console', async msg => { const values = []; for (const arg of msg.args()) values.push(await arg.jsonValue()); console.log(...values); }); await electronApp.evaluate(() => console.log('hello', 5, { foo: 'bar' })); -
page.pdf() accepts two new options
taggedandoutline.
-
Breaking changes
Mixing the test instances in the same suite is no longer supported. Allowing it was an oversight as it makes reasoning about the semantics unnecessarily hard.
const test = baseTest.extend({ item: async ({}, use) => {} });
baseTest.describe('Admin user', () => {
test('1', async ({ page, item }) => {});
test('2', async ({ page, item }) => {});
});
Announcements
- ⚠️ Ubuntu 18 is not supported anymore.
Browser Versions
- Chromium 123.0.6312.4
- Mozilla Firefox 123.0
- WebKit 17.4
This version was also tested against the following stable channels:
- Google Chrome 122
- Microsoft Edge 123
eslint/eslint
v8.57.0
Features
1120b9bfeat: Add loadESLint() API method for v8 (#18098) (Nicholas C. Zakas)dca7d0ffeat: Enableeslint.config.mjsandeslint.config.cjs(#18066) (Nitin Kumar)
Bug Fixes
2196d97fix: handle absolute file paths inFlatRuleTester(#18064) (Nitin Kumar)69dd1d1fix: Ensure config keys are printed for config errors (#18067) (Nitin Kumar)9852a31fix: deep merge behavior in flat config (#18065) (Nitin Kumar)4c7e9b0fix: allow circular references in config (#18056) (Milos Djermanovic)
Documentation
84922d0docs: Show prerelease version in dropdown (#18139) (Nicholas C. Zakas)5b8c363docs: Switch to Ethical Ads (#18117) (Milos Djermanovic)77dbfd9docs: show NEXT in version selectors (#18052) (Milos Djermanovic)
Chores
1813aecchore: upgrade @eslint/js@8.57.0 (#18143) (Milos Djermanovic)5c356bbchore: package.json update for @eslint/js release (Jenkins)f4a1fe2test: add more tests for ignoring files and directories (#18068) (Nitin Kumar)42c0aefci: Enable CI forv8.xbranch (#18047) (Milos Djermanovic)
v8.56.0
Features
0dd9704feat: Support custom severity when reporting unused disable directives (#17212) (Bryan Mishkin)31a7e3ffeat: fix no-restricted-properties false negatives with unknown objects (#17818) (Arka Pratim Chaudhuri)
Bug Fixes
7d5e5f6fix:TypeError: fs.exists is not a functionon read-only file system (#17846) (Francesco Trotta)74739c8fix: suggestion with invalid syntax in no-promise-executor-return rule (#17812) (Bryan Mishkin)
Documentation
9007719docs: update link in ways-to-extend.md (#17839) (Amel SELMANE)3a22236docs: Update README (GitHub Actions Bot)54c3ca6docs: fix migration-guide example (#17829) (Tanuj Kanti)4391b71docs: check config comments in rule examples (#17815) (Francesco Trotta)fd28363docs: remove mention about ESLint stylistic rules in readme (#17810) (Zwyx)48ed5a6docs: Update README (GitHub Actions Bot)
Chores
ba6af85chore: upgrade @eslint/js@8.56.0 (#17864) (Milos Djermanovic)60a531achore: package.json update for @eslint/js release (Jenkins)ba87a06chore: update dependency markdownlint to ^0.32.0 (#17783) (renovate[bot])9271d10chore: add GitHub issue template for docs issues (#17845) (Josh Goldberg ✨)70a686bchore: Convert rule tests to FlatRuleTester (#17819) (Nicholas C. Zakas)f3a599dchore: upgrade eslint-plugin-unicorn to v49.0.0 (#17837) (唯然)905d4b7chore: upgrade eslint-plugin-eslint-plugin v5.2.1 (#17838) (唯然)4d7c3cechore: update eslint-plugin-n v16.4.0 (#17836) (唯然)fd0c60cci: unpin Node.js 21.2.0 (#17821) (Francesco Trotta)
v8.55.0
Features
Documentation
83ece2adocs: fix typo--rules->--rule(#17806) (OKURA Masafumi)fffca5cdocs: remove "Open in Playground" buttons for removed rules (#17791) (Francesco Trotta)a6d9442docs: fix correct/incorrect examples of rules (#17789) (Tanuj Kanti)383e999docs: update and fix examples forno-unused-vars(#17788) (Tanuj Kanti)5a8efd5docs: add specific stylistic rule for each deprecated rule (#17778) (Etienne)
Chores
eb8950cchore: upgrade @eslint/js@8.55.0 (#17811) (Milos Djermanovic)93df384chore: package.json update for @eslint/js release (Jenkins)fe4b954chore: upgrade @eslint/eslintrc@2.1.4 (#17799) (Milos Djermanovic)bd8911dci: pin Node.js 21.2.0 (#17809) (Milos Djermanovic)b29a16bchore: fix severalclitests to run in the intended flat config mode (#17797) (Milos Djermanovic)de165c1chore: remove unused config-extends fixtures (#17781) (Milos Djermanovic)d4304b8chore: remove formatting/stylistic rules from new rule templates (#17780) (Francesco Trotta)21024fechore: check rule examples for syntax errors (#17718) (Francesco Trotta)
v8.54.0
Features
a7a883bfeat: for-direction rule add check for condition in reverse order (#17755) (Angelo Annunziata)1452dc9feat: Add suggestions to no-console (#17680) (Joel Mathew Koshy)21ebf8afeat: updateno-array-constructorrule (#17711) (Francesco Trotta)
Bug Fixes
98926e6fix: Ensure that extra data is not accidentally stored in the cache file (#17760) (Milos Djermanovic)e8cf9f6fix: Make dark scroll bar in dark theme (#17753) (Pavel)3cbeaadfix: Usecwdconstructor option as configbasePathin Linter (#17705) (Milos Djermanovic)
Documentation
becfdd3docs: Make clear when rules are removed (#17728) (Nicholas C. Zakas)05d6e99docs: update "Submit a Pull Request" page (#17712) (Francesco Trotta)eb2279edocs: display info about deprecated rules (#17749) (Percy Ma)d245326docs: Correct working in migrating plugin docs (#17722) (Filip Tammergård)
Chores
d644de9chore: upgrade @eslint/js@8.54.0 (#17773) (Milos Djermanovic)1e6e314chore: package.json update for @eslint/js release (Jenkins)6fb8805chore: Fixed grammar in issue_templates/rule_change (#17770) (Joel Mathew Koshy)85db724chore: upgrademarkdownlintto 0.31.1 (#17754) (Nitin Kumar)6d470d2chore: update dependency recast to ^0.23.0 (#17736) (renovate[bot])b7121b5chore: update dependency markdownlint-cli to ^0.37.0 (#17735) (renovate[bot])633b9a1chore: update dependency regenerator-runtime to ^0.14.0 (#17739) (renovate[bot])acac16fchore: update dependency vite-plugin-commonjs to ^0.10.0 (#17740) (renovate[bot])ba8ca7echore: add .github/renovate.json5 (#17567) (Josh Goldberg ✨)
v8.53.0
Features
528e1c0feat: Deprecate formatting rules (#17696) (Nicholas C. Zakas)c0b11ddfeat: Add suggestions for no-prototype-builtins (#17677) (Yonathan Randolph)
Bug Fixes
1ad6257fix: ensure that exit code for fatal errors is not overwritten (#17683) (Milos Djermanovic)b329ea7fix: add;after JSX nodes inno-object-constructorautofix (#17672) (Francesco Trotta)
Documentation
ab8c60ddocs: change position of return to top button (#17688) (Tanuj Kanti)4fc44c0docs: update twitter icon to new X icon (#17687) (Tanuj Kanti)4164b2cdocs: Update README (GitHub Actions Bot)8651895docs: Fix tabs in rule examples (#17653) (Francesco Trotta)3aec1c5docs: explained rule fixers and suggestions (#17657) (Josh Goldberg ✨)
Chores
ba4d4d5chore: remove metascraper (#17707) (Milos Djermanovic)0d07338chore: Update dependencies (#17706) (Milos Djermanovic)93256a3chore: package.json update for @eslint/js release (ESLint Jenkins)485ec7dtest: fix ESLint tests for caching (#17699) (Milos Djermanovic)db06a7fci: bump actions/setup-node from 3 to 4 (#17676) (dependabot[bot])994596bci: run tests in Node.js 21 (#17673) (Francesco Trotta)
v8.52.0
Features
Bug Fixes
5de9637fix: Ensure shared references in rule configs are separated (#17666) (Nicholas C. Zakas)dcfe573fix: add preceding semicolon in suggestions ofno-object-constructor(#17649) (Francesco Trotta)
Documentation
476d58adocs: Add note about invalid CLI flags when using flat config. (#17664) (Nicholas C. Zakas)660ed3adocs: Plugin flat config migration guide (#17640) (Nicholas C. Zakas)a58aa20docs: fix examples for several rules (#17645) (Milos Djermanovic)179929bdocs: Remove trailing newline from the code of Playground links (#17641) (Francesco Trotta)f8e5c30docs: Update README (GitHub Actions Bot)b7ef2f3docs: Enable pretty code formatter output (#17635) (Nicholas C. Zakas)0bcb9a8docs: Fix syntax errors in rule examples (#17633) (Francesco Trotta)61b9083docs: Make no-continue example code work (#17643) (Zhongyuan Zhou)9fafe45docs: upgrade to 11ty 2.0 (#17632) (Percy Ma)ff8e4bfdocs: Update README (GitHub Actions Bot)fab249adocs: Update README (GitHub Actions Bot)392305bdocs: Updateno-irregular-whitespaceand fix examples (#17626) (Francesco Trotta)6b8acfbdocs: Add real whitespace tono-trailing-spacesexamples (#17630) (Francesco Trotta)1000187docs: Fix examples inunicode-bom(#17631) (Francesco Trotta)000290cdocs: Update README (GitHub Actions Bot)
Chores
6d1f0c2chore: upgrade @eslint/js@8.52.0 (#17671) (Milos Djermanovic)d63d4fechore: package.json update for @eslint/js release (ESLint Jenkins)f30cefetest: fix FlatESLint tests for caching (#17658) (Milos Djermanovic)ef650cbtest: update tests for no-promise-executor-return (#17661) (Milos Djermanovic)
v8.51.0
Features
0a9c433feat: Add--no-warn-ignoredCLI option for flat config (#17569) (Domantas Petrauskas)977e67efeat: logical-assignment-operators to report expressions with 3 operands (#17600) (Yosuke Ota)
Bug Fixes
f976b2ffix: make rule severity case-sensitive in flat config (#17619) (Milos Djermanovic)0edfe36fix: Ensure crash error messages are not duplicated (#17584) (Nicholas C. Zakas)dd79abcfix:eslint-disableto be able to parse quoted rule names (#17612) (Yosuke Ota)d2f6801fix: Ensure correct code path for && followed by ?? (#17618) (Nicholas C. Zakas)
Documentation
ee5be81docs: default tosourceType: "module"in rule examples (#17615) (Francesco Trotta)1aa26dfdocs: Add more examples for multiline-ternary (#17610) (George Ashiotis)47d0b44docs: Update README (GitHub Actions Bot)dbf831edocs: use generated og image (#17601) (Percy Ma)1866da5docs: Update README (GitHub Actions Bot)
Chores
1ef39eachore: upgrade @eslint/js@8.51.0 (#17624) (Milos Djermanovic)f8c7403chore: package.json update for @eslint/js release (ESLint Jenkins)2665552test: fix flat config linter tests to use Linter in flat config mode (#17616) (Milos Djermanovic)7b77bccchore: Refactor CodePathState (#17510) (Nicholas C. Zakas)bc77c9achore: Document and refactor ForkContext (#17566) (Nicholas C. Zakas)24e1f14chore: Refactor and document CodePath (#17558) (Nicholas C. Zakas)
v8.50.0
Features
27d5a9efeat: add suggestions to array-callback-return (#17590) (Tanuj Kanti)f9082fffeat: flat-rule-tester make sure default config always matches (#17585) (fnx)83914adfeat: Implement SourceCode#applyInlineConfig() (#17351) (Nicholas C. Zakas)22a5582feat: add ruleno-object-constructor, deprecateno-new-object(#17576) (Francesco Trotta)85a3d9efeat: allowVoid option in array-callback-return (#17564) (Tanuj Kanti)
Bug Fixes
cc4d26bfix: Ensure deprecated context.parserServices warns (#17593) (Nicholas C. Zakas)1ea4cfbfix: Ensure all RuleTester tests all deprecated context methods (#17587) (Nicholas C. Zakas)aa1b657fix: wrong suggestion and message inno-misleading-character-class(#17571) (Yosuke Ota)
Documentation
1800537docs: Fix and standardize JSX code examples (#17591) (Francesco Trotta)48a44a7docs: Add correct/incorrect tags toprefer-arrow-callback(#17589) (Francesco Trotta)20893d4docs: fix incorrect tag's place (#17575) (Tanuj Kanti)bd7a71fdocs: Update README (GitHub Actions Bot)
Chores
f8a8a2dchore: upgrade @eslint/js@8.50.0 (#17599) (Milos Djermanovic)38ada6dchore: package.json update for @eslint/js release (ESLint Jenkins)
v8.49.0
Features
da09f4efeat: Implement onUnreachableCodePathStart/End (#17511) (Nicholas C. Zakas)32b2327feat: Emit deprecation warnings in RuleTester (#17527) (Nicholas C. Zakas)acb7df3feat: add newenforceoption tolines-between-class-members(#17462) (Nitin Kumar)
Documentation
ecfb54fdocs: Update README (GitHub Actions Bot)de86b3bdocs: updateno-promise-executor-returnexamples (#17529) (Nitin Kumar)032c4b1docs: add typescript template (#17500) (James)cd7da5cdocs: Update README (GitHub Actions Bot)
Chores
b7621c3chore: remove browser test fromnpm test(#17550) (Milos Djermanovic)cac45d0chore: upgrade @eslint/js@8.49.0 (#17549) (Milos Djermanovic)cd39508chore: package.json update for @eslint/js release (ESLint Jenkins)203a971ci: bump actions/checkout from 3 to 4 (#17530) (dependabot[bot])a40fa50chore: use eslint-plugin-jsdoc's flat config (#17516) (Milos Djermanovic)926a286test: replace Karma with Webdriver.IO (#17126) (Christian Bromann)f591d2cchore: Upgrade config-array (#17512) (Nicholas C. Zakas)
import-js/eslint-plugin-import
v2.29.1
Fixed
- [
no-extraneous-dependencies]: ignoreexport type { ... } from '...'whenincludeTypesisfalse([#2919], thanks [@Pandemic1617]) - [
no-unused-modules]: support export patterns with array destructuring ([#2930], thanks [@ljharb]) - [Deps] update
tsconfig-paths([#2447], thanks [@domdomegg])
v2.29.0
Added
- TypeScript config: add .cts and .mts extensions ([#2851], thanks [@Zamiell])
- [
newline-after-import]: new optionexactCountand docs update ([#1933], thanks [@anikethsaha] and [@reosarevok]) - [
newline-after-import]: fixexactCountwithconsiderCommentsfalse positive, when there is a leading comment ([#2884], thanks [@kinland])
nodejs/node
v18.19.1
Notable changes
This is a security release.
Notable changes
- CVE-2024-21892 - Code injection and privilege escalation through Linux capabilities- (High)
- CVE-2024-22019 - http: Reading unprocessed HTTP request with unbounded chunk extension allows DoS attacks- (High)
- CVE-2023-46809 - Node.js is vulnerable to the Marvin Attack (timing variant of the Bleichenbacher attack against PKCS#1 v1.5 padding) - (Medium)
- CVE-2024-22025 - Denial of Service by resource exhaustion in fetch() brotli decoding - (Medium)
- undici version 5.28.3
- npm version 10.2.4
Commits
- [
69e0a1dba8] - crypto: update root certificates to NSS 3.95 (Node.js GitHub Bot) #50805 - [
d3d357ab09] - crypto: disable PKCS#1 padding for privateDecrypt (Michael Dawson) nodejs-private/node-private#525 - [
3d27175c42] - deps: fix GHSA-f74f-cvh7-c6q6/CVE-2024-24806 (Santiago Gimeno) #51614 - [
331558b8ab] - deps: update archs files for openssl-3.0.13+quic1 (Node.js GitHub Bot) #51614 - [
99b77dfb9c] - deps: upgrade openssl sources to quictls/openssl-3.0.13+quic1 (Node.js GitHub Bot) #51614 - [
6cdc71bff1] - deps: upgrade npm to 10.2.4 (npm team) #50751 - [
911cb33cda] - http: add maximum chunk extension size (Paolo Insogna) nodejs-private/node-private#520 - [
f48b89689d] - lib: update undici to v5.28.3 (Matteo Collina) nodejs-private/node-private#536 - [
e6b4c105e0] - src: fix HasOnly(capability) in node::credentials (Tobias Nießen) nodejs-private/node-private#505 - [
97c49076cd] - test: skip test-child-process-stdio-reuse-readable-stdio on Windows (Joyee Cheung) #49621 - [
60affdde8e] - tools: add macOS notarization verification step (Ulises Gascón) #50833 - [
ccc676a327] - tools: use macOS keychain to notarize the releases (Ulises Gascón) #50715 - [
31f1ceb380] - tools: remove unused file (Ulises Gascon) #50622 - [
bd5f6fb92a] - tools: add macOS notarization stapler (Ulises Gascón) #50625 - [
4168c4f71b] - tools: improve macOS notarization process output readability (Ulises Gascón) #50389 - [
4622f775aa] - tools: remove unusedversionfunction (Ulises Gascón) #50390 - [
b90804b1e7] - win,tools: upgrade Windows signing to smctl (Stefan Stojanovic) #50956 - [
f31d47e135] - zlib: pause stream if outgoing buffer is full (Matteo Collina) nodejs-private/node-private#542
v18.19.0
Notable Changes
npm updated to v10
After two months of baking time in Node.js 20, npm 10 is backported, so that all release lines include a supported version of npm. This release includes npm v10.2.3.
Refer to nodejs/Release#884 for the plan to land npm 10.
ESM and customization hook changes
Leverage loaders when resolving subsequent loaders
Loaders now apply to subsequent loaders, for example: --experimental-loader ts-node --experimental-loader loader-written-in-typescript.
Contributed by Maël Nison in #43772.
New node:module API register for module customization hooks; new initialize hook
There is a new API register available on node:module to specify a file that exports module customization hooks, and pass data to the hooks, and establish communication channels with them. The “define the file with the hooks” part was previously handled by a flag --experimental-loader, but when the hooks moved into a dedicated thread in 20.0.0 there was a need to provide a way to communicate between the main (application) thread and the hooks thread. This can now be done by calling register from the main thread and passing data, including MessageChannel instances.
We encourage users to migrate to an approach that uses --import with register, such as:
node --import ./file-that-calls-register.js ./app.js
Using --import ensures that the customization hooks are registered before any application code runs, even the entry point.
Contributed by João Lenon and Jacob Smith in #46826, Izaak Schroeder and Jacob Smith in #48842 and #48559.
import.meta.resolve unflagged
In ES modules, import.meta.resolve(specifier)
can be used to get an absolute URL string to which specifier resolves, similar
to require.resolve in CommonJS. This aligns Node.js with browsers and other server-side runtimes.
Contributed by Guy Bedford in #49028.
--experimental-default-type flag to flip module defaults
The new flag --experimental-default-type can be used to flip the default
module system used by Node.js. Input that is already explicitly defined as ES
modules or CommonJS, such as by a package.json "type" field or .mjs/.cjs
file extension or the --input-type flag, is unaffected. What is currently
implicitly CommonJS would instead be interpreted as ES modules under
--experimental-default-type=module:
-
String input provided via
--evalor STDIN, if--input-typeis unspecified. -
Files ending in
.jsor with no extension, if there is nopackage.jsonfile present in the same folder or any parent folder. -
Files ending in
.jsor with no extension, if the nearest parentpackage.jsonfield lacks atypefield; unless the folder is inside anode_modulesfolder.
In addition, extensionless files are interpreted as Wasm if
--experimental-wasm-modules is passed and the file contains the "magic bytes"
Wasm header.
Contributed by Geoffrey Booth in #49869.
Other ESM-related changes
- [
ed2d46f4cc] - doc: move and rename loaders section (Geoffrey Booth) #49261 - [
92734d4480] - esm: use import attributes instead of import assertions (Antoine du Hamel) #50140 - [
e96f7ef881] - (SEMVER-MINOR) vm: use import attributes instead of import assertions (Antoine du Hamel) #50141
Test runner changes
Many changes to the built-in test runner have been backported. This includes the following additions:
- [
b283ae4238] - (SEMVER-MINOR) test_runner: accepttestOnlyinrun(Moshe Atlow) #49753 - [
059b1945d8] - (SEMVER-MINOR) test_runner: add junit reporter (Moshe Atlow) #49614 - [
d61a505546] - (SEMVER-MINOR) test_runner: expose location of tests (Colin Ihrig) #48975 - [
b55eb2a8d1] - (SEMVER-MINOR) **test_run
Configuration
📅 Schedule: "before 5am on monday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Renovate Bot.