@jsii/runtime 1.91.0 → 1.92.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.92.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.92.0",
38
+ "@jsii/check-node": "1.92.0",
39
+ "@jsii/spec": "^1.92.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.92.0",
43
+ "@scope/jsii-calc-lib": "^1.92.0",
44
+ "jsii-build-tools": "^1.92.0",
45
45
  "jsii-calc": "^3.20.120",
46
46
  "source-map-loader": "^4.0.1",
47
47
  "webpack": "^5.89.0",
@@ -3804,18 +3804,20 @@ var __webpack_modules__ = {
3804
3804
  }), new NodeRelease(12, {
3805
3805
  endOfLife: new Date("2022-04-30"),
3806
3806
  supportedRange: "^12.7.0"
3807
- }), new NodeRelease(19, {
3808
- endOfLife: new Date("2023-06-01")
3809
3807
  }), new NodeRelease(16, {
3810
3808
  endOfLife: new Date("2023-09-11"),
3811
3809
  supportedRange: "^16.3.0"
3812
3810
  }), new NodeRelease(17, {
3813
3811
  endOfLife: new Date("2022-06-01"),
3814
3812
  supportedRange: "^17.3.0"
3813
+ }), new NodeRelease(19, {
3814
+ endOfLife: new Date("2023-06-01")
3815
3815
  }), new NodeRelease(18, {
3816
3816
  endOfLife: new Date("2025-04-30")
3817
3817
  }), new NodeRelease(20, {
3818
3818
  endOfLife: new Date("2026-04-30")
3819
+ }), new NodeRelease(21, {
3820
+ endOfLife: new Date("2024-06-01")
3819
3821
  }) ];
3820
3822
  },
3821
3823
  7962: (__unused_webpack_module, exports, __webpack_require__) => {
@@ -3836,13 +3838,14 @@ var __webpack_modules__ = {
3836
3838
  }
3837
3839
  });
3838
3840
  function checkNode(envPrefix = "JSII") {
3841
+ var _a;
3839
3842
  const {nodeRelease, knownBroken} = constants_1.NodeRelease.forThisRuntime();
3840
3843
  const defaultCallToAction = "Should you encounter odd runtime issues, please try using one of the supported release before filing a bug report.";
3841
3844
  if (nodeRelease === null || nodeRelease === void 0 ? void 0 : nodeRelease.endOfLife) {
3842
3845
  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.";
3846
+ const silencedVersions = ((_a = process.env[silenceVariable]) !== null && _a !== void 0 ? _a : "").split(",").map((v => v.trim()));
3844
3847
  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.`);
3848
+ 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
3849
  } else if (knownBroken) {
3847
3850
  const silenceVariable = `${envPrefix}_SILENCE_WARNING_KNOWN_BROKEN_NODE_VERSION`;
3848
3851
  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.92.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.92.0","@jsii/check-node":"1.92.0","@jsii/spec":"^1.92.0"},"devDependencies":{"@scope/jsii-calc-base":"^1.92.0","@scope/jsii-calc-lib":"^1.92.0","jsii-build-tools":"^1.92.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";