diff --git a/CHANGELOG.md b/CHANGELOG.md index db3c036ba3..c65f2cbc17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,6 +81,7 @@ The minor version will be incremented upon a breaking change and the patch versi - lang: Fix constant bytes declarations when using `declare_program!` ([#3287](https://github.com/coral-xyz/anchor/pull/3287)). - lang: Fix using non-instruction composite accounts with `declare_program!` ([#3290](https://github.com/coral-xyz/anchor/pull/3290)). - idl: Fix instructions with tuple parameters not producing an error([#3294](https://github.com/coral-xyz/anchor/pull/3294)). +- ts: Update `engines.node` to `>= 17` ([#3301](https://github.com/coral-xyz/anchor/pull/3301)). ### Breaking diff --git a/examples/tutorial/basic-0/package.json b/examples/tutorial/basic-0/package.json index 57b13033bf..daf7cf1fdd 100644 --- a/examples/tutorial/basic-0/package.json +++ b/examples/tutorial/basic-0/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test --skip-lint && anchor clean" diff --git a/examples/tutorial/basic-1/package.json b/examples/tutorial/basic-1/package.json index 349ee92fa2..b34ba6c6dc 100644 --- a/examples/tutorial/basic-1/package.json +++ b/examples/tutorial/basic-1/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test --skip-lint && anchor clean" diff --git a/examples/tutorial/basic-2/package.json b/examples/tutorial/basic-2/package.json index 7e63322454..e8e143660d 100644 --- a/examples/tutorial/basic-2/package.json +++ b/examples/tutorial/basic-2/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test --skip-lint && anchor clean" diff --git a/examples/tutorial/basic-3/package.json b/examples/tutorial/basic-3/package.json index 2f4763adf5..9afe4bc121 100644 --- a/examples/tutorial/basic-3/package.json +++ b/examples/tutorial/basic-3/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test --skip-lint && anchor clean" diff --git a/examples/tutorial/basic-4/package.json b/examples/tutorial/basic-4/package.json index e162df60a2..adeef85e68 100644 --- a/examples/tutorial/basic-4/package.json +++ b/examples/tutorial/basic-4/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test --skip-lint && anchor clean" diff --git a/examples/tutorial/basic-5/package.json b/examples/tutorial/basic-5/package.json index 4455561c29..6f5d086c26 100644 --- a/examples/tutorial/basic-5/package.json +++ b/examples/tutorial/basic-5/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test --skip-lint && anchor clean" diff --git a/tests/anchor-cli-account/package.json b/tests/anchor-cli-account/package.json index 690bdc5362..e4fa548dab 100644 --- a/tests/anchor-cli-account/package.json +++ b/tests/anchor-cli-account/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/anchor-cli-idl/package.json b/tests/anchor-cli-idl/package.json index 4c31edba4c..f57d8f0ae3 100644 --- a/tests/anchor-cli-idl/package.json +++ b/tests/anchor-cli-idl/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "./test.sh" diff --git a/tests/bpf-upgradeable-state/package.json b/tests/bpf-upgradeable-state/package.json index 5caf6fe106..292dbc95ce 100644 --- a/tests/bpf-upgradeable-state/package.json +++ b/tests/bpf-upgradeable-state/package.json @@ -1,16 +1,16 @@ { - "name": "bpf-upgradeable-state", - "version": "0.24.0", - "license": "(MIT OR Apache-2.0)", - "homepage": "https://github.com/coral-xyz/anchor#readme", - "bugs": { - "url": "https://github.com/coral-xyz/anchor/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/coral-xyz/anchor.git" - }, - "engines": { - "node": ">=11" - } + "name": "bpf-upgradeable-state", + "version": "0.24.0", + "license": "(MIT OR Apache-2.0)", + "homepage": "https://github.com/coral-xyz/anchor#readme", + "bugs": { + "url": "https://github.com/coral-xyz/anchor/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/coral-xyz/anchor.git" + }, + "engines": { + "node": ">=17" + } } diff --git a/tests/cashiers-check/package.json b/tests/cashiers-check/package.json index 4c178102ac..7565523a5a 100644 --- a/tests/cashiers-check/package.json +++ b/tests/cashiers-check/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/cfo/package.json b/tests/cfo/package.json index 46ffb91918..131958525e 100644 --- a/tests/cfo/package.json +++ b/tests/cfo/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor run test-with-build" diff --git a/tests/chat/package.json b/tests/chat/package.json index 3a552e0021..82e87fe5ec 100644 --- a/tests/chat/package.json +++ b/tests/chat/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/composite/package.json b/tests/composite/package.json index d937685d5d..2df9657982 100644 --- a/tests/composite/package.json +++ b/tests/composite/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/cpi-returns/package.json b/tests/cpi-returns/package.json index 69d795796a..fa4f77b2ed 100644 --- a/tests/cpi-returns/package.json +++ b/tests/cpi-returns/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor run test-with-build" diff --git a/tests/custom-coder/package.json b/tests/custom-coder/package.json index e0c6039f27..6235b86a49 100644 --- a/tests/custom-coder/package.json +++ b/tests/custom-coder/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test --skip-lint" diff --git a/tests/declare-id/package.json b/tests/declare-id/package.json index 1fc78018e3..4fb315775b 100644 --- a/tests/declare-id/package.json +++ b/tests/declare-id/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/docs/package.json b/tests/docs/package.json index 7fa3731579..dc6f8f9c95 100644 --- a/tests/docs/package.json +++ b/tests/docs/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/errors/package.json b/tests/errors/package.json index 7fa3731579..dc6f8f9c95 100644 --- a/tests/errors/package.json +++ b/tests/errors/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/escrow/package.json b/tests/escrow/package.json index fafedc4363..79f9780519 100644 --- a/tests/escrow/package.json +++ b/tests/escrow/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/events/package.json b/tests/events/package.json index f39b99711d..97a0f70cf9 100644 --- a/tests/events/package.json +++ b/tests/events/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/floats/package.json b/tests/floats/package.json index be38a18bb9..b63e92b890 100644 --- a/tests/floats/package.json +++ b/tests/floats/package.json @@ -1,19 +1,19 @@ { - "name": "floats", - "version": "0.30.1", - "license": "(MIT OR Apache-2.0)", - "homepage": "https://github.com/coral-xyz/anchor#readme", - "bugs": { - "url": "https://github.com/coral-xyz/anchor/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/coral-xyz/anchor.git" - }, - "engines": { - "node": ">=11" - }, - "scripts": { - "test": "anchor test" - } + "name": "floats", + "version": "0.30.1", + "license": "(MIT OR Apache-2.0)", + "homepage": "https://github.com/coral-xyz/anchor#readme", + "bugs": { + "url": "https://github.com/coral-xyz/anchor/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/coral-xyz/anchor.git" + }, + "engines": { + "node": ">=17" + }, + "scripts": { + "test": "anchor test" } +} diff --git a/tests/ido-pool/package.json b/tests/ido-pool/package.json index 9731ddb1b8..a937283c12 100644 --- a/tests/ido-pool/package.json +++ b/tests/ido-pool/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/lockup/package.json b/tests/lockup/package.json index ace9f2986f..c15c3c94ee 100644 --- a/tests/lockup/package.json +++ b/tests/lockup/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/misc/package.json b/tests/misc/package.json index 65396b55fa..c5a61b86a2 100644 --- a/tests/misc/package.json +++ b/tests/misc/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/multiple-suites-run-single/package.json b/tests/multiple-suites-run-single/package.json index f11e4edbf7..b57fb8b715 100644 --- a/tests/multiple-suites-run-single/package.json +++ b/tests/multiple-suites-run-single/package.json @@ -1,19 +1,19 @@ { - "name": "multiple-suites-run-single", - "version": "0.24.2", - "license": "(MIT OR Apache-2.0)", - "homepage": "https://github.com/coral-xyz/anchor#readme", - "bugs": { - "url": "https://github.com/coral-xyz/anchor/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/coral-xyz/anchor.git" - }, - "engines": { - "node": ">=11" - }, - "scripts": { - "test": "anchor test" - } + "name": "multiple-suites-run-single", + "version": "0.24.2", + "license": "(MIT OR Apache-2.0)", + "homepage": "https://github.com/coral-xyz/anchor#readme", + "bugs": { + "url": "https://github.com/coral-xyz/anchor/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/coral-xyz/anchor.git" + }, + "engines": { + "node": ">=17" + }, + "scripts": { + "test": "anchor test" } +} diff --git a/tests/multiple-suites/package.json b/tests/multiple-suites/package.json index 1d560b537f..4e71e6d58b 100644 --- a/tests/multiple-suites/package.json +++ b/tests/multiple-suites/package.json @@ -1,19 +1,19 @@ { - "name": "multiple-suites", - "version": "0.30.1", - "license": "(MIT OR Apache-2.0)", - "homepage": "https://github.com/coral-xyz/anchor#readme", - "bugs": { - "url": "https://github.com/coral-xyz/anchor/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/coral-xyz/anchor.git" - }, - "engines": { - "node": ">=11" - }, - "scripts": { - "test": "anchor test" - } + "name": "multiple-suites", + "version": "0.30.1", + "license": "(MIT OR Apache-2.0)", + "homepage": "https://github.com/coral-xyz/anchor#readme", + "bugs": { + "url": "https://github.com/coral-xyz/anchor/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/coral-xyz/anchor.git" + }, + "engines": { + "node": ">=17" + }, + "scripts": { + "test": "anchor test" } +} diff --git a/tests/multisig/package.json b/tests/multisig/package.json index 5fc36c1314..c4be117b00 100644 --- a/tests/multisig/package.json +++ b/tests/multisig/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/optional/package.json b/tests/optional/package.json index a5914f01cf..e18cb656e0 100644 --- a/tests/optional/package.json +++ b/tests/optional/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/pda-derivation/package.json b/tests/pda-derivation/package.json index 36b78953d2..a018c0d333 100644 --- a/tests/pda-derivation/package.json +++ b/tests/pda-derivation/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/pyth/package.json b/tests/pyth/package.json index 8d09d64ff0..638d3163b6 100644 --- a/tests/pyth/package.json +++ b/tests/pyth/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/realloc/package.json b/tests/realloc/package.json index 149233a774..4bcc3be0c1 100644 --- a/tests/realloc/package.json +++ b/tests/realloc/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/relations-derivation/package.json b/tests/relations-derivation/package.json index 37870c0c2b..ba767ebdf3 100644 --- a/tests/relations-derivation/package.json +++ b/tests/relations-derivation/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/solang/package.json b/tests/solang/package.json index 9063210c76..c97ba8ca5a 100644 --- a/tests/solang/package.json +++ b/tests/solang/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor run test-with-build" diff --git a/tests/spl/token-extensions/package.json b/tests/spl/token-extensions/package.json index 487bc1297f..a8249709a7 100644 --- a/tests/spl/token-extensions/package.json +++ b/tests/spl/token-extensions/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/spl/token-proxy/package.json b/tests/spl/token-proxy/package.json index bda4e6f519..56c6468a02 100644 --- a/tests/spl/token-proxy/package.json +++ b/tests/spl/token-proxy/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/spl/token-wrapper/package.json b/tests/spl/token-wrapper/package.json index ce70ff4b2f..53e22d29ba 100644 --- a/tests/spl/token-wrapper/package.json +++ b/tests/spl/token-wrapper/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/spl/transfer-hook/package.json b/tests/spl/transfer-hook/package.json index c97b24f510..33320fdc1b 100644 --- a/tests/spl/transfer-hook/package.json +++ b/tests/spl/transfer-hook/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/swap/package.json b/tests/swap/package.json index 4327e5e233..50ae1338cc 100644 --- a/tests/swap/package.json +++ b/tests/swap/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/system-accounts/package.json b/tests/system-accounts/package.json index a3211bfe26..4fd0a11f70 100644 --- a/tests/system-accounts/package.json +++ b/tests/system-accounts/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/sysvars/package.json b/tests/sysvars/package.json index 54ffc6e258..6a861fc4e0 100644 --- a/tests/sysvars/package.json +++ b/tests/sysvars/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/tictactoe/package.json b/tests/tictactoe/package.json index a471abb8f3..588d2a2d9f 100644 --- a/tests/tictactoe/package.json +++ b/tests/tictactoe/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/typescript/package.json b/tests/typescript/package.json index c338ff7f3e..5fe7d650e7 100644 --- a/tests/typescript/package.json +++ b/tests/typescript/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/validator-clone/package.json b/tests/validator-clone/package.json index 338257929c..139fc29e18 100644 --- a/tests/validator-clone/package.json +++ b/tests/validator-clone/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/tests/zero-copy/package.json b/tests/zero-copy/package.json index 386538a86b..0c61dbf9b5 100644 --- a/tests/zero-copy/package.json +++ b/tests/zero-copy/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/coral-xyz/anchor.git" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "test": "anchor test" diff --git a/ts/packages/anchor/package.json b/ts/packages/anchor/package.json index 5e78c50279..f96e0f15fe 100644 --- a/ts/packages/anchor/package.json +++ b/ts/packages/anchor/package.json @@ -19,7 +19,7 @@ "access": "public" }, "engines": { - "node": ">=11" + "node": ">=17" }, "scripts": { "build": "rimraf dist/ && yarn build:node && yarn build:browser",