Skip to content

Commit 281be34

Browse files
authored
GLSP-1563: Update to node 20 (#439)
Update minimum node version requirement to node 20 Update to next glsp-dev packages Update changelog Part of: eclipse-glsp/glsp/issues/1563
1 parent 5d4f937 commit 281be34

File tree

6 files changed

+90
-56
lines changed

6 files changed

+90
-56
lines changed

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
path: 'glsp-playwright'
3737
- uses: actions/setup-node@v4.0.2
3838
with:
39-
node-version: '18'
39+
node-version: '20'
4040
- name: Install dependencies
4141
run: |
4242
cd glsp-client

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,31 @@
44

55
### Changes
66

7+
- [diagram] Fix text selection issues in chrome [#425](https://github.com/eclipse-glsp/glsp-client/pull/425)
8+
- [example] Fix render error for new categories [#426](https://github.com/eclipse-glsp/glsp-client/pull/426)
9+
- [api] Introduce & use ProposalString utility type [#427](https://github.com/eclipse-glsp/glsp-client/pull/427)
10+
- [i18n] Add missing localization message for marker popups [#428](https://github.com/eclipse-glsp/glsp-client/pull/428)
11+
- [diagram] Add missing visibility check to `RoundedCornerNodeView` [#430](https://github.com/eclipse-glsp/glsp-client/pull/430)
12+
- [layout] Fix a bug in the hGrab/vGrab calculation [#435](https://github.com/eclipse-glsp/glsp-client/pull/435)
13+
714
### Potentially breaking changes
815

16+
- [protocol] Enrich `LayoutOperation` with additional optional client-side information (viewport) [#433](https://github.com/eclipse-glsp/glsp-client/pull/433) [#434](https://github.com/eclipse-glsp/glsp-client/pull/434/files)
17+
- To trigger a manual layout the new `TriggerLayoutAction` should be dispatched instead of a direct `LayoutOperation`
18+
- Dispatching of direct `LayoutOperation`s will still work, but the optional information will not be present
19+
- [layout] Introduce order-agnostic layouts [#436](https://github.com/eclipse-glsp/glsp-client/pull/436/)
20+
- Introduce a flag for `ILayouts` to specify whether the layouting of children is independent of their semantic order in the model.
21+
The `BringToFrontCommand` respects this flag and only changes the ordering of order-agnostic layouts
22+
- `zorder` module now requires bounds module as we need the layout registry
23+
- [diagram] Introduce viewport change event for `EditorContextService` [#438](https://github.com/eclipse-glsp/glsp-client/pull/438)
24+
- This change extracts the handling of model related changes into an dedicated `IModelChangeService` which is reused by the `EditorContextService`
25+
- The following changes to internal API might affect customizations of adopters:
26+
- `GLSPCommandStack`: 'notifyListener' method has been removed
27+
- `EditorContextService`:
28+
- Remove `_modelRoot` and `onModelRootChangedEmitter` properties. Corresponding getters now forward to the `IModelChangeService`
29+
- Remove `notifyModelRootChanged` method (Probably no side effect for adopters. Method was only callable from commandstack anyways)
30+
- [node] Update minimum requirements for Node to >=20 [#439](https://github.com/eclipse-glsp/glsp-client/pull/439)
31+
932
## [v2.4.0 - 04/04/2025](https://github.com/eclipse-glsp/glsp-client/releases/tag/v2.3.0)
1033

1134
### Changes

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: Pod
44
spec:
55
containers:
66
- name: node
7-
image: node:18
7+
image: node:20
88
tty: true
99
resources:
1010
limits:

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
"watch": "concurrently --kill-others -n tsc,standalone -c red,yellow \"tsc -b -w --preserveWatchOutput\" \"yarn -s standalone watch:bundle\""
3333
},
3434
"devDependencies": {
35-
"@eclipse-glsp/dev": "2.4.0",
35+
"@eclipse-glsp/dev": "next",
3636
"@types/lodash": "4.14.191",
37-
"@types/node": "18.x",
37+
"@types/node": "20.x",
3838
"concurrently": "^8.2.2",
3939
"lerna": "^7.1.1",
40-
"typescript": "^5.1.6"
40+
"typescript": "^5.9.2"
4141
},
4242
"engines": {
43-
"node": ">=18",
43+
"node": ">=20",
4444
"yarn": ">=1.7.0 <2"
4545
}
4646
}

packages/client/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export * from './base/focus/focus-tracker';
3636
export * from './base/messages';
3737
export * from './base/model/diagram-loader';
3838
export * from './base/model/glsp-model-source';
39+
export * from './base/model/model-change-service';
3940
export * from './base/model/model-initialization-constraint';
4041
export * from './base/model/model-registry';
4142
export * from './base/mouse-position-tracker';

yarn.lock

Lines changed: 60 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@
256256
resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70"
257257
integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==
258258

259-
"@eclipse-glsp/cli@2.4.0":
260-
version "2.4.0"
261-
resolved "https://registry.yarnpkg.com/@eclipse-glsp/cli/-/cli-2.4.0.tgz#a2954e5dc1e4b103a0c5539f47437d15a646b4fd"
262-
integrity sha512-pwzLHMvliuZEI7T0jFtoW05wU3VrNyQgaik1XmwiWP/494JMgW6hCxUi4ZlKwUPbTpEYv4w/mUZfBWczqDJNsw==
259+
"@eclipse-glsp/cli@2.5.0-next.181+c6c9bad":
260+
version "2.5.0-next.181"
261+
resolved "https://registry.yarnpkg.com/@eclipse-glsp/cli/-/cli-2.5.0-next.181.tgz#3253bb25c6885a34f98fc0f7131ea2377f4eec1c"
262+
integrity sha512-5BQr8CogWvovDcjOrfsBJaakGC/MkfPXmhFK5+fOEfdssmHGGE3PBBlPaowuViEr35V+xbNaEBVydQgis5LPCg==
263263
dependencies:
264264
commander "^10.0.1"
265265
glob "^10.3.10"
@@ -270,13 +270,13 @@
270270
semver "^7.5.1"
271271
shelljs "^0.8.5"
272272

273-
"@eclipse-glsp/config-test@2.4.0":
274-
version "2.4.0"
275-
resolved "https://registry.yarnpkg.com/@eclipse-glsp/config-test/-/config-test-2.4.0.tgz#28a0f75a60fe547cce8172c335da2ce4d573e918"
276-
integrity sha512-Y2vg+rozoDn9Cj7PSGSSy62Iw+szWjZ5fpEpgHa5RGTBjbR2SgL4fwRKBCeDm8/noHjJKPfikhoJLaHe7T7daw==
273+
"@eclipse-glsp/config-test@2.5.0-next.181+c6c9bad":
274+
version "2.5.0-next.181"
275+
resolved "https://registry.yarnpkg.com/@eclipse-glsp/config-test/-/config-test-2.5.0-next.181.tgz#3020fc3980439e6ef2c4fdd229cc7954350aa29d"
276+
integrity sha512-oXk/2bENmIHILjkKUxf4GxLXHviAHYE0haZD8N5KV9Fcmzpz3C3XQsN0hYpYgxdjOBaX2tlOOhx4g7WeStOc6Q==
277277
dependencies:
278-
"@eclipse-glsp/mocha-config" "2.4.0"
279-
"@eclipse-glsp/nyc-config" "2.4.0"
278+
"@eclipse-glsp/mocha-config" "2.5.0-next.181+c6c9bad"
279+
"@eclipse-glsp/nyc-config" "2.5.0-next.181+c6c9bad"
280280
"@istanbuljs/nyc-config-typescript" "^1.0.2"
281281
"@types/chai" "^4.3.7"
282282
"@types/mocha" "^10.0.2"
@@ -290,14 +290,14 @@
290290
sinon "^15.1.0"
291291
ts-node "^10.9.1"
292292

293-
"@eclipse-glsp/config@2.4.0":
294-
version "2.4.0"
295-
resolved "https://registry.yarnpkg.com/@eclipse-glsp/config/-/config-2.4.0.tgz#c3b6e8076163dc38186ac89da41805bd7e0b65ce"
296-
integrity sha512-ISgLaCEGuJyV7M5hjXlrwc/7ixehCcWQMb5FN3av0QM+Y47vDfy9uIRAdgUNX5FPD4YKpc2lhm08rCtyTIEhPQ==
293+
"@eclipse-glsp/config@2.5.0-next.181+c6c9bad":
294+
version "2.5.0-next.181"
295+
resolved "https://registry.yarnpkg.com/@eclipse-glsp/config/-/config-2.5.0-next.181.tgz#ac9cd948abe90191426243f922c55858aa23918c"
296+
integrity sha512-r0ZbGG9F4ZGIYIRiPd3r0PBoM138uDlq6i5BEjOa5eoF208g0Yt1/+46IOMVXOqa/LK3YFOtGvIa14jcfCoDjg==
297297
dependencies:
298-
"@eclipse-glsp/eslint-config" "2.4.0"
299-
"@eclipse-glsp/prettier-config" "2.4.0"
300-
"@eclipse-glsp/ts-config" "2.4.0"
298+
"@eclipse-glsp/eslint-config" "2.5.0-next.181+c6c9bad"
299+
"@eclipse-glsp/prettier-config" "2.5.0-next.181+c6c9bad"
300+
"@eclipse-glsp/ts-config" "2.5.0-next.181+c6c9bad"
301301
"@typescript-eslint/eslint-plugin" "^6.7.5"
302302
"@typescript-eslint/parser" "^6.7.5"
303303
eslint "^8.51.0"
@@ -311,41 +311,41 @@
311311
reflect-metadata "^0.1.13"
312312
rimraf "^5.0.5"
313313

314-
"@eclipse-glsp/dev@2.4.0":
315-
version "2.4.0"
316-
resolved "https://registry.yarnpkg.com/@eclipse-glsp/dev/-/dev-2.4.0.tgz#410c13f2ff95f482d8bf0e8d10f9e49610a4df12"
317-
integrity sha512-HmjBc4aAtwJq/ixU5gco5RxkSoULTM9+bd+sGVlrjYMhh1SbqOfJ1QsooVP0y5NXbPoUvcVhc4YIHcSojEEKdQ==
314+
"@eclipse-glsp/dev@next":
315+
version "2.5.0-next.181"
316+
resolved "https://registry.yarnpkg.com/@eclipse-glsp/dev/-/dev-2.5.0-next.181.tgz#260db1c9cd381e0aa58b7c2f2ce1b49aa325cb4a"
317+
integrity sha512-6G1VufhrHnYmTzg0en0MlAa7UFgxV6y2v/9g8j8MQ/kfMltovAvZK01zAr3okjr6m0yoVtmqEdXQ58GA2XyPsw==
318318
dependencies:
319-
"@eclipse-glsp/cli" "2.4.0"
320-
"@eclipse-glsp/config" "2.4.0"
321-
"@eclipse-glsp/config-test" "2.4.0"
319+
"@eclipse-glsp/cli" "2.5.0-next.181+c6c9bad"
320+
"@eclipse-glsp/config" "2.5.0-next.181+c6c9bad"
321+
"@eclipse-glsp/config-test" "2.5.0-next.181+c6c9bad"
322322

323-
"@eclipse-glsp/eslint-config@2.4.0":
324-
version "2.4.0"
325-
resolved "https://registry.yarnpkg.com/@eclipse-glsp/eslint-config/-/eslint-config-2.4.0.tgz#a30740d2f36a7ac0e4671a708af4ce14c4f01fdb"
326-
integrity sha512-0Nupt5hfFjHO0tPLVhvq+rdVkhC7vkJ7saPos7cS+bpsBakfVexfXLL3KqOC4c7P8dcRkXJzRwdU2e7cMweHhQ==
323+
"@eclipse-glsp/eslint-config@2.5.0-next.181+c6c9bad":
324+
version "2.5.0-next.181"
325+
resolved "https://registry.yarnpkg.com/@eclipse-glsp/eslint-config/-/eslint-config-2.5.0-next.181.tgz#ca8462b3e295c19a328fa159fcf83f252814d6af"
326+
integrity sha512-IHGmTt63MSk/ALoHzXXU9uLryK20iFAbtwniVzFYXj2Dr2lk1Y6zOhfu56wNhhPAk2gR2GaEYn4fRmJnSaHnMQ==
327327

328-
"@eclipse-glsp/mocha-config@2.4.0":
329-
version "2.4.0"
330-
resolved "https://registry.yarnpkg.com/@eclipse-glsp/mocha-config/-/mocha-config-2.4.0.tgz#2830284b594b8bf7c7b51ee76ff7711ac4ccaeed"
331-
integrity sha512-Yz1wCUumXyxlHibdHUYgVZ0yQbAT20V/diIY3o/evZyT5StD/tSYcCf//Ryr+AncxnIA4vpvMq6FsTHb1dPpwg==
328+
"@eclipse-glsp/mocha-config@2.5.0-next.181+c6c9bad":
329+
version "2.5.0-next.181"
330+
resolved "https://registry.yarnpkg.com/@eclipse-glsp/mocha-config/-/mocha-config-2.5.0-next.181.tgz#a2a6e051df1814f7466f45b68a2e95d98d2a003e"
331+
integrity sha512-WDp2UAVuMn8UmPebfLjdXk2SIwGg/DnMMXqFSJXvrhn74k6LEy7suO+dL+LLNN3NWvVkHz33qokJPz546aH0sA==
332332

333-
"@eclipse-glsp/nyc-config@2.4.0":
334-
version "2.4.0"
335-
resolved "https://registry.yarnpkg.com/@eclipse-glsp/nyc-config/-/nyc-config-2.4.0.tgz#acff49187daac88e739adf87db9618d1ce5b2281"
336-
integrity sha512-agldo9UWNEnSydNLCUU3/RBMC4xhzcMuOPpZaTBA7nyWcQcMhGc/xdqqOJF4wEzkmN6jku/DW+KJDNxllkkFsQ==
333+
"@eclipse-glsp/nyc-config@2.5.0-next.181+c6c9bad":
334+
version "2.5.0-next.181"
335+
resolved "https://registry.yarnpkg.com/@eclipse-glsp/nyc-config/-/nyc-config-2.5.0-next.181.tgz#93fa162b0ca137f028c66cbb7ec0a7a76f65ce34"
336+
integrity sha512-aq/pmWrffneNd55cwnuN31fzN7TzP0PwUlOotzlX6AZhXLrp/F+1AnzXZfR7TFCWT1DG9AFmNWY6EbzjLEGbyg==
337337

338-
"@eclipse-glsp/prettier-config@2.4.0":
339-
version "2.4.0"
340-
resolved "https://registry.yarnpkg.com/@eclipse-glsp/prettier-config/-/prettier-config-2.4.0.tgz#f760750f37f628e239727fb2350684bf738cdda1"
341-
integrity sha512-x/C8c18UwrqZzeT5euhtBQNcRSiYtjyqmeoXpiv9GkdqVD5MxxN6F2ErrBTs78a2pwkl3QMAJ4tbNVMUyWVqpw==
338+
"@eclipse-glsp/prettier-config@2.5.0-next.181+c6c9bad":
339+
version "2.5.0-next.181"
340+
resolved "https://registry.yarnpkg.com/@eclipse-glsp/prettier-config/-/prettier-config-2.5.0-next.181.tgz#02fb81d8d807c01c9f2ccef9cfb33258e31c41ff"
341+
integrity sha512-rjoaCEfjvRvdYEI8aAOEZo/leV1bT54vuiBIzZxTMHTMjSiLQ1oencBF1fOXeZwMbC16dTMfFTQTaBbW8Hr3Qw==
342342
dependencies:
343343
prettier-plugin-packagejson "~2.4.6"
344344

345-
"@eclipse-glsp/ts-config@2.4.0":
346-
version "2.4.0"
347-
resolved "https://registry.yarnpkg.com/@eclipse-glsp/ts-config/-/ts-config-2.4.0.tgz#17507e03cfc9a0e84b7d42f886b5d45cfbe83c4b"
348-
integrity sha512-FHUtDsLai+LoHsMbsEnVY2ykXYXC2KgvFbY28IJzBRhj0hWTMxpoFEo7YpEegzieyDSHvIOupxYuChXV1gS2Sg==
345+
"@eclipse-glsp/ts-config@2.5.0-next.181+c6c9bad":
346+
version "2.5.0-next.181"
347+
resolved "https://registry.yarnpkg.com/@eclipse-glsp/ts-config/-/ts-config-2.5.0-next.181.tgz#d0207f33ed5b2399c7b4878633a3c11fb59ac044"
348+
integrity sha512-+RSYJWOlXQENi26E3AxmNRv0gG0nzPEIvXWY/BKh5QWIdPJAxfoD1nHZu0tF1Gn4lAF6Eisecg4wGwr+W7B95w==
349349

350350
"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0":
351351
version "4.4.0"
@@ -1114,12 +1114,12 @@
11141114
dependencies:
11151115
undici-types "~5.26.4"
11161116

1117-
"@types/node@18.x":
1118-
version "18.19.68"
1119-
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.68.tgz#f4f10d9927a7eaf3568c46a6d739cc0967ccb701"
1120-
integrity sha512-QGtpFH1vB99ZmTa63K4/FU8twThj4fuVSBkGddTp7uIL/cuoLWIUSL2RcOaigBhfR+hg5pgGkBnkoOxrTVBMKw==
1117+
"@types/node@20.x":
1118+
version "20.19.11"
1119+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.19.11.tgz#728cab53092bd5f143beed7fbba7ba99de3c16c4"
1120+
integrity sha512-uug3FEEGv0r+jrecvUUpbY8lLisvIjg6AAic6a2bSP5OEOLeJsDSnvhCDov7ipFFMXS3orMpzlmi0ZcuGkBbow==
11211121
dependencies:
1122-
undici-types "~5.26.4"
1122+
undici-types "~6.21.0"
11231123

11241124
"@types/normalize-package-data@^2.4.0":
11251125
version "2.4.4"
@@ -7615,11 +7615,16 @@ typedarray@^0.0.6:
76157615
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
76167616
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==
76177617

7618-
"typescript@>=3 < 6", typescript@^5.1.6:
7618+
"typescript@>=3 < 6":
76197619
version "5.4.5"
76207620
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611"
76217621
integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==
76227622

7623+
typescript@^5.9.2:
7624+
version "5.9.2"
7625+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.9.2.tgz#d93450cddec5154a2d5cabe3b8102b83316fb2a6"
7626+
integrity sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==
7627+
76237628
uglify-js@^3.1.4:
76247629
version "3.17.4"
76257630
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c"
@@ -7648,6 +7653,11 @@ undici-types@~5.26.4:
76487653
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
76497654
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
76507655

7656+
undici-types@~6.21.0:
7657+
version "6.21.0"
7658+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb"
7659+
integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==
7660+
76517661
unique-filename@^2.0.0:
76527662
version "2.0.1"
76537663
resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-2.0.1.tgz#e785f8675a9a7589e0ac77e0b5c34d2eaeac6da2"

0 commit comments

Comments
 (0)