Skip to content

Commit ee92773

Browse files
authored
refactor: deprecate old INCOMPATIBLE_* message names (#4703)
* refactor: deprecate old `INCOMPATIBLE_*` message names * docs: fix link
1 parent ab84e44 commit ee92773

File tree

3 files changed

+43
-3
lines changed

3 files changed

+43
-3
lines changed

.yarn/versions/8d0d4b16.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
releases:
2+
"@yarnpkg/core": patch
3+
4+
declined:
5+
- "@yarnpkg/plugin-compat"
6+
- "@yarnpkg/plugin-constraints"
7+
- "@yarnpkg/plugin-dlx"
8+
- "@yarnpkg/plugin-essentials"
9+
- "@yarnpkg/plugin-exec"
10+
- "@yarnpkg/plugin-file"
11+
- "@yarnpkg/plugin-git"
12+
- "@yarnpkg/plugin-github"
13+
- "@yarnpkg/plugin-http"
14+
- "@yarnpkg/plugin-init"
15+
- "@yarnpkg/plugin-interactive-tools"
16+
- "@yarnpkg/plugin-link"
17+
- "@yarnpkg/plugin-nm"
18+
- "@yarnpkg/plugin-npm"
19+
- "@yarnpkg/plugin-npm-cli"
20+
- "@yarnpkg/plugin-pack"
21+
- "@yarnpkg/plugin-patch"
22+
- "@yarnpkg/plugin-pnp"
23+
- "@yarnpkg/plugin-pnpm"
24+
- "@yarnpkg/plugin-stage"
25+
- "@yarnpkg/plugin-typescript"
26+
- "@yarnpkg/plugin-version"
27+
- "@yarnpkg/plugin-workspace-tools"
28+
- "@yarnpkg/builder"
29+
- "@yarnpkg/cli"
30+
- "@yarnpkg/doctor"
31+
- "@yarnpkg/extensions"
32+
- "@yarnpkg/nm"
33+
- "@yarnpkg/pnpify"
34+
- "@yarnpkg/sdks"

packages/gatsby/content/advanced/error-codes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,11 @@ A package is marked as deprecated by the publisher. Avoid using it, use the alte
314314

315315
## YN0062 - `INCOMPATIBLE_OS`
316316

317-
A package is incompatible with the operating system, as reported by [`process.platform`](https://nodejs.org/api/process.html#process_process_platform). Its installation will be skipped.
317+
> **Removed:** Replaced by [`INCOMPATIBLE_ARCHITECTURE`](#yn0076---incompatible_architecture).
318318
319319
## YN0063 - `INCOMPATIBLE_CPU`
320320

321-
A package is incompatible with the CPU architecture, as reported by [`process.arch`](https://nodejs.org/api/process.html#process_process_arch). Its installation will be skipped.
321+
> **Removed:** Replaced by [`INCOMPATIBLE_ARCHITECTURE`](#yn0076---incompatible_architecture).
322322
323323
## YN0068 - `UNUSED_PACKAGE_EXTENSION`
324324

@@ -361,7 +361,7 @@ For more information about the parameters that must be instantiated when calling
361361

362362
## YN0076 - `INCOMPATIBLE_ARCHITECTURE`
363363

364-
A package is specified in its manifest (through the [`os`](/configuration/manifest#os) / [`cpu`](/configuration/manifest#cpu) fields) as being incompatible with the system architecture. Its postinstall scripts will not run on this system.
364+
A package is specified in its manifest (through the [`os`](/configuration/manifest#os) / [`cpu`](/configuration/manifest#cpu) / [`libc`](/configuration/manifest#libc) fields) as being incompatible with the system architecture. It will not be fetched, linked, and its postinstall scripts will not run on this system.
365365

366366
## YN0077 - `GHOST_ARCHITECTURE`
367367

packages/yarnpkg-core/sources/MessageName.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@ export enum MessageName {
6464
INVALID_RANGE_PEER_DEPENDENCY = 59,
6565
INCOMPATIBLE_PEER_DEPENDENCY = 60,
6666
DEPRECATED_PACKAGE = 61,
67+
/**
68+
* @deprecated Use {@link INCOMPATIBLE_ARCHITECTURE}
69+
*/
6770
INCOMPATIBLE_OS = 62,
71+
/**
72+
* @deprecated Use {@link INCOMPATIBLE_ARCHITECTURE}
73+
*/
6874
INCOMPATIBLE_CPU = 63,
6975
FROZEN_ARTIFACT_EXCEPTION = 64,
7076
TELEMETRY_NOTICE = 65,

0 commit comments

Comments
 (0)