Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
- Use `yarn upgrade:next` to update our fluent dependencies
- Update changelog
- Use 1.0.0 version of @eclipse-glsp/config package
- Fix publish scripts
  • Loading branch information
tortmayr committed Jul 3, 2022
1 parent 91fd534 commit fe0b297
Show file tree
Hide file tree
Showing 13 changed files with 442 additions and 453 deletions.
64 changes: 37 additions & 27 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# Eclipse GLSP Client Changelog

## [v0.10.0- Upcoming](https://github.com/eclipse-glsp/glsp-client/releases/tag/v0.10.0)
## [v1.0.0 - 30/06/2022](https://github.com/eclipse-glsp/glsp-client/releases/tag/v1.0.0)

### Changes

- [diagram] Fixed a bug where the edge creation tool would select the wrong child when used inside of a nested node [#224](https://github.com/eclipse-glsp/glsp-client/pull/158/)
- [example] Improved and modernized styling of the GLSP workflow example [#492](https://github.com/eclipse-glsp/glsp-client/pull/160)
- [diagram] Fixed a bug where the edge creation tool would select the wrong child when used inside of a nested node [#158](https://github.com/eclipse-glsp/glsp-client/pull/158/)
- [example] Improved and modernized styling of the GLSP workflow example [#160](https://github.com/eclipse-glsp/glsp-client/pull/160)
- [contextMenu] Ensured that closing the context menu correctly restores the diagram focus. [#469](https://github.com/eclipse-glsp/glsp-client/pull/161)
- [build] Updated Typescript to version 4.5.5 and enforced `noImplicitOverride` [#559](https://github.com/eclipse-glsp/glsp-client/pull/167)
- [diagram] Added support for snapping edges (routing points) similar to how its done for moving/resizing elements. [#604](https://github.com/eclipse-glsp/glsp-client/pull/170)
- [build] Updated Typescript to version 4.5.5 and enforced `noImplicitOverride` [#167](https://github.com/eclipse-glsp/glsp-client/pull/167)
- [diagram] Added support for snapping edges (routing points) similar to how its done for moving/resizing elements. [#170](https://github.com/eclipse-glsp/glsp-client/pull/170)
- [layout] Implemented a custom layouter for HBox that supports nested compartments. [#174](https://github.com/eclipse-glsp/glsp-client/pull/174)
- [diagram] Disable tool execution on focus loss and reactive the default tools. [#175](https://github.com/eclipse-glsp/glsp-client/pull/175)
- [routing] Routing handles are now properly snapped if an `ISnapper` implementation is bound. [#177](https://github.com/eclipse-glsp/glsp-client/pull/177)
- [routing] Fixed a bug that caused short animation flickering whenever a routing point was moved. [#182](https://github.com/eclipse-glsp/glsp-client/pull/182)
- [context] Properly integrated the browser context menu listeners -> Context menus now also work on Mac OS [#183](https://github.com/eclipse-glsp/glsp-client/pull/183)

### Breaking Changes

Expand All @@ -18,40 +23,45 @@
- [DI] Unified the sprotty `TYPE` and `GLSP_TYPE` service identifier constants. They are reexported from the client main index as `TYPE`. The old `GLSP_TYPE` constant definition has been
deprecated will potentially be removed in the future. [#472](https://github.com/eclipse-glsp/glsp-client/pull/171)
- [protocol] Rename `ModelSourceChangedAction` to `SourceModelChangedAction` including handlers etc [#655](https://github.com/eclipse-glsp/glsp-client/pull/184)
- [diagram] Cleanup/refactor various commands and action handlers. [#176](https://github.com/eclipse-glsp/glsp-client/pull/176)
- Rename `layoutCommandsModule` to `layoutModule`
- Change handling of `ResizeElement` and `AlignElement` actions to pure action handlers instead of commands.
- Change handling of `NavigateToMarkersAction` to a pure action handler instead of commands
- Refactor handler for `SetMarkersAction` to a standalone action handler instead of an command

## [v0.9.0- 09/12/2021](https://github.com/eclipse-glsp/glsp-client/releases/tag/v0.9.0)

### Changes

- [feature] Improve external navigation support through dedicated action. [#153](https://github.com/eclipse-glsp/glsp-client/pull/95)
- [build] Added a download script to download the latest workflow-glsp-server JAR from maven artifactory [#171](https://github.com/eclipse-glsp/glsp-client/pull/99)
- [diagram] Fixed a bug that kept the hover feedback visible after the diagram widget becomes inactive [#184](https://github.com/eclipse-glsp/glsp-client/pull/102)
- [feature] Improve external navigation support through dedicated action. [#95](https://github.com/eclipse-glsp/glsp-client/pull/95)
- [build] Added a download script to download the latest workflow-glsp-server JAR from maven artifactory [#99](https://github.com/eclipse-glsp/glsp-client/pull/99)
- [diagram] Fixed a bug that kept the hover feedback visible after the diagram widget becomes inactive [#102](https://github.com/eclipse-glsp/glsp-client/pull/102)
- [diagram] Extended the `ModifyCssFeedbackAction` to support both `string[]` and `SModelElement[]` as input [#103](https://github.com/eclipse-glsp/glsp-client/pull/103)
- [diagram] Improved extensibility of `AutoCompleteWidget` by enabling changing of settings without having to re-instantiate the entire widget [#104](https://github.com/eclipse-glsp/glsp-client/pull/104)
- [model] Added `SArgumentable` interface for denoting `SModelElement`s that contain an arbitrary arguments map [#194](https://github.com/eclipse-glsp/glsp-client/pull/106)
- [diagram] Implemented a marquee selection tool to select multiple elements at once by drawing a rectangle. [#199](https://github.com/eclipse-glsp/glsp-client/pull/108) [#213](https://github.com/eclipse-glsp/glsp-client/pull/120)
- [protocol] Added `fileUri` property to `SaveModelAction`. This can be used to implement save-as functionality [#208](https://github.com/eclipse-glsp/glsp-client/pull/109)
- [protocol] Implemented missing typeguard functions for all protocol operations [#212](https://github.com/eclipse-glsp/glsp-client/pull/110)
- [model] Added `SArgumentable` interface for denoting `SModelElement`s that contain an arbitrary arguments map [#106](https://github.com/eclipse-glsp/glsp-client/pull/106)
- [diagram] Implemented a marquee selection tool to select multiple elements at once by drawing a rectangle. [#108](https://github.com/eclipse-glsp/glsp-client/pull/108) [#120](https://github.com/eclipse-glsp/glsp-client/pull/120)
- [protocol] Added `fileUri` property to `SaveModelAction`. This can be used to implement save-as functionality [#109](https://github.com/eclipse-glsp/glsp-client/pull/109)
- [protocol] Implemented missing typeguard functions for all protocol operations [#110](https://github.com/eclipse-glsp/glsp-client/pull/110)
- [diagram] Implemented a reusable utility function (`configureDefaultModelElements`) that handles configuration of default model elements and views.
Introduced reusable view for rounded corner nodes and and improved edge view that supports custom padding for easer mouse handling. Adapted the workflow example to make use of these new views [#180](https://github.com/eclipse-glsp/glsp-client/pull/113)
- [example] Cleaned up and reworked the workflow example. Additional css classes are now applied directly to the `SModelElement` instead of using custom views. Removed now obsolete classes `TaskNodeView` and `WeightedEdgeView` [#220](https://github.com/eclipse-glsp/glsp-client/pull/116)
- [diagram] Fixed a bug in the connection tool regarding the feedback edge snapping computation for nested elements. [#224](https://github.com/eclipse-glsp/glsp-client/pull/123)
- [diagram] Fixed a bug in the copy& paste behavior. [#249](https://github.com/eclipse-glsp/glsp-client/pull/124)
- [protocol] Fixed the definition of `ChangeContainerOperation`. [#253](eclipse-glsp/glsp-server#115)
- [protocol] Remove the `name` property from `GLSPClient`. [#258](https://github.com/eclipse-glsp/glsp-client/pull/130/files)
- [diagram] Fixed a bug in Firefox that required elements to be selected before they can be moved. [#376](https://github.com/eclipse-glsp/glsp-client/pull/134)
Introduced reusable view for rounded corner nodes and and improved edge view that supports custom padding for easer mouse handling. Adapted the workflow example to make use of these new views [#113](https://github.com/eclipse-glsp/glsp-client/pull/113)
- [example] Cleaned up and reworked the workflow example. Additional css classes are now applied directly to the `SModelElement` instead of using custom views. Removed now obsolete classes `TaskNodeView` and `WeightedEdgeView` [#116](https://github.com/eclipse-glsp/glsp-client/pull/116)
- [diagram] Fixed a bug in the connection tool regarding the feedback edge snapping computation for nested elements. [#123](https://github.com/eclipse-glsp/glsp-client/pull/123)
- [diagram] Fixed a bug in the copy& paste behavior. [#124](https://github.com/eclipse-glsp/glsp-client/pull/124)
- [protocol] Fixed the definition of `ChangeContainerOperation`. [#115](eclipse-glsp/glsp-server#115)
- [protocol] Remove the `name` property from `GLSPClient`. [#130](https://github.com/eclipse-glsp/glsp-client/pull/130)
- [diagram] Fixed a bug in Firefox that required elements to be selected before they can be moved. [#134](https://github.com/eclipse-glsp/glsp-client/pull/134)
- [build] Upgrade to Snabbdom3 and ES2017 [#137](https://github.com/eclipse-glsp/glsp-client/pull/137)
- [protocol] Extract action message protocol and action definitions from `@eclipse-glsp/client` and move to `@eclipse-glsp/protocol` [#256](https://github.com/eclipse-glsp/glsp-client/pull/141) - Contributed on behalf of STMicroelectronics
- [diagram] Fixed a bug that occurred when moving nested elements. [#225](https://github.com/eclipse-glsp/glsp-client/pull/135)
- [example] Added support for structured nodes (categories) in workflow-example. [#392](https://github.com/eclipse-glsp/glsp-client/pull/136)
- [diagram] Fixed a bug related to the mouse cursor position on resize. [#400](https://github.com/eclipse-glsp/glsp-client/pull/144)
- [model] Add a convenience method to create a container with default modules. [#419](https://github.com/eclipse-glsp/glsp-client/pull/145)
- [protocol] Extract action message protocol and action definitions from `@eclipse-glsp/client` and move to `@eclipse-glsp/protocol` [#141](https://github.com/eclipse-glsp/glsp-client/pull/141) - Contributed on behalf of STMicroelectronics
- [diagram] Fixed a bug that occurred when moving nested elements. [#135](https://github.com/eclipse-glsp/glsp-client/pull/135)
- [example] Added support for structured nodes (categories) in workflow-example. [#136](https://github.com/eclipse-glsp/glsp-client/pull/136)
- [diagram] Fixed a bug related to the mouse cursor position on resize. [#144](https://github.com/eclipse-glsp/glsp-client/pull/144)
- [model] Add a convenience method to create a container with default modules. [#145](https://github.com/eclipse-glsp/glsp-client/pull/145)

### Breaking Changes

- [diagram] Introduced `glspViewportModule`. This module contains a custom `ScrollMouseListener` that gets disabled if the `MarqueeTool` is active. This module should be used instead of the `viewportModule` provided by sprotty [#199](https://github.com/eclipse-glsp/glsp-client/pull/108)
- [protocol] Fixed the definition of `ChangeContainerOperation`. The type of the `location` property has been changed from `string` to `Point`. [#253](eclipse-glsp/glsp-server#115)
- [protocol] Remove the `name` property from `GLSPClient`. [#258](https://github.com/eclipse-glsp/glsp-client/pull/130/files)
- [diagram] Introduced `glspViewportModule`. This module contains a custom `ScrollMouseListener` that gets disabled if the `MarqueeTool` is active. This module should be used instead of the `viewportModule` provided by sprotty [#108](https://github.com/eclipse-glsp/glsp-client/pull/108)
- [protocol] Fixed the definition of `ChangeContainerOperation`. The type of the `location` property has been changed from `string` to `Point`. [#115](eclipse-glsp/glsp-server#115)
- [protocol] Remove the `name` property from `GLSPClient`. [#130](https://github.com/eclipse-glsp/glsp-client/pull/130)
- [build] Upgrade to Snabbdom3 and ES2017. Depended packages should upgrade to ES2017 as well. [#137](https://github.com/eclipse-glsp/glsp-client/pull/137)

## [v0.8.0 - 20/10/2020](https://github.com/eclipse-glsp/glsp-client/releases/tag/0.8.0)
Expand Down
20 changes: 4 additions & 16 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
# Security Policy
# Eclipse GLSP Vulnerability Reporting Policy

Eclipse GLSP follows the [Eclipse Vulnerability Reporting Policy](https://www.eclipse.org/security/policy.php).
Vulnerabilities are tracked by the Eclipse security team, in cooperation with the GLSP project leads.
Fixing vulnerabilities is taken care of by the GLSP project committers, with assistance and guidance of the security team.
If you think or suspect that you have discovered a new security vulnerability in this project, please do not disclose it on GitHub, e.g. in an issue, a PR, or a discussion. Any such disclosure will be removed/deleted on sight, to promote orderly disclosure, as per the Eclipse Foundation Security Policy (1).

## Supported Versions
Instead, please report any potential vulnerability to the Eclipse Foundation Security Team. Make sure to provide a concise description of the issue, a CWE, and other supporting information.

Eclipse GLSP is still in the incubation phase.
During this phase only the most current release is supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 0.9.0 | :white_check_mark: |
| < 0.9.0 | :x: |

## Reporting a Vulnerability

We recommend that in case of suspected vulnerabilities you do not use the GLSP public issue tracker, but instead contact the Eclipse Security Team directly via [email protected].
(1) Eclipse Foundation Vulnerability Reporting Policy: <https://www.eclipse.org/security/policy.php>
4 changes: 2 additions & 2 deletions examples/workflow-glsp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eclipse-glsp-examples/workflow-glsp",
"version": "0.9.0",
"version": "1.0.0",
"description": "GLSP diagrams for the Workflow DSL",
"license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",
"keywords": [
Expand All @@ -26,7 +26,7 @@
}
],
"dependencies": {
"@eclipse-glsp/client": "0.9.0",
"@eclipse-glsp/client": "^1.0.0",
"balloon-css": "^0.5.0"
},
"devDependencies": {
Expand Down
10 changes: 6 additions & 4 deletions examples/workflow-glsp/scripts/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,20 @@ import download from 'mvn-artifact-download';
import { join, resolve } from 'path';

const downloadDir = resolve(join(__dirname)) + '/../../..';
const mavenRepository = 'https://oss.sonatype.org/content/repositories/snapshots/';
const mavenRepository = 'https://repo1.maven.org/maven2/';
const groupId = 'org.eclipse.glsp.example';
const artifactId = 'org.eclipse.glsp.example.workflow';
const version = '0.9.0';
const version = '1.0.0';
const classifier = 'glsp';

console.log('Downloading latest version of the Workflow Example Java Server from the maven repository...');
download({ groupId, artifactId, version, classifier, isSnapShot: true }, downloadDir, mavenRepository).then(() =>
const isSnapShot = false;
download({ groupId, artifactId, version, classifier, isSnapShot }, downloadDir, mavenRepository).then(() =>
console.log(
'Download completed. Start the server using this command: \njava -jar org.eclipse.glsp.example.workflow-' +
version +
'-SNAPSHOT-glsp.jar org.eclipse.glsp.example.workflow.launch.ExampleServerLauncher --port=8081 --websocket\n\n' +
`${isSnapShot ? '-SNAPSHOT' : ''}` +
'-glsp.jar org.eclipse.glsp.example.workflow.launch.ExampleServerLauncher --port=8081 --websocket\n\n' +
'After starting the server, access the following file locally in your browser to see the running example:\n' +
'./examples/workflow-standalone/app/diagram.html'
)
Expand Down
6 changes: 3 additions & 3 deletions examples/workflow-standalone/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "workflow-standalone",
"version": "0.9.0",
"version": "1.0.0",
"description": "Standalone browser-app for the Workflow example",
"author": {
"name": "Eclipse GLSP"
Expand All @@ -20,8 +20,8 @@
}
],
"dependencies": {
"@eclipse-glsp-examples/workflow-glsp": "0.9.0",
"@eclipse-glsp/client": "0.9.0"
"@eclipse-glsp-examples/workflow-glsp": "^1.0.0",
"@eclipse-glsp/client": "^1.0.0"
},
"devDependencies": {
"circular-dependency-plugin": "^5.2.2",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.9.0",
"version": "1.0.0",
"useWorkspaces": true,
"npmClient": "yarn",
"command": {
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "parent",
"version": "0.9.0",
"version": "1.0.0",
"engines": {
"yarn": ">=1.7.0 <2.x.x"
},
Expand All @@ -13,14 +13,14 @@
"lint": "lerna run lint --",
"test": "lerna run test",
"test:ci": "lerna run test:ci",
"publish:prepare": "lerna version minor --exact --ignore-scripts --yes --no-push",
"publish:latest": "lerna publish from-git --no-git-reset --no-verify-access --no-push",
"publish:prepare": "lerna version --ignore-scripts --yes --no-push",
"publish:latest": "lerna publish from-git --no-git-reset --no-git-tag-version --no-verify-access --no-push",
"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",
"upgrade:next": "yarn upgrade -p \"@eclipse-glsp.*|sprotty.*\" --next ",
"download:exampleServer": "ts-node examples/workflow-glsp/scripts/download.ts"
},
"devDependencies": {
"@eclipse-glsp/config": "next",
"@eclipse-glsp/config": "^1.0.0",
"@types/node": "12.x",
"lerna": "^4.0.0",
"reflect-metadata": "^0.1.13",
Expand Down
4 changes: 2 additions & 2 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eclipse-glsp/client",
"version": "0.9.0",
"version": "1.0.0",
"description": "A sprotty-based client for GLSP",
"license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",
"keywords": [
Expand Down Expand Up @@ -34,7 +34,7 @@
"css"
],
"dependencies": {
"@eclipse-glsp/protocol": "0.9.0",
"@eclipse-glsp/protocol": "^1.0.0",
"autocompleter": "5.1.0",
"sprotty": "0.12.0"
},
Expand Down
26 changes: 2 additions & 24 deletions packages/client/src/features/hover/hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,11 @@ import {
SModelRootSchema
} from '@eclipse-glsp/protocol';
import { injectable } from 'inversify';
import {
EMPTY_ROOT,
HoverFeedbackAction,
HoverMouseListener,
IActionHandler,
ICommand,
SIssueMarker,
SIssueSeverity,
SModelElement
} from 'sprotty';
import { EMPTY_ROOT, HoverFeedbackAction, HoverMouseListener, IActionHandler, ICommand, SModelElement } from 'sprotty';
import { FocusStateChangedAction } from '../../base/actions/focus-change-action';
import { EnableDefaultToolsAction, EnableToolsAction } from '../../base/tool-manager/tool-actions';
import { EdgeCreationTool } from '../tools/edge-creation-tool';
import { GIssueMarker } from '../validation/issue-marker';
import { getSeverity, GIssueMarker } from '../validation/issue-marker';
@injectable()
export class GlspHoverMouseListener extends HoverMouseListener implements IActionHandler {
protected enableHover = true;
Expand Down Expand Up @@ -117,16 +108,3 @@ export class GlspHoverMouseListener extends HoverMouseListener implements IActio
return bounds;
}
}

export function getSeverity(marker: SIssueMarker): SIssueSeverity {
let currentSeverity: SIssueSeverity = 'info';
for (const severity of marker.issues.map(s => s.severity)) {
if (severity === 'error') {
return severity;
}
if (severity === 'warning' && currentSeverity === 'info') {
currentSeverity = severity;
}
}
return currentSeverity;
}
Loading

0 comments on commit fe0b297

Please sign in to comment.