From 61124981a841ed1105c86e26efc5c46023f81916 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 11 Nov 2025 18:02:38 +0000 Subject: [PATCH 1/4] Initial plan From 3686f54cbbd7104b8b2278a5fcafa9196edb93e4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 11 Nov 2025 18:07:24 +0000 Subject: [PATCH 2/4] Fix security vulnerabilities and prepare v1.0.19 release Co-authored-by: anikitenko <12380460+anikitenko@users.noreply.github.com> --- CHANGELOG.md | 10 ++++++++++ package-lock.json | 24 ++++++++++++------------ package.json | 2 +- tsconfig.json | 4 ++-- 4 files changed, 25 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0388d89..073daa4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.19] - 2025-11-11 + +### Changed + +- Updated electron dependency from 35.1.0 to 35.7.5 to fix security vulnerability (GHSA-vmqv-hx8q-j7mg) +- Updated brace-expansion dependency to fix Regular Expression Denial of Service vulnerability +- Fixed trailing commas in tsconfig.json for better JSON compliance + +## [1.0.18] - 2025-11-11 + ### Added - **DOMTable class** for creating HTML table structures diff --git a/package-lock.json b/package-lock.json index 35598bd..de0071c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2329,9 +2329,9 @@ } }, "node_modules/@ts-morph/common/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "dev": true, "license": "MIT", "dependencies": { @@ -3107,9 +3107,9 @@ "optional": true }, "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "dev": true, "license": "MIT", "dependencies": { @@ -3705,9 +3705,9 @@ } }, "node_modules/electron": { - "version": "35.1.0", - "resolved": "https://registry.npmjs.org/electron/-/electron-35.1.0.tgz", - "integrity": "sha512-yHaKPlsgDgjkwsiXgJG5DAmr9BgD4wSxtDGL6aBmUaN7QTs6qppNgtGkjHsS/pXJb4ZZBIH4IpPAx9d59Epbeg==", + "version": "35.7.5", + "resolved": "https://registry.npmjs.org/electron/-/electron-35.7.5.tgz", + "integrity": "sha512-dnL+JvLraKZl7iusXTVTGYs10TKfzUi30uEDTqsmTm0guN9V2tbOjTzyIZbh9n3ygUjgEYyo+igAwMRXIi3IPw==", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -4144,9 +4144,9 @@ } }, "node_modules/filelist/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 515f9c1..5351403 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type": "git", "url": "https://github.com/anikitenko/fdo-sdk.git" }, - "version": "1.0.18", + "version": "1.0.19", "description": "SDK for FlexDevOPs (FDO) application modules", "keywords": [ "fdo", diff --git a/tsconfig.json b/tsconfig.json index 21082bd..852ea28 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,9 +11,9 @@ "outDir": "dist/@types", "sourceMap": true, "declaration": true, - "declarationMap": false, + "declarationMap": false }, "include": [ "src/**/*" - ], + ] } From adfdcb5293ae56b0e9a5d26e1cfce8e3906ba51d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 11 Nov 2025 18:09:24 +0000 Subject: [PATCH 3/4] Enhance developer experience with improved scripts and documentation Co-authored-by: anikitenko <12380460+anikitenko@users.noreply.github.com> --- CHANGELOG.md | 8 ++++++++ README.md | 12 +++++++++--- package.json | 12 ++++++++++-- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 073daa4..0ff69bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated electron dependency from 35.1.0 to 35.7.5 to fix security vulnerability (GHSA-vmqv-hx8q-j7mg) - Updated brace-expansion dependency to fix Regular Expression Denial of Service vulnerability - Fixed trailing commas in tsconfig.json for better JSON compliance +- Enhanced package.json with improved keywords for better npm discoverability +- Added `prebuild` script to automatically generate TypeScript declarations before building +- Added `prepublishOnly` script to ensure tests pass and build succeeds before publishing + +### Documentation + +- Updated README.md with comprehensive development workflow documentation +- Added documentation for all npm scripts including coverage and publishing workflows ## [1.0.18] - 2025-11-11 diff --git a/README.md b/README.md index 7466eb4..6198843 100644 --- a/README.md +++ b/README.md @@ -91,16 +91,22 @@ See `examples/dom_elements_plugin.ts` for comprehensive examples of using the ne ### Building ```bash -npm run build # Build webpack bundle -npm run build:types # Generate TypeScript declarations +npm run build # Build webpack bundle (automatically runs build:types first) +npm run build:types # Generate TypeScript declarations only ``` ### Testing ```bash -npm test # Run Jest tests +npm test # Run Jest tests +npm run test:coverage # Run tests with coverage report +npm run coverage:open # Open coverage report in browser ``` +### Publishing + +The package includes a `prepublishOnly` script that automatically runs tests and builds before publishing to ensure quality. + ## Documentation - Full API documentation is available in the TypeScript declaration files diff --git a/package.json b/package.json index 5351403..e4df08a 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,13 @@ "devops", "flexdevops", "sdk", - "fdo-sdk" + "fdo-sdk", + "plugin", + "plugin-framework", + "electron", + "desktop-app", + "dom-builder", + "typescript" ], "author": "anikitenko", "license": "ISC", @@ -30,9 +36,11 @@ "scripts": { "build": "webpack --config webpack.config.cjs", "build:types": "tsc --emitDeclarationOnly", + "prebuild": "npm run build:types", "test": "jest", "test:coverage": "jest --coverage", - "coverage:open": "npx opn coverage/lcov-report/index.html || true" + "coverage:open": "npx opn coverage/lcov-report/index.html || true", + "prepublishOnly": "npm test && npm run build" }, "devDependencies": { "@babel/core": "^7.26.10", From 4d4468f87d6e48ef90c4677d419fa60c57c73ac8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 11 Nov 2025 18:10:50 +0000 Subject: [PATCH 4/4] Add Node.js and npm engine requirements for compatibility Co-authored-by: anikitenko <12380460+anikitenko@users.noreply.github.com> --- CHANGELOG.md | 1 + package.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ff69bc..058ec95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Enhanced package.json with improved keywords for better npm discoverability - Added `prebuild` script to automatically generate TypeScript declarations before building - Added `prepublishOnly` script to ensure tests pass and build succeeds before publishing +- Added Node.js and npm engine requirements (Node >=18.0.0, npm >=9.0.0) for compatibility clarity ### Documentation diff --git a/package.json b/package.json index e4df08a..86f5dd0 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,10 @@ ], "author": "anikitenko", "license": "ISC", + "engines": { + "node": ">=18.0.0", + "npm": ">=9.0.0" + }, "homepage": "https://plugins.fdo.alexvwan.me", "bugs": { "url": "https://github.com/anikitenko/fdo-sdk/issues"