Skip to content

Commit 02eec31

Browse files
authored
chore(release): 1.118.0 (#4968)
See [CHANGELOG](https://github.com/aws/jsii/blob/bump/1.118.0/CHANGELOG.md)
2 parents b8499c7 + 9c2bbad commit 02eec31

31 files changed

+2097
-73
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
--site-dir ${{ runner.temp }}/site
4141
working-directory: gh-pages
4242
- name: Upload Artifact
43-
uses: actions/upload-artifact@v4
43+
uses: actions/upload-artifact@v5
4444
with:
4545
name: doc-site
4646
path: ${{ runner.temp }}/site/
@@ -59,7 +59,7 @@ jobs:
5959
ref: gh-pages
6060
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
6161
- name: Download Artifact
62-
uses: actions/download-artifact@v5
62+
uses: actions/download-artifact@v6
6363
with:
6464
name: doc-site
6565
path: ${{ runner.temp }}/site

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
.
8181
# Upload artifact (we'll tar it up to save time)
8282
- name: 'Upload Artifact: built-tree'
83-
uses: actions/upload-artifact@v4
83+
uses: actions/upload-artifact@v5
8484
with:
8585
name: built-tree
8686
path: ${{ runner.temp }}/built-tree.tgz
@@ -173,7 +173,7 @@ jobs:
173173
yarn package
174174
# Upload artifacts
175175
- name: 'Upload Artifact: release-package'
176-
uses: actions/upload-artifact@v4
176+
uses: actions/upload-artifact@v5
177177
with:
178178
name: release-package
179179
path: ${{ github.workspace }}/dist/
@@ -331,7 +331,7 @@ jobs:
331331
steps:
332332
# Check out the code
333333
- name: Download Artifact
334-
uses: actions/download-artifact@v5
334+
uses: actions/download-artifact@v6
335335
with:
336336
name: built-tree
337337
- name: Extract Artifact
@@ -431,7 +431,7 @@ jobs:
431431
steps:
432432
# Check out the code
433433
- name: Download Artifact
434-
uses: actions/download-artifact@v5
434+
uses: actions/download-artifact@v6
435435
with:
436436
name: release-package
437437
path: ${{ runner.temp }}/release-package
@@ -483,7 +483,7 @@ jobs:
483483
# Upload artifact only on main and for latest rosetta
484484
- name: 'Upload Artifact: integtest_aws-cdk-lib'
485485
if: github.ref == 'ref/head/main' && matrix.rosetta == 'latest'
486-
uses: actions/upload-artifact@v4
486+
uses: actions/upload-artifact@v5
487487
with:
488488
name: integtest_aws-cdk-lib
489489
path: ./node_modules/aws-cdk-lib/dist/

.github/workflows/yarn-upgrade.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
git add .
106106
git diff --patch --staged > ${{ runner.temp }}/upgrade.patch
107107
- name: Upload Patch
108-
uses: actions/upload-artifact@v4
108+
uses: actions/upload-artifact@v5
109109
with:
110110
name: upgrade.patch
111111
path: ${{ runner.temp }}/upgrade.patch
@@ -122,7 +122,7 @@ jobs:
122122
uses: actions/checkout@v5
123123

124124
- name: Download patch
125-
uses: actions/download-artifact@v5
125+
uses: actions/download-artifact@v6
126126
with:
127127
name: upgrade.patch
128128
path: ${{ runner.temp }}

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [1.118.0](https://github.com/aws/jsii/compare/v1.117.0...v1.118.0) (2025-10-29)
6+
7+
8+
### Features
9+
10+
* **jsii-reflect:** add a jsii-query tool ([#4952](https://github.com/aws/jsii/issues/4952)) ([f040d3e](https://github.com/aws/jsii/commit/f040d3e97735c7f66a2c230d37c7fba0cf72fe9d))
11+
12+
13+
### Bug Fixes
14+
15+
* covariant method overrides break Go compilation ([#4967](https://github.com/aws/jsii/issues/4967)) ([2c39079](https://github.com/aws/jsii/commit/2c39079cb2eab7c2192f0d50aa9b280e5c96c826))
16+
* type intersections are missing dependencies in Go ([#4965](https://github.com/aws/jsii/issues/4965)) ([ee67cc9](https://github.com/aws/jsii/commit/ee67cc977387459f2ee212b0fabf6e082653c592))
17+
518
## [1.117.0](https://github.com/aws/jsii/compare/v1.116.0...v1.117.0) (2025-10-22)
619

720

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"rejectCycles": true
1313
}
1414
},
15-
"version": "1.117.0",
15+
"version": "1.118.0",
1616
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
1717
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
package tests
2+
3+
import (
4+
"testing"
5+
6+
"github.com/aws/jsii/jsii-calc/go/jsiicalc/v3/covariantoverrides/classoverrides"
7+
)
8+
9+
func TestBase(t *testing.T) {
10+
base := classoverrides.NewBase()
11+
if *base.Something().Name() != "Superclass" {
12+
t.Errorf("Expected Superclass, got %s", *base.Something().Name())
13+
}
14+
if *base.CreateSomething().SayHello() != "Hello Superclass" {
15+
t.Errorf("Expected 'Hello Superclass', got %s", *base.CreateSomething().SayHello())
16+
}
17+
}
18+
19+
func TestMiddle(t *testing.T) {
20+
middle := classoverrides.NewMiddle()
21+
if *middle.Something().Name() != "Superclass" {
22+
t.Errorf("Expected Superclass, got %s", *middle.Something().Name())
23+
}
24+
if *middle.CreateSomething().SayHello() != "Hello Superclass" {
25+
t.Errorf("Expected 'Hello Superclass', got %s", *middle.CreateSomething().SayHello())
26+
}
27+
}
28+
29+
func TestDerived(t *testing.T) {
30+
derived := classoverrides.NewDerived()
31+
if *derived.Something().Name() != "SubSubclass" {
32+
t.Errorf("Expected SubSubclass, got %s", *derived.Something().Name())
33+
}
34+
created := derived.CreateSomething()
35+
if *created.Name() != "SubSubclass" {
36+
t.Errorf("Expected SubSubclass, got %s", *created.Name())
37+
}
38+
if *created.SayHello() != "Hello SubSubclass" {
39+
t.Errorf("Expected 'Hello SubSubclass', got %s", *created.SayHello())
40+
}
41+
}
42+
43+
func TestPolymorphism(t *testing.T) {
44+
derived := classoverrides.NewDerived()
45+
var base classoverrides.IBase = derived
46+
47+
if *base.Something().Name() != "SubSubclass" {
48+
t.Errorf("Expected SubSubclass, got %s", *base.Something().Name())
49+
}
50+
}
51+
52+
func consumeSubSubclass(s classoverrides.SubSubclass) string {
53+
return *s.Name()
54+
}
55+
56+
func TestTypeCasting(t *testing.T) {
57+
derived := classoverrides.NewDerived()
58+
superclassResult := derived.Something()
59+
name := consumeSubSubclass(superclassResult.(classoverrides.SubSubclass))
60+
if name != "SubSubclass" {
61+
t.Errorf("Expected SubSubclass, got %s", name)
62+
}
63+
}
64+

packages/@jsii/python-runtime/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
black~=25.9
22
mypy==1.18.2
3-
pip~=25.2
3+
pip~=25.3
44
pytest~=8.4
55
pytest-mypy~=1.0
66
setuptools~=80.3

packages/jsii-calc/lib/covariant-overrides/class-overrides.ts

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,33 @@
66
*/
77

88
/** Base class in the inheritance hierarchy */
9-
export class Superclass {}
9+
export class Superclass {
10+
public name = 'Superclass';
11+
public sayHello(): string {
12+
return 'Hello Superclass';
13+
}
14+
}
1015

1116
/** Derived class that extends Superclass */
12-
export class Subclass extends Superclass {}
17+
export class Subclass extends Superclass {
18+
public name = 'Subclass';
19+
public sayHello(): string {
20+
return 'Hello Subclass';
21+
}
22+
}
1323

1424
/** Further derived class that extends Subclass */
15-
export class SubSubclass extends Subclass {}
25+
export class SubSubclass extends Subclass {
26+
/**
27+
* Ensures this class is different than its parent.
28+
*/
29+
public unique = 'yes';
30+
31+
public name = 'SubSubclass';
32+
public sayHello(): string {
33+
return 'Hello SubSubclass';
34+
}
35+
}
1636

1737
export interface IBase {
1838
readonly something: Superclass;

0 commit comments

Comments
 (0)