Skip to content

Commit 2af7da4

Browse files
authored
v2.0.0 (#63)
1 parent 231d53b commit 2af7da4

File tree

9 files changed

+226
-265
lines changed

9 files changed

+226
-265
lines changed

CHANGELOG.md

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1-
# Eclipse GLSP Server Node Changelog
1+
# Eclipse GLSP Server Changelog
22

3-
## v1.1.0 - upcoming
3+
## v2.0.0 - 14/10/2023
44

5-
- [elk] Fixed a bug in the `GLSElkLayoutEngine` that skipped layouting of certain edges [#23](https://github.com/eclipse-glsp/glsp-server-node/pull/23) - Contributed on behalf of STMicroelectronics
5+
### Changes
6+
7+
- [elk] Fix a bug in the `GLSElkLayoutEngine` that skipped layouting of certain edges [#23](https://github.com/eclipse-glsp/glsp-server-node/pull/23) - Contributed on behalf of STMicroelectronics
68
- [launch] The message sent after successful startup now also contains the effective socket port [#30](https://github.com/eclipse-glsp/glsp-server-node/pull/30) - Contributed on behalf of STMicroelectronics
7-
- [launch] Fixed a bug that caused the server to no properly dispose all resources when `shutdown` was called [#33](https://github.com/eclipse-glsp/glsp-server-node/pull/33) - Contributed on behalf of STMicroelectronics
8-
- [diagram] Fixed a bug to ensure that the copy&paste feature is working properly [#35](https://github.com/eclipse-glsp/glsp-server-node/pull/35)
9-
- [api] Ensured that all `Promise`s and `MaybePromises` have proper rejection handling [#36](https://github.com/eclipse-glsp/glsp-server-node/pull/36)- Contributed on behalf of STMicroelectronics
9+
- [launch] Fix a bug that caused the server to not properly dispose all resources when `shutdown` was called [#33](https://github.com/eclipse-glsp/glsp-server-node/pull/33) - Contributed on behalf of STMicroelectronics
10+
- [diagram] Fix a bug to ensure that the copy&paste feature is working properly [#35](https://github.com/eclipse-glsp/glsp-server-node/pull/35)
11+
- [api] Ensure that all `Promise`s and `MaybePromise`s have proper rejection handling [#36](https://github.com/eclipse-glsp/glsp-server-node/pull/36)- Contributed on behalf of STMicroelectronics
1012
- [launch] Add a launcher component for starting WebSocket based GLSP servers [#41](https://github.com/eclipse-glsp/glsp-server-node/pull/41)
1113
- [validation] Add explicit support and API for live and batch validation [#43](https://github.com/eclipse-glsp/glsp-server-node/pull/43)
1214
- [launch] Launcher components now auto allocate a free port if the port argument is 0 [#42](https://github.com/eclipse-glsp/glsp-server-node/pull/42)
1315
- [server] Add support for server progress reporting [#52](https://github.com/eclipse-glsp/glsp-server-node/pull/52)
16+
- [diagram] Add support for handling reconnection requests to `RequestModelActionHandler` [#54](https://github.com/eclipse-glsp/glsp-server-node/pull/54/)
17+
- [server] Update `AbstractJsonModelStorage` to ensure that Windows file paths are properly converted [#55](https://github.com/eclipse-glsp/glsp-server-node/pull/55)
18+
- [deps] Remove unneeded dependency to `fs-extra` [#56](https://github.com/eclipse-glsp/glsp-server-node/pull/56)
19+
- [diagram] Provide generic reusable base operation handlers for JSON-based source models [#59](https://github.com/eclipse-glsp/glsp-server-node/pull/59)
20+
- [diagram] Add support for dynamic edge type hints
21+
- Provide `EdgeCreationChecker` API. Adopters can implement this to handle dynamic edge creation validation requests. [#60](https://github.com/eclipse-glsp/glsp-server-node/pull/60)
22+
- [model] Introduce new `GForeignObjectElement` + builder class [#61](https://github.com/eclipse-glsp/glsp-server-node/pull/61)
1423

1524
### Breaking Changes
1625

@@ -20,16 +29,16 @@
2029
- `GLayoutContainer` -> `GLayouting` (affected classes: `GCompartment`, `GGraph`, `GNode`)
2130
- `GShapePreRenderedElement` -> `GShapedPreRenderedElement`
2231
- [deps] Update minimum requirements for Node to >=16.11.0 [#32](https://github.com/eclipse-glsp/glsp-client/pull/32)
23-
- [api] Restructured `@eclipse-glsp/server-node` package to provide entry points for both node and browser-only environments [#37](https://github.com/eclipse-glsp/glsp-server-node/pull/37)
32+
- [api] Restructure `@eclipse-glsp/server-node` package to provide entry points for both node and browser-only environments [#37](https://github.com/eclipse-glsp/glsp-server-node/pull/37)
2433
- The package has been renamed to `@eclipse-glsp/server`. This change affects all import namespaces.
2534
- New namespaces for environment specific code:
2635
- `@eclipse-glsp/server/node`
2736
- `@eclipse-glsp/server/browser`
28-
- [operation] Implement Command API and rework OperationHandler to provide an optional command instead of direct execution to allow more execution control (including undo & redo support) [#38](https://github.com/eclipse-glsp/glsp-server-node/pull/38)
37+
- [operation] Implement Command API and rework OperationHandler to provide an optional command instead of direct execution to allow more execution control (including undo & redo support) [#38](https://github.com/eclipse-glsp/glsp-server-node/pull/38) [#59](https://github.com/eclipse-glsp/glsp-server-node/pull/59)
2938
- This includes major breaking changes across the whole API:
3039
- `OperationHandler` has been refactored from an interface to a common abstract base class. The `execute` method now has to return a `MaybePromise<Command|undefined>`
31-
- Refactored `CreateOperationHandler` to an interface instead of a class
32-
- Renamed the services and handlers of the direct GModel library => consistent use of `GModel` prefix
40+
- Refactor `CreateOperationHandler` to an interface instead of a class
41+
- Rename the services and handlers of the direct GModel library => consistent use of `GModel` prefix
3342
- The `ModelState` interface no longer has an `isDirty` flag. Dirty state is now handled by the `CommandStack`
3443
- [server] Default port has changed from 5007 (and 8081 for websocket) to 0, which implies autoassignment by the OS [#42](https://github.com/eclipse-glsp/glsp-server-node/pull/42)
3544
- [server] Refactored `GLSPServer` and `GLSPServerLauncher` API [#44](https://github.com/eclipse-glsp/glsp-server-node/pull/44) - Contributed on behalf of STMicroelectronics
@@ -39,6 +48,14 @@
3948
- Provide `CommandStack` API to support undo/redo of model changes [#38](https://github.com/eclipse-glsp/glsp-server-node/pull/38) [#39](https://github.com/eclipse-glsp/glsp-server-node/pull/39) - Contributed on behalf of STMicroelectronics
4049
- `ModelState` no longer has a `isDirty` property
4150
- Breaking refactor of `OperationHandler` API
51+
- [deps] Update to inversify 6.x and Typescript 5.x. [#48](https://github.com/eclipse-glsp/glsp-server-node/pull/48)
52+
- GLSP uses a synchronous inversify context this means with inversify 6.x decorator methods (e.g. `@postConstruct`) with asynchronous results are no longer supported
53+
- Revise model loading and client action handling [#57](https://github.com/eclipse-glsp/glsp-server-node/pull/57) [#58](https://github.com/eclipse-glsp/glsp-server-node/pull/58)
54+
- Refactor `ModelSubmissionHandler` to enable handling of `RequestModelAction` as proper request action
55+
- Introduce a `submitInitialModel` method that is called by the `RequestModelActionHandler`
56+
- Remove `configureClientActions` from `DiagramModule` as client actions are now implicitly configured via `InitializeClientSession` request
57+
- Remove `ClientActionHandler` and replace with `ClientActionForwarder`
58+
- Rename `ServerStatusAction` -> `StatusAction` and `ServerMessageAction` -> `MessageAction`
4259

4360
## [v1.0.0 - 30/06/2022](https://github.com/eclipse-glsp/glsp-server-node/releases/tag/v1.0.0)
4461

examples/workflow-server-bundled/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eclipse-glsp-examples/workflow-server-bundled",
3-
"version": "1.1.0-next",
3+
"version": "2.0.0",
44
"description": "GLSP node server for the workflow example (bundled)",
55
"keywords": [
66
"eclipse",

examples/workflow-server/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eclipse-glsp-examples/workflow-server",
3-
"version": "1.1.0-next",
3+
"version": "2.0.0",
44
"description": "GLSP node server for the workflow example",
55
"keywords": [
66
"eclipse",
@@ -56,8 +56,8 @@
5656
"watch": "tsc -w"
5757
},
5858
"dependencies": {
59-
"@eclipse-glsp/layout-elk": "1.1.0-next",
60-
"@eclipse-glsp/server": "1.1.0-next",
59+
"@eclipse-glsp/layout-elk": "~2.0.0",
60+
"@eclipse-glsp/server": "~2.0.0",
6161
"inversify": "^6.0.1"
6262
},
6363
"devDependencies": {

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"lerna": "2.4.0",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"useWorkspaces": true,
55
"npmClient": "yarn",
66
"command": {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parent",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"private": true,
55
"workspaces": [
66
"packages/*",
@@ -16,7 +16,7 @@
1616
"lint:ci": "lerna run lint:ci",
1717
"prepare": "lerna run prepare",
1818
"publish:latest": "lerna publish from-git --no-git-reset --no-git-tag-version --no-verify-access --no-push",
19-
"publish:next": "SHA=$(git rev-parse --short HEAD) && lerna publish preminor --exact --canary --preid next.${SHA} --dist-tag next --no-git-reset --no-git-tag-version --no-push --ignore-scripts --yes --no-verify-access",
19+
"publish:next": "lerna publish preminor --exact --canary --preid next --dist-tag next --no-git-reset --no-git-tag-version --no-push --ignore-scripts --yes",
2020
"publish:prepare": "lerna version --ignore-scripts --yes --no-push",
2121
"start": "yarn --cwd examples/workflow-server-bundled start",
2222
"start:websocket": "yarn --cwd examples/workflow-server-bundled start:websocket",
@@ -28,7 +28,7 @@
2828
"watch": "lerna run --parallel watch"
2929
},
3030
"devDependencies": {
31-
"@eclipse-glsp/dev": "1.1.0-next.3b7f01d.144",
31+
"@eclipse-glsp/dev": "2.0.0",
3232
"@types/node": "16.x",
3333
"lerna": "^6.6.2",
3434
"typescript": "^5.0.4"

packages/graph/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eclipse-glsp/graph",
3-
"version": "1.1.0-next",
3+
"version": "2.0.0",
44
"description": "The typescript implementation of the GLSP graphical model (GModel)",
55
"keywords": [
66
"eclipse",
@@ -50,7 +50,7 @@
5050
"watch": "tsc -w"
5151
},
5252
"dependencies": {
53-
"@eclipse-glsp/protocol": "next"
53+
"@eclipse-glsp/protocol": "2.0.0"
5454
},
5555
"devDependencies": {
5656
"@types/uuid": "8.3.1"

packages/layout-elk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eclipse-glsp/layout-elk",
3-
"version": "1.1.0-next",
3+
"version": "2.0.0",
44
"description": "Integration of ELK graph layout algorithms in GLSP Node Server",
55
"keywords": [
66
"eclipse",
@@ -50,7 +50,7 @@
5050
"watch": "tsc -w"
5151
},
5252
"dependencies": {
53-
"@eclipse-glsp/server": "1.1.0-next",
53+
"@eclipse-glsp/server": "~2.0.0",
5454
"elkjs": "^0.7.1"
5555
},
5656
"peerDependencies": {

packages/server/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eclipse-glsp/server",
3-
"version": "1.1.0-next",
3+
"version": "2.0.0",
44
"description": "A js server framework for Eclipse GLSP",
55
"keywords": [
66
"eclipse",
@@ -59,8 +59,8 @@
5959
"watch": "tsc -w"
6060
},
6161
"dependencies": {
62-
"@eclipse-glsp/graph": "1.1.0-next",
63-
"@eclipse-glsp/protocol": "next",
62+
"@eclipse-glsp/graph": "~2.0.0",
63+
"@eclipse-glsp/protocol": "2.0.0",
6464
"@types/uuid": "8.3.1",
6565
"commander": "^8.3.0",
6666
"fast-json-patch": "^3.1.0",

0 commit comments

Comments
 (0)