diff --git a/.github/workflows/on-publish.yml b/.github/workflows/on-publish.yml index b34500af3..3cdfdc054 100644 --- a/.github/workflows/on-publish.yml +++ b/.github/workflows/on-publish.yml @@ -2,7 +2,7 @@ name: Update gh-pages on: release: - types: [published] + types: [released] jobs: build_docs: diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index 3898df930..dc64a37d5 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x] + node-version: [20.x, 22.x] steps: - name: Checkout sources diff --git a/.github/workflows/on-push-master.yml b/.github/workflows/on-push-master.yml index 710cc7e79..0bcb82f49 100644 --- a/.github/workflows/on-push-master.yml +++ b/.github/workflows/on-push-master.yml @@ -43,10 +43,10 @@ jobs: - name: Checkout sources uses: actions/checkout@v4 - - name: Use Node.js 18.x + - name: Use Node.js 20.x uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x - name: Cache Node.js modules 💾 uses: actions/cache@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4164281ff..81e2f3c44 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,9 @@ name: Release on: workflow_dispatch: + push: + branches: + - next jobs: release: diff --git a/.releaserc b/.releaserc index cdd8617a1..62af96b8f 100644 --- a/.releaserc +++ b/.releaserc @@ -1,5 +1,11 @@ { - "branches": ["master"], + "branches": [ + "master", + { + "name": "next", + "prerelease": true + } + ], "plugins": [ [ "@semantic-release/commit-analyzer", diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b774aee8..64e89a12c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,54 @@ +## [9.0.0-next.5](https://github.com/geostyler/geostyler-style/compare/v9.0.0-next.4...v9.0.0-next.5) (2024-06-20) + + +### Bug Fixes + +* use single entry point ([8a918ce](https://github.com/geostyler/geostyler-style/commit/8a918ce2a59c00d2206e5b818568f402ace13a57)) + +## [9.0.0-next.4](https://github.com/geostyler/geostyler-style/compare/v9.0.0-next.3...v9.0.0-next.4) (2024-06-19) + + +### Bug Fixes + +* switch to node 20 ([dd9979f](https://github.com/geostyler/geostyler-style/commit/dd9979f32960c146520f8a380caaa99bc2d4416e)) + +## [9.0.0-next.3](https://github.com/geostyler/geostyler-style/compare/v9.0.0-next.2...v9.0.0-next.3) (2024-06-19) + + +### Bug Fixes + +* use proper node version ([993a896](https://github.com/geostyler/geostyler-style/commit/993a896d84687a54c0e5f9f8b1329940cde46165)) + +## [9.0.0-next.2](https://github.com/geostyler/geostyler-style/compare/v9.0.0-next.1...v9.0.0-next.2) (2024-06-19) + + +### Bug Fixes + +* fix tsconfig ([37973c5](https://github.com/geostyler/geostyler-style/commit/37973c56bdedcade31e213ef3a33345a2a3ce27c)) + +## [9.0.0-next.1](https://github.com/geostyler/geostyler-style/compare/v8.1.0...v9.0.0-next.1) (2024-06-18) + + +### ⚠ BREAKING CHANGES + +* order of arguments of the FCase function has been change + +### Features + +* add new functions ([b15e97f](https://github.com/geostyler/geostyler-style/commit/b15e97f91210f989725b92ed7b0d8bf3bed51ea3)) +* export case and step params ([ea7cbaf](https://github.com/geostyler/geostyler-style/commit/ea7cbaf42dbc91495d0fa4b8fa7ca8f11d60dcae)) +* prepare pre releases ([0f1f859](https://github.com/geostyler/geostyler-style/commit/0f1f8595e60897e1c0ced88406424f9a75fb2431)) +* produce esm build ([3b71147](https://github.com/geostyler/geostyler-style/commit/3b71147905265b9f96b6856ab61bc5962a32f532)) + + +### Bug Fixes + +* **deps:** update dependency @types/lodash to v4.17.5 ([d32fec9](https://github.com/geostyler/geostyler-style/commit/d32fec9d3b396349f501a19660fe1bbdb9b5a515)) +* fix esm exports ([bfba56b](https://github.com/geostyler/geostyler-style/commit/bfba56b965e6eaf1c9f55b167ec1e0d39e9bcb6b)) +* fix semantic release plugin ([0954bd7](https://github.com/geostyler/geostyler-style/commit/0954bd7a0194a125436aa55a9cf92103e2983632)) +* update FCase arguments ([2d51319](https://github.com/geostyler/geostyler-style/commit/2d513191a62b58a841c695c3ba0e3fd0426d9dcb)) +* update repo schema ([0b4c5c1](https://github.com/geostyler/geostyler-style/commit/0b4c5c144dc72c0591327478152a1a92c1e23a29)) + ## [8.1.0](https://github.com/geostyler/geostyler-style/compare/v8.0.0...v8.1.0) (2023-12-01) diff --git a/package-lock.json b/package-lock.json index af6690dbd..070cdaf85 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "geostyler-style", - "version": "8.1.0", + "version": "9.0.0-next.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "geostyler-style", - "version": "8.1.0", + "version": "9.0.0-next.5", "license": "BSD-2-Clause", "devDependencies": { "@babel/core": "^7.24.6", @@ -21,7 +21,7 @@ "@types/jest": "^29.5.12", "@typescript-eslint/parser": "^7.12.0", "babel-jest": "^29.7.0", - "conventional-changelog-conventionalcommits": "^8.0.0", + "conventional-changelog-conventionalcommits": "^7.0.2", "core-js": "^3.37.1", "eslint": "^8.57.0", "jest": "^29.7.0", @@ -2142,19 +2142,6 @@ "node": ">=v18" } }, - "node_modules/@commitlint/config-conventional/node_modules/conventional-changelog-conventionalcommits": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-7.0.2.tgz", - "integrity": "sha512-NKXYmMR/Hr1DevQegFB4MwfM5Vv0m4UIxKZTTYuD98lpTknaZlSRrDOG4X7wIXpGkfsYxZTghUN+Qq+T0YQI7w==", - "dev": true, - "license": "ISC", - "dependencies": { - "compare-func": "^2.0.0" - }, - "engines": { - "node": ">=16" - } - }, "node_modules/@commitlint/config-validator": { "version": "19.0.3", "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-19.0.3.tgz", @@ -6211,16 +6198,15 @@ } }, "node_modules/conventional-changelog-conventionalcommits": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-8.0.0.tgz", - "integrity": "sha512-eOvlTO6OcySPyyyk8pKz2dP4jjElYunj9hn9/s0OB+gapTO8zwS9UQWrZ1pmF2hFs3vw1xhonOLGcGjy/zgsuA==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-7.0.2.tgz", + "integrity": "sha512-NKXYmMR/Hr1DevQegFB4MwfM5Vv0m4UIxKZTTYuD98lpTknaZlSRrDOG4X7wIXpGkfsYxZTghUN+Qq+T0YQI7w==", "dev": true, - "license": "ISC", "dependencies": { "compare-func": "^2.0.0" }, "engines": { - "node": ">=18" + "node": ">=16" } }, "node_modules/conventional-changelog-writer": { diff --git a/package.json b/package.json index c1ae5d39e..13499f44d 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "geostyler-style", - "version": "8.1.0", + "version": "9.0.0-next.5", "description": "", "main": "dist/index.js", - "types": "dist/index.d.ts", + "type": "module", "files": [ "dist/*", "examples/**", @@ -31,7 +31,7 @@ "@types/jest": "^29.5.12", "@typescript-eslint/parser": "^7.12.0", "babel-jest": "^29.7.0", - "conventional-changelog-conventionalcommits": "^8.0.0", + "conventional-changelog-conventionalcommits": "^7.0.2", "core-js": "^3.37.1", "eslint": "^8.57.0", "jest": "^29.7.0", @@ -41,8 +41,8 @@ "typescript-json-schema": "^0.64.0" }, "engines": { - "node": ">=16.0.0", - "npm": ">=6.0.0" + "node": ">=20.6.0", + "npm": ">=10.0.0" }, "repository": { "type": "git", diff --git a/tsconfig.json b/tsconfig.json index 301f7b850..ff0fb67ef 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,26 +1,27 @@ { "compilerOptions": { + "allowJs": false, "baseUrl": ".", - "module": "commonjs", "declaration": true, "esModuleInterop": true, - "outDir": "dist", - "target": "es5", - "lib": ["es6", "dom"], - "sourceMap": true, - "inlineSources": true, - "allowJs": false, - "moduleResolution": "node", - "rootDir": ".", "forceConsistentCasingInFileNames": true, + "inlineSources": true, + "lib": ["ES2022", "es6", "dom"], + "module": "Preserve", + "moduleResolution": "Bundler", + "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, - "noImplicitAny": true, + "noUnusedLocals": true, + "outDir": "dist", + "rootDir": ".", + "sourceMap": true, "strictNullChecks": true, - "noUnusedLocals": true + "target": "ES2022" }, "files": [ "./typeguards.ts", - "./index.ts" + "./index.ts", + "./functions.ts" ] }