jsii-diff 1.77.0 → 1.78.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/lib/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** The qualified version number for this JSII compiler. */
2
- export declare const VERSION = "1.77.0 (build 3e5fa88)";
2
+ export declare const VERSION = "1.78.0 (build 1041b18)";
3
3
  //# sourceMappingURL=version.d.ts.map
package/lib/version.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- // Generated at 2023-03-06T15:17:26Z by generate.sh
2
+ // Generated at 2023-03-16T11:11:38Z by generate.sh
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.VERSION = void 0;
5
5
  /** The qualified version number for this JSII compiler. */
6
- exports.VERSION = '1.77.0 (build 3e5fa88)';
6
+ exports.VERSION = '1.78.0 (build 1041b18)';
7
7
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsii-diff",
3
- "version": "1.77.0",
3
+ "version": "1.78.0",
4
4
  "description": "Assembly comparison for jsii",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -33,10 +33,10 @@
33
33
  "package": "package-js"
34
34
  },
35
35
  "dependencies": {
36
- "@jsii/check-node": "1.77.0",
37
- "@jsii/spec": "^1.77.0",
36
+ "@jsii/check-node": "1.78.0",
37
+ "@jsii/spec": "^1.78.0",
38
38
  "fs-extra": "^10.1.0",
39
- "jsii-reflect": "^1.77.0",
39
+ "jsii-reflect": "^1.78.0",
40
40
  "log4js": "^6.8.0",
41
41
  "yargs": "^16.2.0"
42
42
  },
@@ -44,7 +44,7 @@
44
44
  "@types/fs-extra": "^9.0.13",
45
45
  "@types/tar-fs": "^2.0.1",
46
46
  "jest-expect-message": "^1.1.3",
47
- "jsii": "^1.77.0",
48
- "jsii-build-tools": "^1.77.0"
47
+ "jsii": "^1.78.0",
48
+ "jsii-build-tools": "^1.78.0"
49
49
  }
50
50
  }
@@ -274,7 +274,7 @@ test.each([
274
274
  {
275
275
  oldDecl: 'name: string',
276
276
  newDecl: 'name: string | number',
277
- error: /string \| number is not assignable to string/,
277
+ error: /number \| string is not assignable to string/,
278
278
  },
279
279
  {
280
280
  oldDecl: 'name: string | number',
@@ -305,12 +305,12 @@ test.each([
305
305
  {
306
306
  oldDecl: 'name: string',
307
307
  newDecl: 'name: string | number',
308
- error: /changed to string \| number \(formerly string\)/,
308
+ error: /changed to number \| string \(formerly string\)/,
309
309
  },
310
310
  {
311
311
  oldDecl: 'name: string | number',
312
312
  newDecl: 'name: string',
313
- error: /changed to string \(formerly string \| number\)/,
313
+ error: /changed to string \(formerly number \| string\)/,
314
314
  },
315
315
  ])('cannot change a mutable class property type: %p to %p', ({ oldDecl, newDecl, error }) => (0, util_1.expectError)(error, `
316
316
  export class Henk {
@@ -35,7 +35,7 @@ test('type unions in return structs can be narrowed', () => (0, util_1.expectNoE
35
35
  }
36
36
  `));
37
37
  // ----------------------------------------------------------------------
38
- test('type unions in return structs can not be widened', () => (0, util_1.expectError)(/some of string \| number \| boolean are not assignable to string \| number/, `
38
+ test('type unions in return structs can not be widened', () => (0, util_1.expectError)(/some of boolean \| number \| string are not assignable to number \| string/, `
39
39
  export interface Henk {
40
40
  readonly henk: string | number;
41
41
  }
@@ -83,7 +83,7 @@ test('type unions in input structs can be widened', () => (0, util_1.expectNoErr
83
83
  }
84
84
  `));
85
85
  // ----------------------------------------------------------------------
86
- test('type unions in input structs can not be narrowed', () => (0, util_1.expectError)(/string \| number is not assignable to string/, `
86
+ test('type unions in input structs can not be narrowed', () => (0, util_1.expectError)(/number \| string is not assignable to string/, `
87
87
  export interface Henk {
88
88
  readonly henk: string | number;
89
89
  }