diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05f54917..e5c3c797 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,13 +101,6 @@ jobs: - os: macos-latest name: OSX Safari Stable targetBrowser: Safari_Stable - - os: macos-11 - name: iOS Simulator Safari 15.0 - targetBrowser: Safari_IOS_15_0 - xcode: /Applications/Xcode_13.0.app - - os: windows-latest - name: Windows Internet Explorer 11 - targetBrowser: IE_11 runs-on: ${{ matrix.config.os }} name: ${{ matrix.config.name }} env: @@ -162,7 +155,7 @@ jobs: if-no-files-found: error publish: runs-on: ubuntu-latest - name: Publish + name: Publish NPM if: startsWith(github.ref, 'refs/tags/v') needs: browser-test permissions: @@ -225,34 +218,4 @@ jobs: - name: NPM Publish run: cd npm/package && npm publish --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - publish-gpr: - runs-on: ubuntu-latest - name: Publish Github Package - if: startsWith(github.ref, 'refs/tags/v') - needs: browser-test - permissions: - contents: write - packages: write - steps: - - uses: actions/checkout@v3 - - name: Download NPM package - uses: actions/download-artifact@v3 - with: - name: npm - path: npm - - name: Download library - uses: actions/download-artifact@v3 - with: - name: dist - path: dist - - name: Unpack npm - run: cd npm && tar -xvzf "html2canvas-pro.tgz" - - uses: actions/setup-node@v3 - with: - node-version: 16 - registry-url: https://npm.pkg.github.com/ - - run: npm pkg set publishConfig.registry=https://npm.pkg.github.com - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index a0b906ac..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Create Release - -on: - workflow_dispatch: - inputs: - version: - description: 'Semantic version (major | minor | patch | premajor | preminor | prepatch | prerelease)' - default: 'patch' - required: true - -jobs: - version: - name: Create version - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - name: Npm install - run: npm ci - - name: Configure git - run: | - git config user.name "CI" - git config user.email "yorickshan@gmail.com" - - name: Create release - run: npm run release -- --preset eslint --release-as ${{ github.event.inputs.version }} - - name: Print details - run: | - cat package.json - cat CHANGELOG.md - git tag - - name: Push git version - run: git push --follow-tags origin master diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..b74bc2e1 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,18 @@ +# Changelog + +All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## 1.5.0 (2024-05-27) + + +### Features + +* better color() support ([2559164](https://github.com/yorickshan/html2canvas-pro/commit/2559164c9890ea4985ce4cf09d27184da6ee22f8)) +* color functions ([1c9ece3](https://github.com/yorickshan/html2canvas-pro/commit/1c9ece3887e229eb69b34a5bb082c059355518e2)) +* complete work on relative from colors in the color() function ([ac6e331](https://github.com/yorickshan/html2canvas-pro/commit/ac6e33118be76734ff9b1f5cd92e147babd46548)) +* work on relative color support ([88e6aba](https://github.com/yorickshan/html2canvas-pro/commit/88e6abaa47b9c59e49a7bc3c0008849cc365f787)) + + +### Bug Fixes + +* color function display-p3 conversion ([b9fd943](https://github.com/yorickshan/html2canvas-pro/commit/b9fd943332a5627a9cd86c62bd6029d461356c14)) diff --git a/package-lock.json b/package-lock.json index b0458d6d..7675adc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "html2canvas-pro", - "version": "1.4.3", + "version": "1.5.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 16213ca9..2c06eea1 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "module": "dist/html2canvas-pro.esm.js", "typings": "dist/types/index.d.ts", "browser": "dist/html2canvas-pro.js", - "version": "1.4.3", + "version": "1.5.0", "author": { "name": "yorickshan", "email": "yorickshan@gmail.com",