Skip to content

Commit

Permalink
GLSP-1449 Update to latest client version
Browse files Browse the repository at this point in the history
- Update to latest client version. This aligns the used inversify
version

Part of: eclipse-glsp/glsp#1449

- Drop support for node 16

Part of: eclipse-glsp/glsp#1456

- Update changelog
  • Loading branch information
tortmayr committed Dec 19, 2024
1 parent 7841009 commit 7325017
Show file tree
Hide file tree
Showing 5 changed files with 2,074 additions and 2,024 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Eclipse GLSP Theia Integration Changelog

## 2.3.0 - active
## [2.3.0- 19/12/2024](https://github.com/eclipse-glsp/glsp-theia-integration/releases/tag/v2.3.0)

### Changes

### Potentially Breaking Changes
- [deps] Drop support for node `16`. New minimum version is `18.x` [#XXX](https://github.com/eclipse-glsp/glsp-theia-integration/pull/XXX)

## [2.2.1- 22/07/2024](https://github.com/eclipse-glsp/glsp-theia-integration/releases/tag/v2.2.1)

Expand Down Expand Up @@ -47,13 +47,13 @@
### Breaking Changes

- [theia] Update Theia dependencies to `1.33.0`. Due to API breaks, Theia versions `<1.33.0` are no longer supported. [#119](https://github.com/eclipse-glsp/glsp-theia-integration/pull/119) - Contributed on behalf of STMicroelectronics <br>
This also causes breaking changes in:
This also causes breaking changes in:
- `GlspServerContribution` (and inherited classes)
- `connect` method now takes a `Channel` instead of a `Connection` parameter
- `BaseGlspServerContribution` (and inherited classes)
- `forward` method now takes a `Channel` as first parameter instead of a `Connection`
- [deps] Switch Theia extension dependencies to peer dependencies. These dependencies are no longer autoresolved and have to be declared
in the application package. [#138](https://github.com/eclipse-glsp/glsp-theia-integration/pull/138) - Contributed on behalf of STMicroelectronics <br>
in the application package. [#138](https://github.com/eclipse-glsp/glsp-theia-integration/pull/138) - Contributed on behalf of STMicroelectronics <br>
- [API] Refactor `GLSPContribution` API [#146](https://github.com/eclipse-glsp/glsp-theia-integration/pull/146)<br>
- `GLSPClientContribution.waitForActivation` is now optional and is not implemented by default.
- `GLSPClientProviderImpl` has been renamed to `GLSPClientProvider`, function keys have been renamed has well
Expand Down
39 changes: 22 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,28 @@ For details on building the project, please see the [README file of the theia-in
| 2.0.0 | >=1.39.0 < 1.45.0 |
| 2.1.x | >=1.39.0 < 1.45.0 |
| 2.1.0-theia1.45.0 | >=1.45.0 < 1.49.0 |
| 2.1.1-theia1.49.0 | >=1.49.0 |
| 2.2.x | >=1.49.0 |
| next | >=1.49.0 |

> Note: For versions <=1.0.0 it is not possible to safely restrict the maximum version of Theia packages. If you encounter build errors related to multiple resolved Theia versions please add a resolutions block to the `package.json` of your project e.g. for `1.0.0-theia1.27.0`:
```json
...
"resolutions": {
"**/@theia/core": "1.27.0",
"**/@theia/editor": "1.27.0",
"**/@theia/filesystem": "1.27.0",
"**/@theia/messages": "1.27.0",
"**/@theia/monaco": "1.27.0"
},
...
```
| 2.1.1-theia1.49.0 | >=1.49.0 < 1.56.0 |
| 2.2.x | >=1.49.0 < 1.56.0 |
| next | >=1.56.0 |

### Potential Compatibility Issues

- When using Theia versions `<= 1.55.1` you might encounter runtime issues related to inversify.
Due to a loose version restriction Theia might pull in an incompatible version.
To resolve this the inversify version need to be locked to `6.0.2`. (e.g. via [yarn resolutions](https://classic.yarnpkg.com/lang/en/docs/selective-version-resolutions/) or [npm overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides))
- For `@eclipse-glsp/theia-integration` versions `<=1.0.0` it is not possible to safely restrict the maximum version of Theia packages. If you encounter build errors related to multiple resolved Theia versions please add a resolutions block to the `package.json` of your project e.g. for `1.0.0-theia1.27.0`:

```json
...
"resolutions": {
"**/@theia/core": "1.27.0",
"**/@theia/editor": "1.27.0",
"**/@theia/filesystem": "1.27.0",
"**/@theia/messages": "1.27.0",
"**/@theia/monaco": "1.27.0"
},
...
```

## Workflow Diagram Example

Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@
"watch:browser": "concurrently --kill-others -n tsc,browser -c red,yellow \"tsc -b -w --preserveWatchOutput\" \"yarn -s browser watch\"",
"watch:electron": "concurrently --kill-others -n tsc,browser -c red,yellow \"tsc -b -w --preserveWatchOutput\" \"yarn -s electron watch\""
},
"resolutions": {
"**/inversify": "6.0.2"
},
"devDependencies": {
"@eclipse-glsp/dev": "next",
"@types/node": "16.x",
"@types/node": "18.x",
"concurrently": "^8.2.2",
"lerna": "^7.0.0",
"typescript": "^5.1.3"
},
"engines": {
"node": ">=16.11.0",
"node": ">=18",
"yarn": ">=1.7.0 <2"
}
}
39 changes: 22 additions & 17 deletions packages/theia-integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,28 @@ This project is built with `yarn` and is available from npm via [@eclipse-glsp/t
| 2.0.0 | >=1.39.0 < 1.45.0 |
| 2.1.x | >=1.39.0 < 1.45.0 |
| 2.1.0-theia1.45.0 | >=1.45.0 < 1.49.0 |
| 2.1.1-theia1.49.0 | >=1.49.0 |
| 2.2.x | >=1.49.0 |
| next | >=1.49.0 |

> Note: For versions <=1.0.0 it is not possible to safely restrict the maximum version of Theia packages. If you encounter build errors related to multiple resolved Theia versions please add a resolutions block to the `package.json` of your project e.g. for `1.0.0-theia1.27.0`:
```json
...
"resolutions": {
"**/@theia/core": "1.27.0",
"**/@theia/editor": "1.27.0",
"**/@theia/filesystem": "1.27.0",
"**/@theia/messages": "1.27.0",
"**/@theia/monaco": "1.27.0"
},
...
```
| 2.1.1-theia1.49.0 | >=1.49.0 < 1.56.0 |
| 2.2.x | >=1.49.0 < 1.56.0 |
| next | >=1.56.0 |

### Potential Compatibility Issues

- When using Theia versions `<= 1.55.1` you might encounter runtime issues related to inversify.
Due to a loose version restriction Theia might pull in an incompatible version.
To resolve this the inversify version need to be locked to `6.0.2`. (e.g. via [yarn resolutions](https://classic.yarnpkg.com/lang/en/docs/selective-version-resolutions/) or [npm overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides))
- For `@eclipse-glsp/theia-integration` versions `<=1.0.0` it is not possible to safely restrict the maximum version of Theia packages. If you encounter build errors related to multiple resolved Theia versions please add a resolutions block to the `package.json` of your project e.g. for `1.0.0-theia1.27.0`:

```json
...
"resolutions": {
"**/@theia/core": "1.27.0",
"**/@theia/editor": "1.27.0",
"**/@theia/filesystem": "1.27.0",
"**/@theia/messages": "1.27.0",
"**/@theia/monaco": "1.27.0"
},
...
```

## More information

Expand Down
Loading

0 comments on commit 7325017

Please sign in to comment.