From d84b0902f41e5a793d7198dcd3b50eac7a9dc843 Mon Sep 17 00:00:00 2001 From: Knarfux Date: Wed, 21 Aug 2024 15:28:39 +0200 Subject: [PATCH 1/2] Mention end of support for subpath mapping exports by Node > 17 package-exports.mdx https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V17.md#2021-10-19-version-1700-current-bethgriggs --- src/content/guides/package-exports.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/guides/package-exports.mdx b/src/content/guides/package-exports.mdx index 65ef09806b64..625483b9136c 100644 --- a/src/content/guides/package-exports.mdx +++ b/src/content/guides/package-exports.mdx @@ -149,7 +149,7 @@ Example: `{ "./a/": "./x/", "./a/b/": "./y/", "./a/b/c": "./z" }` == `{ "./a/b/c | -------------------------------------- | ---------------------------------------------------------------------------------- | | `"."` property | Node.js, webpack, rollup, esinstall, wmr | | normal property | Node.js, webpack, rollup, esinstall, wmr | -| property ending with `/` | Node.js(1), webpack, rollup, esinstall(2), wmr(3) | +| property ending with `/`(1) | webpack, rollup, esinstall(2), wmr(3) | | property ending with `*` | Node.js, webpack, rollup, esinstall | | Alternatives | Node.js, webpack, rollup, esinstall(4) | | Abbreviation only path | Node.js, webpack, rollup, esinstall, wmr | @@ -162,7 +162,7 @@ Example: `{ "./a/": "./x/", "./a/b/": "./y/", "./a/b/c": "./z" }` == `{ "./a/b/c | Error when not mapped | Node.js, webpack, rollup, esinstall, wmr(7) | | Error when mixing conditions and paths | Node.js, webpack, rollup | -(1) deprecated in Node.js, `*` should be preferred. +(1) Removed in Node.js 17. Use `*` instead. (2) `"./"` is intentionally ignored as key. From b5ca180a67b3f3c48c29c64cb62f8bf2dd84ce2f Mon Sep 17 00:00:00 2001 From: Knarfux Date: Thu, 22 Aug 2024 15:48:59 +0200 Subject: [PATCH 2/2] Move note from feature column to Supported by column --- src/content/guides/package-exports.mdx | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/content/guides/package-exports.mdx b/src/content/guides/package-exports.mdx index 625483b9136c..c31b0eae0026 100644 --- a/src/content/guides/package-exports.mdx +++ b/src/content/guides/package-exports.mdx @@ -145,22 +145,22 @@ Example: `{ "./a/": "./x/", "./a/b/": "./y/", "./a/b/c": "./z" }` == `{ "./a/b/c ## Support -| Feature | Supported by | -| -------------------------------------- | ---------------------------------------------------------------------------------- | -| `"."` property | Node.js, webpack, rollup, esinstall, wmr | -| normal property | Node.js, webpack, rollup, esinstall, wmr | -| property ending with `/`(1) | webpack, rollup, esinstall(2), wmr(3) | -| property ending with `*` | Node.js, webpack, rollup, esinstall | -| Alternatives | Node.js, webpack, rollup, esinstall(4) | -| Abbreviation only path | Node.js, webpack, rollup, esinstall, wmr | -| Abbreviation only conditions | Node.js, webpack, rollup, esinstall, wmr | -| Conditional syntax | Node.js, webpack, rollup, esinstall, wmr | -| Nested conditional syntax | Node.js, webpack, rollup, wmr(5) | -| Conditions Order | Node.js, webpack, rollup, wmr(6) | -| `"default"` condition | Node.js, webpack, rollup, esinstall, wmr | -| Path Order | Node.js, webpack, rollup | -| Error when not mapped | Node.js, webpack, rollup, esinstall, wmr(7) | -| Error when mixing conditions and paths | Node.js, webpack, rollup | +| Feature | Supported by | +| -------------------------------------- | -------------------------------------------------------------------------------------- | +| `"."` property | Node.js, webpack, rollup, esinstall, wmr | +| normal property | Node.js, webpack, rollup, esinstall, wmr | +| property ending with `/` | ~~Node.js(1)~~, webpack, rollup, esinstall(2), wmr(3) | +| property ending with `*` | Node.js, webpack, rollup, esinstall | +| Alternatives | Node.js, webpack, rollup, esinstall(4) | +| Abbreviation only path | Node.js, webpack, rollup, esinstall, wmr | +| Abbreviation only conditions | Node.js, webpack, rollup, esinstall, wmr | +| Conditional syntax | Node.js, webpack, rollup, esinstall, wmr | +| Nested conditional syntax | Node.js, webpack, rollup, wmr(5) | +| Conditions Order | Node.js, webpack, rollup, wmr(6) | +| `"default"` condition | Node.js, webpack, rollup, esinstall, wmr | +| Path Order | Node.js, webpack, rollup | +| Error when not mapped | Node.js, webpack, rollup, esinstall, wmr(7) | +| Error when mixing conditions and paths | Node.js, webpack, rollup | (1) Removed in Node.js 17. Use `*` instead.