jsii-pacmak 1.104.0 → 1.106.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.
@@ -4,10 +4,10 @@ exports.updateAllNpmIgnores = exports.findJsiiModules = void 0;
4
4
  const spec = require("@jsii/spec");
5
5
  const fs = require("fs-extra");
6
6
  const path = require("path");
7
- const logging = require("../lib/logging");
8
7
  const packaging_1 = require("./packaging");
9
8
  const toposort_1 = require("./toposort");
10
9
  const util_1 = require("./util");
10
+ const logging = require("../lib/logging");
11
11
  /**
12
12
  * Find all modules that need to be packagerd
13
13
  *
package/lib/packaging.js CHANGED
@@ -4,8 +4,8 @@ exports.JsiiModule = exports.DEFAULT_PACK_COMMAND = void 0;
4
4
  const fs = require("fs-extra");
5
5
  const os = require("os");
6
6
  const path = require("path");
7
- const logging = require("../lib/logging");
8
7
  const util_1 = require("./util");
8
+ const logging = require("../lib/logging");
9
9
  exports.DEFAULT_PACK_COMMAND = 'npm pack';
10
10
  class JsiiModule {
11
11
  constructor(options) {
@@ -966,10 +966,12 @@ async function tryDownloadResource(urlText, into) {
966
966
  return undefined;
967
967
  }
968
968
  return new Promise((ok, ko) => request(url, (res) => {
969
+ // eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
969
970
  switch (res.statusCode) {
970
971
  case 200:
971
972
  let fileName = path.basename(url.pathname);
972
973
  // Ensure there is a content-appropriate extension on the result...
974
+ // eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
973
975
  switch (res.headers['content-type']) {
974
976
  case 'image/gif':
975
977
  if (!fileName.endsWith('.gif')) {
@@ -59,7 +59,7 @@ class DotnetBuilder {
59
59
  const ret = [];
60
60
  // Code generator will make its own subdirectory
61
61
  const generatedModules = modules.map((mod) => this.generateModuleCode(mod, tmpDir).then(() => mod));
62
- for await (const mod of generatedModules) {
62
+ for (const mod of await Promise.all(generatedModules)) {
63
63
  const loc = projectLocation(mod);
64
64
  csProjs.push(loc.projectFile);
65
65
  ret.push({
@@ -114,7 +114,7 @@ class DotnetBuilder {
114
114
  module,
115
115
  localBuildDirs: await (0, target_1.findLocalBuildDirs)(module.moduleDirectory, this.targetName),
116
116
  }));
117
- for await (const { module, localBuildDirs } of resolvedModules) {
117
+ for (const { module, localBuildDirs } of await Promise.all(resolvedModules)) {
118
118
  (0, util_1.setExtend)(allDepsOutputDirs, localBuildDirs);
119
119
  // Also include output directory where we're building to, in case we build multiple packages into
120
120
  // the same output directory.
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InternalPackage = exports.RootPackage = exports.Package = exports.GO_VERSION = exports.GOMOD_FILENAME = void 0;
4
4
  const path_1 = require("path");
5
5
  const semver = require("semver");
6
- const version_1 = require("../../version");
7
6
  const dependencies_1 = require("./dependencies");
8
7
  const readme_file_1 = require("./readme-file");
9
8
  const runtime_1 = require("./runtime");
10
9
  const types_1 = require("./types");
11
10
  const util_1 = require("./util");
12
11
  const version_file_1 = require("./version-file");
12
+ const version_1 = require("../../version");
13
13
  exports.GOMOD_FILENAME = 'go.mod';
14
14
  exports.GO_VERSION = '1.18';
15
15
  const MAIN_FILE = 'main.go';
@@ -4,9 +4,9 @@ import { ApiLocation } from 'jsii-rosetta';
4
4
  import { SpecialDependencies } from '../dependencies';
5
5
  import { EmitContext } from '../emit-context';
6
6
  import { Package } from '../package';
7
- import { ParameterValidator, StructValidator } from '../runtime/runtime-type-checking';
8
7
  import { GoClass } from './class';
9
8
  import { GoInterface } from './interface';
9
+ import { ParameterValidator, StructValidator } from '../runtime/runtime-type-checking';
10
10
  export declare abstract class GoType<T extends Type = Type> {
11
11
  readonly pkg: Package;
12
12
  readonly type: T;
@@ -94,7 +94,7 @@ class JavaBuilder {
94
94
  module,
95
95
  relativeName,
96
96
  })));
97
- for await (const { module, relativeName } of generatedModules) {
97
+ for (const { module, relativeName } of await Promise.all(generatedModules)) {
98
98
  ret.push({
99
99
  relativeSourceDir: relativeName,
100
100
  relativeArtifactsDir: moduleArtifactsSubdir(module),
@@ -172,7 +172,7 @@ class JavaBuilder {
172
172
  module: mod,
173
173
  localBuildDirs: await (0, target_1.findLocalBuildDirs)(mod.moduleDirectory, this.targetName),
174
174
  }));
175
- for await (const { module, localBuildDirs } of resolvedModules) {
175
+ for (const { module, localBuildDirs } of await Promise.all(resolvedModules)) {
176
176
  (0, util_1.setExtend)(allDepsOutputDirs, localBuildDirs);
177
177
  // Also include output directory where we're building to, in case we build multiple packages into
178
178
  // the same output directory.
@@ -526,7 +526,7 @@ class BaseMethod {
526
526
  typeAnnotation: false,
527
527
  });
528
528
  // We need to build up a list of properties, which are mandatory, these are the
529
- // ones we will specifiy to start with in our dictionary literal.
529
+ // ones we will specify to start with in our dictionary literal.
530
530
  const liftedProps = this.getLiftedProperties(context.resolver).map((p) => new StructField(this.generator, p.prop, p.definingType));
531
531
  const assignments = liftedProps
532
532
  .map((p) => p.pythonName)
@@ -1528,6 +1528,8 @@ class Package {
1528
1528
  case spec.Stability.Deprecated:
1529
1529
  setupKwargs.classifiers.push('Development Status :: 7 - Inactive');
1530
1530
  break;
1531
+ case spec.Stability.External:
1532
+ case undefined:
1531
1533
  default:
1532
1534
  // No 'Development Status' trove classifier for you!
1533
1535
  }
@@ -45,6 +45,7 @@ function toPythonVersionRange(semverRange) {
45
45
  .map((set) => set
46
46
  .map((comp) => {
47
47
  const versionId = toReleaseVersion(comp.semver.raw?.replace(/-0$/, '') ?? '0.0.0', _1.TargetName.PYTHON);
48
+ // eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
48
49
  switch (comp.operator) {
49
50
  case '':
50
51
  // With ^0.0.0, somehow we get a left entry with an empty operator and value, we'll fix this up
package/lib/version.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** The short version number for this jsii-pacmak release (e.g: `X.Y.Z`) */
2
2
  export declare const VERSION: string;
3
3
  /** The qualified version number for this jsii-pacmak release (e.g: `X.Y.Z (build #######)`) */
4
- export declare const VERSION_DESC = "1.104.0 (build e79254c)";
4
+ export declare const VERSION_DESC = "1.106.0 (build e852934)";
5
5
  //# sourceMappingURL=version.d.ts.map
package/lib/version.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
- // Generated at 2024-10-11T17:50:50Z by generate.sh
2
+ // Generated at 2024-12-16T20:26:40Z by generate.sh
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.VERSION_DESC = exports.VERSION = void 0;
5
5
  /** The short version number for this jsii-pacmak release (e.g: `X.Y.Z`) */
6
6
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
7
- exports.VERSION = '1.104.0';
7
+ exports.VERSION = '1.106.0';
8
8
  /** The qualified version number for this jsii-pacmak release (e.g: `X.Y.Z (build #######)`) */
9
- exports.VERSION_DESC = '1.104.0 (build e79254c)';
9
+ exports.VERSION_DESC = '1.106.0 (build e852934)';
10
10
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsii-pacmak",
3
- "version": "1.104.0",
3
+ "version": "1.106.0",
4
4
  "description": "A code generation framework for jsii backend languages",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -37,38 +37,38 @@
37
37
  "package": "package-js"
38
38
  },
39
39
  "dependencies": {
40
- "@jsii/check-node": "1.104.0",
41
- "@jsii/spec": "^1.104.0",
40
+ "@jsii/check-node": "1.106.0",
41
+ "@jsii/spec": "^1.106.0",
42
42
  "clone": "^2.1.2",
43
- "codemaker": "^1.104.0",
44
- "commonmark": "^0.31.1",
43
+ "codemaker": "^1.106.0",
44
+ "commonmark": "^0.31.2",
45
45
  "escape-string-regexp": "^4.0.0",
46
46
  "fs-extra": "^10.1.0",
47
- "jsii-reflect": "^1.104.0",
47
+ "jsii-reflect": "^1.106.0",
48
48
  "semver": "^7.6.3",
49
49
  "spdx-license-list": "^6.9.0",
50
50
  "xmlbuilder": "^15.1.1",
51
51
  "yargs": "^16.2.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@jsii/dotnet-runtime": "^1.104.0",
55
- "@jsii/java-runtime": "^1.104.0",
56
- "@jsii/go-runtime": "^1.104.0",
57
- "@scope/jsii-calc-lib": "^1.104.0",
54
+ "@jsii/dotnet-runtime": "^1.106.0",
55
+ "@jsii/go-runtime": "^1.106.0",
56
+ "@jsii/java-runtime": "^1.106.0",
57
+ "@scope/jsii-calc-lib": "^1.106.0",
58
58
  "@types/clone": "^2.1.4",
59
- "@types/diff": "^5.2.1",
60
59
  "@types/commonmark": "^0.27.9",
60
+ "@types/diff": "^5.2.3",
61
61
  "@types/fs-extra": "^9.0.13",
62
62
  "@types/semver": "^7.5.8",
63
63
  "diff": "^5.2.0",
64
- "jsii": "^1.104.0",
65
- "jsii-build-tools": "^1.104.0",
64
+ "jsii": "^5.7.0",
65
+ "jsii-build-tools": "^1.106.0",
66
66
  "jsii-calc": "^3.20.120",
67
- "jsii-rosetta": "^1.104.0",
68
- "pyright": "^1.1.378"
67
+ "jsii-rosetta": "~5.7.0",
68
+ "pyright": "^1.1.389"
69
69
  },
70
70
  "peerDependencies": {
71
- "jsii-rosetta": "^1.104.0 || ~5.2.0 || ~5.3.0 || ~5.4.0 || ~5.5.0"
71
+ "jsii-rosetta": ">=5.4.0"
72
72
  },
73
73
  "keywords": [
74
74
  "jsii",