@jsii/runtime 1.91.0 → 1.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsii/runtime",
3
- "version": "1.91.0",
3
+ "version": "1.93.0",
4
4
  "description": "jsii runtime kernel process",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -34,14 +34,14 @@
34
34
  "package": "package-js"
35
35
  },
36
36
  "dependencies": {
37
- "@jsii/kernel": "^1.91.0",
38
- "@jsii/check-node": "1.91.0",
39
- "@jsii/spec": "^1.91.0"
37
+ "@jsii/kernel": "^1.93.0",
38
+ "@jsii/check-node": "1.93.0",
39
+ "@jsii/spec": "^1.93.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@scope/jsii-calc-base": "^1.91.0",
43
- "@scope/jsii-calc-lib": "^1.91.0",
44
- "jsii-build-tools": "^1.91.0",
42
+ "@scope/jsii-calc-base": "^1.93.0",
43
+ "@scope/jsii-calc-lib": "^1.93.0",
44
+ "jsii-build-tools": "^1.93.0",
45
45
  "jsii-calc": "^3.20.120",
46
46
  "source-map-loader": "^4.0.1",
47
47
  "webpack": "^5.89.0",
@@ -3794,28 +3794,35 @@ var __webpack_modules__ = {
3794
3794
  NodeRelease.DEPRECATION_WINDOW_MS = 30 * ONE_DAY_IN_MILLISECONDS;
3795
3795
  NodeRelease.ALL_RELEASES = [ ...[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ].map((majorVersion => new NodeRelease(majorVersion, {
3796
3796
  endOfLife: true
3797
- }))), new NodeRelease(13, {
3798
- endOfLife: new Date("2020-06-01")
3797
+ }))), new NodeRelease(12, {
3798
+ endOfLife: new Date("2022-04-30"),
3799
+ supportedRange: "^12.7.0"
3800
+ }), new NodeRelease(13, {
3801
+ endOfLife: new Date("2020-06-01"),
3802
+ untested: true
3799
3803
  }), new NodeRelease(14, {
3800
3804
  endOfLife: new Date("2023-04-30"),
3801
3805
  supportedRange: "^14.17.0"
3802
3806
  }), new NodeRelease(15, {
3803
- endOfLife: new Date("2021-06-01")
3804
- }), new NodeRelease(12, {
3805
- endOfLife: new Date("2022-04-30"),
3806
- supportedRange: "^12.7.0"
3807
- }), new NodeRelease(19, {
3808
- endOfLife: new Date("2023-06-01")
3807
+ endOfLife: new Date("2021-06-01"),
3808
+ untested: true
3809
3809
  }), new NodeRelease(16, {
3810
3810
  endOfLife: new Date("2023-09-11"),
3811
3811
  supportedRange: "^16.3.0"
3812
3812
  }), new NodeRelease(17, {
3813
3813
  endOfLife: new Date("2022-06-01"),
3814
- supportedRange: "^17.3.0"
3814
+ supportedRange: "^17.3.0",
3815
+ untested: true
3816
+ }), new NodeRelease(19, {
3817
+ endOfLife: new Date("2023-06-01"),
3818
+ untested: true
3815
3819
  }), new NodeRelease(18, {
3816
3820
  endOfLife: new Date("2025-04-30")
3817
3821
  }), new NodeRelease(20, {
3818
3822
  endOfLife: new Date("2026-04-30")
3823
+ }), new NodeRelease(21, {
3824
+ endOfLife: new Date("2024-06-01"),
3825
+ untested: true
3819
3826
  }) ];
3820
3827
  },
3821
3828
  7962: (__unused_webpack_module, exports, __webpack_require__) => {
@@ -3836,13 +3843,14 @@ var __webpack_modules__ = {
3836
3843
  }
3837
3844
  });
3838
3845
  function checkNode(envPrefix = "JSII") {
3846
+ var _a;
3839
3847
  const {nodeRelease, knownBroken} = constants_1.NodeRelease.forThisRuntime();
3840
3848
  const defaultCallToAction = "Should you encounter odd runtime issues, please try using one of the supported release before filing a bug report.";
3841
3849
  if (nodeRelease === null || nodeRelease === void 0 ? void 0 : nodeRelease.endOfLife) {
3842
3850
  const silenceVariable = `${envPrefix}_SILENCE_WARNING_END_OF_LIFE_NODE_VERSION`;
3843
- const acknowledgeNodeEol = "Node14 is now end of life (EOL) as of April 30, 2023. Support of EOL runtimes are only guaranteed for 30 days after EOL. By silencing this warning you acknowledge that you are using an EOL version of Node and will upgrade to a supported version as soon as possible.";
3851
+ const silencedVersions = ((_a = process.env[silenceVariable]) !== null && _a !== void 0 ? _a : "").split(",").map((v => v.trim()));
3844
3852
  const qualifier = nodeRelease.endOfLifeDate ? ` on ${nodeRelease.endOfLifeDate.toISOString().slice(0, 10)}` : "";
3845
- if (!(process.env[silenceVariable] === acknowledgeNodeEol)) veryVisibleMessage(chalk_1.bgRed.white.bold, `Node ${nodeRelease.majorVersion} has reached end-of-life${qualifier} and is not supported.`, `Please upgrade to a supported node version as soon as possible.`);
3853
+ if (!silencedVersions.includes(nodeRelease.majorVersion.toString())) veryVisibleMessage(chalk_1.bgRed.white.bold, `Node ${nodeRelease.majorVersion} has reached end-of-life${qualifier} and is not supported.`, `Please upgrade to a supported node version as soon as possible.`);
3846
3854
  } else if (knownBroken) {
3847
3855
  const silenceVariable = `${envPrefix}_SILENCE_WARNING_KNOWN_BROKEN_NODE_VERSION`;
3848
3856
  if (!process.env[silenceVariable]) veryVisibleMessage(chalk_1.bgRed.white.bold, `Node ${process_1.version} is unsupported and has known compatibility issues with this software.`, defaultCallToAction, silenceVariable);
@@ -7895,7 +7895,8 @@ var __webpack_modules__ = {
7895
7895
  return Object.defineProperty((function(...args) {
7896
7896
  if (typeof args[args.length - 1] === "function") fn.apply(this, args); else {
7897
7897
  return new Promise(((resolve, reject) => {
7898
- fn.call(this, ...args, ((err, res) => err != null ? reject(err) : resolve(res)));
7898
+ args.push(((err, res) => err != null ? reject(err) : resolve(res)));
7899
+ fn.apply(this, args);
7899
7900
  }));
7900
7901
  }
7901
7902
  }), "name", {
@@ -7905,7 +7906,10 @@ var __webpack_modules__ = {
7905
7906
  exports.fromPromise = function(fn) {
7906
7907
  return Object.defineProperty((function(...args) {
7907
7908
  const cb = args[args.length - 1];
7908
- if (typeof cb !== "function") return fn.apply(this, args); else fn.apply(this, args.slice(0, -1)).then((r => cb(null, r)), cb);
7909
+ if (typeof cb !== "function") return fn.apply(this, args); else {
7910
+ args.pop();
7911
+ fn.apply(this, args).then((r => cb(null, r)), cb);
7912
+ }
7909
7913
  }), "name", {
7910
7914
  value: fn.name
7911
7915
  });
@@ -10503,12 +10507,16 @@ var __webpack_modules__ = {
10503
10507
  if (!epkg.bin) {
10504
10508
  throw new JsiiFault(`Script with name ${req.script} was not defined.`);
10505
10509
  }
10510
+ const nodeOptions = [ ...process.execArgv ];
10511
+ if (nodeOptions.includes("--preserve-symlinks")) {
10512
+ nodeOptions.push("--preserve-symlinks-main");
10513
+ }
10506
10514
  return {
10507
10515
  command: path.join(packageDir, scriptPath),
10508
10516
  args: (_b = req.args) !== null && _b !== void 0 ? _b : [],
10509
10517
  env: {
10510
10518
  ...process.env,
10511
- NODE_OPTIONS: process.execArgv.join(" "),
10519
+ NODE_OPTIONS: nodeOptions.join(" "),
10512
10520
  PATH: `${path.dirname(process.execPath)}:${process.env.PATH}`
10513
10521
  }
10514
10522
  };
@@ -17459,7 +17467,7 @@ var __webpack_modules__ = {
17459
17467
  },
17460
17468
  4147: module => {
17461
17469
  "use strict";
17462
- module.exports = JSON.parse('{"name":"@jsii/runtime","version":"1.91.0","description":"jsii runtime kernel process","license":"Apache-2.0","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com"},"homepage":"https://github.com/aws/jsii","bugs":{"url":"https://github.com/aws/jsii/issues"},"repository":{"type":"git","url":"https://github.com/aws/jsii.git","directory":"packages/@jsii/runtime"},"engines":{"node":">= 14.17.0"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"jsii-runtime":"bin/jsii-runtime"},"scripts":{"build":"tsc --build && chmod +x bin/jsii-runtime && npx webpack-cli && npm run lint","watch":"tsc --build -w","lint":"eslint . --ext .js,.ts --ignore-path=.gitignore --ignore-pattern=webpack.config.js","lint:fix":"yarn lint --fix","test":"jest","test:update":"jest -u","package":"package-js"},"dependencies":{"@jsii/kernel":"^1.91.0","@jsii/check-node":"1.91.0","@jsii/spec":"^1.91.0"},"devDependencies":{"@scope/jsii-calc-base":"^1.91.0","@scope/jsii-calc-lib":"^1.91.0","jsii-build-tools":"^1.91.0","jsii-calc":"^3.20.120","source-map-loader":"^4.0.1","webpack":"^5.89.0","webpack-cli":"^5.1.4"}}');
17470
+ module.exports = JSON.parse('{"name":"@jsii/runtime","version":"1.93.0","description":"jsii runtime kernel process","license":"Apache-2.0","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com"},"homepage":"https://github.com/aws/jsii","bugs":{"url":"https://github.com/aws/jsii/issues"},"repository":{"type":"git","url":"https://github.com/aws/jsii.git","directory":"packages/@jsii/runtime"},"engines":{"node":">= 14.17.0"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"jsii-runtime":"bin/jsii-runtime"},"scripts":{"build":"tsc --build && chmod +x bin/jsii-runtime && npx webpack-cli && npm run lint","watch":"tsc --build -w","lint":"eslint . --ext .js,.ts --ignore-path=.gitignore --ignore-pattern=webpack.config.js","lint:fix":"yarn lint --fix","test":"jest","test:update":"jest -u","package":"package-js"},"dependencies":{"@jsii/kernel":"^1.93.0","@jsii/check-node":"1.93.0","@jsii/spec":"^1.93.0"},"devDependencies":{"@scope/jsii-calc-base":"^1.93.0","@scope/jsii-calc-lib":"^1.93.0","jsii-build-tools":"^1.93.0","jsii-calc":"^3.20.120","source-map-loader":"^4.0.1","webpack":"^5.89.0","webpack-cli":"^5.1.4"}}');
17463
17471
  },
17464
17472
  5277: module => {
17465
17473
  "use strict";