Skip to content

Commit ebcefe6

Browse files
authored
2 parents eb02c92 + 65e7f9f commit ebcefe6

File tree

145 files changed

+6284
-3047
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+6284
-3047
lines changed

.all-contributorsrc

+9
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,15 @@
13931393
"contributions": [
13941394
"bug"
13951395
]
1396+
},
1397+
{
1398+
"login": "skuenzli",
1399+
"name": "Stephen Kuenzli",
1400+
"avatar_url": "https://avatars.githubusercontent.com/u/869201?v=4",
1401+
"profile": "https://github.com/skuenzli",
1402+
"contributions": [
1403+
"doc"
1404+
]
13961405
}
13971406
],
13981407
"repoType": "github",

.github/workflows/docker-images.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
node: ['12', '14', '16', '18']
21+
node: ['14', '16', '18']
2222
env:
2323
# Node version whose images will be aliased without the -nodeXX segment
2424
DEFAULT_NODE_MAJOR_VERSION: 14

.github/workflows/gh-pages.yml

+12-16
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,24 @@ jobs:
1616
contents: read
1717
runs-on: ubuntu-latest
1818
steps:
19+
- name: Check out
20+
uses: actions/checkout@v3
1921
- name: Set up Python
2022
uses: actions/setup-python@v3
2123
with:
24+
cache: 'pip'
25+
cache-dependency-path: 'gh-pages/requirements-dev.txt'
2226
python-version: '3.8'
23-
- name: Check out
24-
uses: actions/checkout@v3
25-
- name: Locate Caches
26-
id: cache-locations
27-
run: |-
28-
echo "::set-output name=pip-cache::$(python3 -m pip cache dir)"
29-
- name: Cache
30-
uses: actions/cache@v3
31-
with:
32-
path: ${{ steps.cache-locations.outputs.pip-cache }}
33-
key: ${{ runner.os }}-${{ hashFiles('**/requirements-dev.txt') }}
34-
restore-keys: ${{ runner.os }}-
3527
- name: Install Dependencies
3628
run: |-
37-
pip install -r requirements-dev.txt
29+
python3 -m venv ${{ runner.temp }}/venv
30+
source ${{ runner.temp }}/venv/bin/activate
31+
python3 -m pip install -r requirements-dev.txt
3832
working-directory: gh-pages
3933
- name: Build DocSite
4034
run: |-
4135
mkdir -p ${{ runner.temp }}/site
36+
source ${{ runner.temp }}/venv/bin/activate
4237
mkdocs build \
4338
--strict \
4439
--site-dir ${{ runner.temp }}/site
@@ -52,7 +47,7 @@ jobs:
5247
publish:
5348
name: Publish
5449
needs: build
55-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
50+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
5651
permissions:
5752
contents: write
5853
runs-on: ubuntu-latest
@@ -73,8 +68,9 @@ jobs:
7368
git config user.email "[email protected]"
7469
- name: Prepare Commit
7570
run: |-
76-
rsync --delete --exclude=.git --exclude=dev --recursive ${{ runner.temp }}/site/ ./
77-
touch .nojekyll
71+
rsync --archive --checksum --delete --inplace --recursive --verbose \
72+
--exclude=.git --exclude=.nojekyll --exclude=dev \
73+
${{ runner.temp }}/site/ ./
7874
git add .
7975
git diff --cached --exit-code >/dev/null || (
8076
git commit -am 'docs: publish from ${{ github.sha }}'

.github/workflows/main.yml

+20-20
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
env:
1111
DOTNET_NOLOGO: true
12+
NODE_OPTIONS: --max-old-space-size=4096
1213

1314
# This workflows currently has the following jobs:
1415
# - build : Builds the source tree as-is
@@ -40,11 +41,11 @@ jobs:
4041
with:
4142
java-version: '8'
4243
distribution: 'zulu'
43-
- name: Set up Node 12
44+
- name: Set up Node 14
4445
uses: actions/setup-node@v3
4546
with:
4647
cache: yarn
47-
node-version: '12'
48+
node-version: '14'
4849
- name: Set up Python 3.7
4950
uses: actions/setup-python@v3
5051
with:
@@ -69,10 +70,10 @@ jobs:
6970
!~/.m2/repository/software/amazon/jsii/
7071
~/.nuget/packages
7172
!~/.nuget/packages/amazon.jsii.*
72-
key: ${{ runner.os }}-node@12[email protected]${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }}
73+
key: ${{ runner.os }}-node@14[email protected]${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }}
7374
restore-keys: |-
74-
${{ runner.os }}-node@12[email protected]
75-
${{ runner.os }}-node@12-
75+
${{ runner.os }}-node@14[email protected]
76+
${{ runner.os }}-node@14-
7677
${{ runner.os }}-
7778
# Prepare dependencies and build
7879
- name: Install Dependencies
@@ -134,11 +135,11 @@ jobs:
134135
with:
135136
java-version: '8'
136137
distribution: 'zulu'
137-
- name: Set up Node 12
138+
- name: Set up Node 14
138139
uses: actions/setup-node@v3
139140
with:
140141
cache: yarn
141-
node-version: '12'
142+
node-version: '14'
142143
- name: Set up Python 3.7
143144
uses: actions/setup-python@v3
144145
with:
@@ -163,10 +164,10 @@ jobs:
163164
!~/.m2/repository/software/amazon/jsii/
164165
~/.nuget/packages
165166
!~/.nuget/packages/amazon.jsii.*
166-
key: ${{ runner.os }}-node@12[email protected]${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }}
167+
key: ${{ runner.os }}-node@14[email protected]${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }}
167168
restore-keys: |-
168-
${{ runner.os }}-node@12[email protected]
169-
${{ runner.os }}-node@12-
169+
${{ runner.os }}-node@14[email protected]
170+
${{ runner.os }}-node@14-
170171
${{ runner.os }}-
171172
# Prepare dependencies and build
172173
- name: Install Dependencies
@@ -216,67 +217,66 @@ jobs:
216217
go: ['1.16']
217218
java: ['8']
218219
node:
219-
- '12' # EOL 2022-04-30
220220
- '14' # EOL 2023-04-30
221221
- '16' # EOL 2024-04-30
222222
- '17' # EOL 2022-06-01
223223
- '18' # EOL 2025-04-30
224224
os: [ubuntu-latest]
225225
python: ['3.7']
226-
# Add specific combinations to be tested against "node 12" (to restrict cardinality)
226+
# Add specific combinations to be tested against "node 14" (to restrict cardinality)
227227
include:
228228
# Test using Windows
229229
- os: windows-latest
230230
dotnet: '3.1.x'
231231
go: '1.16'
232232
java: '8'
233-
node: '12'
233+
node: '14'
234234
python: '3.7'
235235
# Test using macOS
236236
- os: macos-latest
237237
dotnet: '3.1.x'
238238
go: '1.16'
239239
java: '8'
240-
node: '12'
240+
node: '14'
241241
python: '3.7'
242242
# Test alternate .NETs
243243
- java: '8'
244244
dotnet: '5.0.x'
245245
go: '1.16'
246-
node: '12'
246+
node: '14'
247247
os: ubuntu-latest
248248
python: '3.7'
249249
- java: '8'
250250
dotnet: '6.0.x'
251251
go: '1.16'
252-
node: '12'
252+
node: '14'
253253
os: ubuntu-latest
254254
python: '3.7'
255255
# Test alternate Javas
256256
- java: '11'
257257
dotnet: '3.1.x'
258258
go: '1.16'
259-
node: '12'
259+
node: '14'
260260
os: ubuntu-latest
261261
python: '3.7'
262262
# Test alternate Pythons
263263
- python: '3.8'
264264
dotnet: '3.1.x'
265265
go: '1.16'
266266
java: '8'
267-
node: '12'
267+
node: '14'
268268
os: ubuntu-latest
269269
- python: '3.9'
270270
dotnet: '3.1.x'
271271
go: '1.16'
272272
java: '8'
273-
node: '12'
273+
node: '14'
274274
os: ubuntu-latest
275275
- python: '3.10'
276276
dotnet: '3.1.x'
277277
go: '1.16'
278278
java: '8'
279-
node: '12'
279+
node: '14'
280280
os: ubuntu-latest
281281

282282
runs-on: ${{ matrix.os }}

.github/workflows/yarn-upgrade.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/setup-node@v3
2222
with:
2323
cache: yarn
24-
node-version: 12
24+
node-version: 14
2525

2626
- name: Install Tools
2727
run: |-
@@ -70,13 +70,13 @@ jobs:
7070
# We special-case typescript because it's not semantically versionned, and major.minor is the API contract
7171
run: |-
7272
# Upgrade devDependencies at repository root
73-
ncu --upgrade --target=minor --filter=@types/node,ts-jest,@jest/types,jest-config,jest-circus
73+
ncu --upgrade --target=minor --filter=@types/node,@jest/types,jest-config,jest-circus
7474
ncu --upgrade --target=patch --filter=typescript
75-
ncu --upgrade --target=latest --reject=@types/node,typescript,ts-jest,@jest/types,jest-config,jest-circus
75+
ncu --upgrade --target=latest --reject=@types/node,typescript,@jest/types,jest-config,jest-circus
7676
7777
# Upgrade all production dependencies (and other always major-pinned dependencies)
7878
lerna exec --parallel ncu -- --upgrade --target=minor \
79-
--filter='ts-jest,${{ steps.production-dependencies.outputs.list }}' \
79+
--filter='${{ steps.production-dependencies.outputs.list }}' \
8080
--reject='typescript,${{ steps.monorepo-packages.outputs.list }}'
8181
8282
# Upgrade all minor-pinned dependencies
@@ -85,7 +85,7 @@ jobs:
8585
8686
# Upgrade all other dependencies (devDependencies) to the latest
8787
lerna exec --parallel ncu -- --upgrade --target=latest \
88-
--reject='@types/node,typescript,ts-jest,${{ steps.production-dependencies.outputs.list }},${{ steps.monorepo-packages.outputs.list }}'
88+
--reject='@types/node,typescript,${{ steps.production-dependencies.outputs.list }},${{ steps.monorepo-packages.outputs.list }}'
8989
9090
# This will ensure the current lockfile is up-to-date with the dependency specifications (necessary for "yarn update" to run)
9191
- name: Run "yarn install"

.mergify/config.yml

-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ queue_rules:
88
- status-success~=^Test \(macos-.*$
99
- status-success~=^Test \(windows-.*$
1010
# One test for each supported nodejs version
11-
- status-success~=^Test \(.* node 12 .*$
1211
- status-success~=^Test \(.* node 14 .*$
1312
- status-success~=^Test \(.* node 16 .*$
1413
- status-success~=^Test \(.* node 17 .*$
@@ -59,7 +58,6 @@ pull_request_rules:
5958
- status-success~=^Test \(macos-.*$
6059
- status-success~=^Test \(windows-.*$
6160
# One test for each supported nodejs version
62-
- status-success~=^Test \(.* node 12 .*$
6361
- status-success~=^Test \(.* node 14 .*$
6462
- status-success~=^Test \(.* node 16 .*$
6563
- status-success~=^Test \(.* node 17 .*$
@@ -110,7 +108,6 @@ pull_request_rules:
110108
- status-success~=^Test \(macos-.*$
111109
- status-success~=^Test \(windows-.*$
112110
# One test for each supported nodejs version
113-
- status-success~=^Test \(.* node 12 .*$
114111
- status-success~=^Test \(.* node 14 .*$
115112
- status-success~=^Test \(.* node 16 .*$
116113
- status-success~=^Test \(.* node 17 .*$
@@ -161,7 +158,6 @@ pull_request_rules:
161158
- status-success~=^Test \(macos-.*$
162159
- status-success~=^Test \(windows-.*$
163160
# One test for each supported nodejs version
164-
- status-success~=^Test \(.* node 12 .*$
165161
- status-success~=^Test \(.* node 14 .*$
166162
- status-success~=^Test \(.* node 16 .*$
167163
- status-success~=^Test \(.* node 17 .*$

CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
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.60.0](https://github.com/aws/jsii/compare/v1.59.0...v1.60.0) (2022-06-08)
6+
7+
8+
### ⚠ BREAKING CHANGES
9+
10+
* Beginning with this release, jsii packages no longer
11+
support node 12. Users should migrate to a supported node release (14.x,
12+
16.x, or 18.x).
13+
14+
### Features
15+
16+
* **jsii:** make source map behavior fully configurable ([#3558](https://github.com/aws/jsii/issues/3558)) ([06d9a39](https://github.com/aws/jsii/commit/06d9a39cec8254ebab76a81026ab0e64a2f05462)), closes [#3521](https://github.com/aws/jsii/issues/3521)
17+
18+
19+
### Bug Fixes
20+
21+
* **@jsii/spec:** speed up assembly validation by 20x for large libraries ([#3565](https://github.com/aws/jsii/issues/3565)) ([c40f26c](https://github.com/aws/jsii/commit/c40f26cdc7bef7835fbddbae983783a495be2d0e))
22+
* **java:** rendering of `[@see](https://github.com/see)` hyperlink leads to errors ([#3554](https://github.com/aws/jsii/issues/3554)) ([9fd3c71](https://github.com/aws/jsii/commit/9fd3c71c4edc4d7c03c05930b47fe34fe364bd29))
23+
* **jsii:** `assert` not allowed as interface member ([#3553](https://github.com/aws/jsii/issues/3553)) ([f3fec0c](https://github.com/aws/jsii/commit/f3fec0c10dd72ae734047d2d8e242f8fb4e98812))
24+
25+
26+
* drop support for Node 12 ([#3547](https://github.com/aws/jsii/issues/3547)) ([06a7889](https://github.com/aws/jsii/commit/06a7889514cb0939f5b8224f8961e6d578ea3986))
27+
528
## [1.59.0](https://github.com/aws/jsii/compare/v1.58.0...v1.59.0) (2022-05-16)
629

730

0 commit comments

Comments
 (0)