From ce2f21d57dbbc7e0e25725dcf1df222b26ccd700 Mon Sep 17 00:00:00 2001 From: Stephen Belovarich Date: Mon, 4 Nov 2024 09:33:00 -0800 Subject: [PATCH] (release): 9.0.0 --- CHANGELOG.md | 12 +- README.md | 16 +- package.json | 4 +- projects/swimlane/ngx-graph/package-lock.json | 186 ------------------ projects/swimlane/ngx-graph/package.json | 4 +- 5 files changed, 23 insertions(+), 199 deletions(-) delete mode 100644 projects/swimlane/ngx-graph/package-lock.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a521b4f..10cd5f5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,18 @@ # Changelog +## 9.0.0 + +- Breaking: Fix issues with load due to asynchronous node dimension handling +- Chore: Updated peer dependencies to support angular 18 and newer dependencies +- Chore: Updated documentation portal to run on Storybook + +This release causes possible breaking changes to how ngx-graph displays on load. The changes should make ngx-graph load more reliably. + +If you have developed in the repository previously, you may need to delete your node_modules and run yarn after updating to the latest on master. This repository switched from npm to yarn. Multiple development commands in the package.json have moved. See the README.md for an up to date reference. + ## 8.4.0 -- Fix; Fixes a styling issue when using ngx-graph and ngx-charts on the same page +- Fix: Fixes a styling issue when using ngx-graph and ngx-charts on the same page - Chore: Updated peer dependencies to support new angular versions ## 8.3.0 diff --git a/README.md b/README.md index 9f4cc1ec..2aa835f3 100644 --- a/README.md +++ b/README.md @@ -254,32 +254,32 @@ https://swimlane.github.io/ngx-graph/ ## Building ngx-graph -To get started with development, clone a fork of the repository and run `npm install --legacy-peer-deps`. - -Run `npm run build:lib` to build ngx-graph. This must be done prior to building the demo. +To get started with development, clone a fork of the repository and run `yarn`. ## Development server -Run `npm run start` to serve the demo at `http://localhost:4200/`. The app will automatically reload if you change any of the source files. +Run `yarn start` to serve Storybook at `http://localhost:6006/`. Storybook serves as the development and test environment for ngx-graph. ## Building -Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. +Run `yarn build:storybook` to build Storybook to check for production issues. The build artifacts will be stored in the `dist/` directory. + +Run `yarn build:lib` to build ngx-graph. ## Running tests -Run `npm run test` to execute the linter +Run `yarn test` to execute the linter. ## Release - Checkout master (`git checkout master`) - Pull master (`git pull`) -- Refresh node modules (`yarn ci`) -- Run tests (`yarn test`) +- Run tests (`yarn ci`) - Examine log to determine next version (X.Y.Z) - Run `git checkout -b release/X.Y.Z` - Update version in `projects/swimlane/ngx-graph/package.json`. - Update changelog in `CHANGELOG.md` +- Run `yarn package` to check the package format - Run `git commit -am "(release): X.Y.Z"` - Run `git tag X.Y.Z` - Run `git push origin HEAD --tags` diff --git a/package.json b/package.json index 1fdbd8ae..1c916d72 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "e2e": "ng e2e", "prettier": "prettier --write \"projects/**/*.{js,ts,scss,css,md,mdx,json}\"", "prettier:ci": "prettier --check \"projects/**/*.{js,ts,scss,css,md,mdx,json}\"", - "copy-files": "cp README.md projects/dist/ngx-graph/README.md && cp LICENSE projects/dist/ngx-graph/LICENSE", + "copy-files": "cp README.md dist/ngx-graph/README.md && cp LICENSE dist/ngx-graph/LICENSE && cp CHANGELOG.md dist/ngx-graph/CHANGELOG.md", "ci": "run-s lint prettier:ci", "preversion": "npm run ci", "package": "run-s build:lib copy-files", @@ -47,7 +47,7 @@ "msagl-js": "0.0.51", "react": "^18.3.1", "react-dom": "^18.3.1", - "rxjs": "7.8.1", + "rxjs": "^7.8.1", "transformation-matrix": "^2.16.1", "tslib": "^2.3.1", "webcola": "^3.4.0", diff --git a/projects/swimlane/ngx-graph/package-lock.json b/projects/swimlane/ngx-graph/package-lock.json deleted file mode 100644 index e14824c5..00000000 --- a/projects/swimlane/ngx-graph/package-lock.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "name": "@swimlane/ngx-graph", - "version": "7.0.1", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "d3-array": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.4.0.tgz", - "integrity": "sha512-KQ41bAF2BMakf/HdKT865ALd4cgND6VcIztVQZUTt0+BH3RWy6ZYnHghVXf6NFjt2ritLr8H1T8LreAAlfiNcw==" - }, - "d3-brush": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-1.1.5.tgz", - "integrity": "sha512-rEaJ5gHlgLxXugWjIkolTA0OyMvw8UWU1imYXy1v642XyyswmI1ybKOv05Ft+ewq+TFmdliD3VuK0pRp1VT/5A==", - "requires": { - "d3-dispatch": "1", - "d3-drag": "1", - "d3-interpolate": "1", - "d3-selection": "1", - "d3-transition": "1" - } - }, - "d3-collection": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/d3-collection/-/d3-collection-1.0.4.tgz", - "integrity": "sha1-NC39EoN8kJdPM/HMCnha6lcNzcI=" - }, - "d3-color": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-1.2.0.tgz", - "integrity": "sha512-dmL9Zr/v39aSSMnLOTd58in2RbregCg4UtGyUArvEKTTN6S3HKEy+ziBWVYo9PTzRyVW+pUBHUtRKz0HYX+SQg==" - }, - "d3-dispatch": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-1.0.3.tgz", - "integrity": "sha1-RuFJHqqbWMNY/OW+TovtYm54cfg=" - }, - "d3-drag": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-1.2.1.tgz", - "integrity": "sha512-Cg8/K2rTtzxzrb0fmnYOUeZHvwa4PHzwXOLZZPwtEs2SKLLKLXeYwZKBB+DlOxUvFmarOnmt//cU4+3US2lyyQ==", - "requires": { - "d3-dispatch": "1", - "d3-selection": "1" - } - }, - "d3-ease": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-1.0.5.tgz", - "integrity": "sha512-Ct1O//ly5y5lFM9YTdu+ygq7LleSgSE4oj7vUt9tPLHUi8VCV7QoizGpdWRWAwCO9LdYzIrQDg97+hGVdsSGPQ==" - }, - "d3-force": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-1.1.0.tgz", - "integrity": "sha512-2HVQz3/VCQs0QeRNZTYb7GxoUCeb6bOzMp/cGcLa87awY9ZsPvXOGeZm0iaGBjXic6I1ysKwMn+g+5jSAdzwcg==", - "requires": { - "d3-collection": "1", - "d3-dispatch": "1", - "d3-quadtree": "1", - "d3-timer": "1" - } - }, - "d3-format": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-1.4.4.tgz", - "integrity": "sha512-TWks25e7t8/cqctxCmxpUuzZN11QxIA7YrMbram94zMQ0PXjE4LVIMe/f6a4+xxL8HQ3OsAFULOINQi1pE62Aw==" - }, - "d3-hierarchy": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-1.1.9.tgz", - "integrity": "sha512-j8tPxlqh1srJHAtxfvOUwKNYJkQuBFdM1+JAUfq6xqH5eAqf93L7oG1NVqDa4CpFZNvnNKtCYEUC8KY9yEn9lQ==" - }, - "d3-interpolate": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-1.2.0.tgz", - "integrity": "sha512-zLvTk8CREPFfc/2XglPQriAsXkzoRDAyBzndtKJWrZmHw7kmOWHNS11e40kPTd/oGk8P5mFJW5uBbcFQ+ybxyA==", - "requires": { - "d3-color": "1" - } - }, - "d3-path": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.5.tgz", - "integrity": "sha1-JB6xhJvZ6egCHA0KeZ+KDo5EF2Q=" - }, - "d3-quadtree": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-1.0.3.tgz", - "integrity": "sha1-rHmH4+I/6AWpkPKOG1DTj8uCJDg=" - }, - "d3-scale": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-3.2.1.tgz", - "integrity": "sha512-huz5byJO/6MPpz6Q8d4lg7GgSpTjIZW/l+1MQkzKfu2u8P6hjaXaStOpmyrD6ymKoW87d2QVFCKvSjLwjzx/rA==", - "requires": { - "d3-array": "1.2.0 - 2", - "d3-format": "1", - "d3-interpolate": "^1.2.0", - "d3-time": "1", - "d3-time-format": "2" - } - }, - "d3-selection": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-1.3.0.tgz", - "integrity": "sha512-qgpUOg9tl5CirdqESUAu0t9MU/t3O9klYfGfyKsXEmhyxyzLpzpeh08gaxBUTQw1uXIOkr/30Ut2YRjSSxlmHA==" - }, - "d3-shape": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.2.0.tgz", - "integrity": "sha1-RdAVOPBkuv0F6j1tLLdI/YxB93c=", - "requires": { - "d3-path": "1" - } - }, - "d3-time": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz", - "integrity": "sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==" - }, - "d3-time-format": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-2.2.3.tgz", - "integrity": "sha512-RAHNnD8+XvC4Zc4d2A56Uw0yJoM7bsvOlJR33bclxq399Rak/b9bhvu/InjxdWhPtkgU53JJcleJTGkNRnN6IA==", - "requires": { - "d3-time": "1" - } - }, - "d3-timer": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-1.0.7.tgz", - "integrity": "sha512-vMZXR88XujmG/L5oB96NNKH5lCWwiLM/S2HyyAQLcjWJCloK5shxta4CwOFYLZoY3AWX73v8Lgv4cCAdWtRmOA==" - }, - "d3-transition": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-1.1.1.tgz", - "integrity": "sha512-xeg8oggyQ+y5eb4J13iDgKIjUcEfIOZs2BqV/eEmXm2twx80wTzJ4tB4vaZ5BKfz7XsI/DFmQL5me6O27/5ykQ==", - "requires": { - "d3-color": "1", - "d3-dispatch": "1", - "d3-ease": "1", - "d3-interpolate": "1", - "d3-selection": "^1.1.0", - "d3-timer": "1" - } - }, - "dagre": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/dagre/-/dagre-0.8.4.tgz", - "integrity": "sha512-Dj0csFDrWYKdavwROb9FccHfTC4fJbyF/oJdL9LNZJ8WUvl968P6PAKEriGqfbdArVJEmmfA+UyumgWEwcHU6A==", - "requires": { - "graphlib": "^2.1.7", - "lodash": "^4.17.4" - } - }, - "graphlib": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/graphlib/-/graphlib-2.1.7.tgz", - "integrity": "sha512-TyI9jIy2J4j0qgPmOOrHTCtpPqJGN/aurBwc6ZT+bRii+di1I+Wv3obRhVrmBEXet+qkMaEX67dXrwsd3QQM6w==", - "requires": { - "lodash": "^4.17.5" - } - }, - "lodash": { - "version": "4.17.19", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", - "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==" - }, - "transformation-matrix": { - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/transformation-matrix/-/transformation-matrix-1.15.3.tgz", - "integrity": "sha512-ThJH58GNFKhCw3gIoOtwf3tNwuYjbyEeiGdeq4mNMYWdJctnI896KUqn6PVt7jmNVepqa1bcKQtnMB1HtjsDMA==" - }, - "webcola": { - "version": "3.3.8", - "resolved": "https://registry.npmjs.org/webcola/-/webcola-3.3.8.tgz", - "integrity": "sha512-WVDTdHS1SaqYCUJGPdbOhqj44mchDyTC78tozUdqJllwYeJ2554+BWkJfc5kNphT8foip2StCMw1FWsIvGmv9w==", - "requires": { - "d3-dispatch": "^1.0.3", - "d3-drag": "^1.0.4", - "d3-timer": "^1.0.5" - } - } - } -} diff --git a/projects/swimlane/ngx-graph/package.json b/projects/swimlane/ngx-graph/package.json index 2cf0f094..dcaede99 100644 --- a/projects/swimlane/ngx-graph/package.json +++ b/projects/swimlane/ngx-graph/package.json @@ -1,6 +1,6 @@ { "name": "@swimlane/ngx-graph", - "version": "9.0.0-beta.3", + "version": "9.0.0", "description": "Graph visualization for angular", "repository": { "type": "git", @@ -40,7 +40,7 @@ "d3-dispatch": "^3.0.1", "d3-ease": "^3.0.1", "d3-force": "^3.0.0", - "d3-scale": "^3.2.3", + "d3-scale": "^4.0.2", "d3-selection": "^3.0.0", "d3-shape": "^3.2.0", "d3-timer": "^3.0.1",