Browse Source

ts: Update `engines.node` to `>= 17` (#3301)

acheron 1 year ago
parent
commit
aa48efb437
46 changed files with 107 additions and 106 deletions
  1. 1 0
      CHANGELOG.md
  2. 1 1
      examples/tutorial/basic-0/package.json
  3. 1 1
      examples/tutorial/basic-1/package.json
  4. 1 1
      examples/tutorial/basic-2/package.json
  5. 1 1
      examples/tutorial/basic-3/package.json
  6. 1 1
      examples/tutorial/basic-4/package.json
  7. 1 1
      examples/tutorial/basic-5/package.json
  8. 1 1
      tests/anchor-cli-account/package.json
  9. 1 1
      tests/anchor-cli-idl/package.json
  10. 14 14
      tests/bpf-upgradeable-state/package.json
  11. 1 1
      tests/cashiers-check/package.json
  12. 1 1
      tests/cfo/package.json
  13. 1 1
      tests/chat/package.json
  14. 1 1
      tests/composite/package.json
  15. 1 1
      tests/cpi-returns/package.json
  16. 1 1
      tests/custom-coder/package.json
  17. 1 1
      tests/declare-id/package.json
  18. 1 1
      tests/docs/package.json
  19. 1 1
      tests/errors/package.json
  20. 1 1
      tests/escrow/package.json
  21. 1 1
      tests/events/package.json
  22. 17 17
      tests/floats/package.json
  23. 1 1
      tests/ido-pool/package.json
  24. 1 1
      tests/lockup/package.json
  25. 1 1
      tests/misc/package.json
  26. 17 17
      tests/multiple-suites-run-single/package.json
  27. 17 17
      tests/multiple-suites/package.json
  28. 1 1
      tests/multisig/package.json
  29. 1 1
      tests/optional/package.json
  30. 1 1
      tests/pda-derivation/package.json
  31. 1 1
      tests/pyth/package.json
  32. 1 1
      tests/realloc/package.json
  33. 1 1
      tests/relations-derivation/package.json
  34. 1 1
      tests/solang/package.json
  35. 1 1
      tests/spl/token-extensions/package.json
  36. 1 1
      tests/spl/token-proxy/package.json
  37. 1 1
      tests/spl/token-wrapper/package.json
  38. 1 1
      tests/spl/transfer-hook/package.json
  39. 1 1
      tests/swap/package.json
  40. 1 1
      tests/system-accounts/package.json
  41. 1 1
      tests/sysvars/package.json
  42. 1 1
      tests/tictactoe/package.json
  43. 1 1
      tests/typescript/package.json
  44. 1 1
      tests/validator-clone/package.json
  45. 1 1
      tests/zero-copy/package.json
  46. 1 1
      ts/packages/anchor/package.json

+ 1 - 0
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
 

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 14 - 14
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"
+  }
 }

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 17 - 17
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"
   }
+}

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 17 - 17
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"
   }
+}

+ 17 - 17
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"
   }
+}

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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"

+ 1 - 1
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",