diff --git a/.github/workflows/agent-policy.yml b/.github/workflows/agent-policy.yml index 21e7e00..70c0505 100644 --- a/.github/workflows/agent-policy.yml +++ b/.github/workflows/agent-policy.yml @@ -35,8 +35,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 - - uses: oras-project/setup-oras@22ce207df3b08e061f537244349aac6ae1d214f6 # v1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: oras-project/setup-oras@1d808f7d7f6995cc68b7bf507bfe5c5446e1dc9d # v2 # cosign-installer v4 shells out to envsubst, which is not part of the # provider-neutral general runner contract. Download the publisher- # compatible cosign v3 binary directly and verify its pinned SHA-256 so diff --git a/.github/workflows/changeset-check.yml b/.github/workflows/changeset-check.yml index 2289007..5bc7018 100644 --- a/.github/workflows/changeset-check.yml +++ b/.github/workflows/changeset-check.yml @@ -22,12 +22,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: '24' registry-url: 'https://registry.npmjs.org' @@ -38,7 +38,7 @@ jobs: printf 'registry=https://registry.npmjs.org/\n' > "$RUNNER_TEMP/npmrc" - name: Setup pnpm - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5 + uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6 - name: Get pnpm store directory shell: bash @@ -46,7 +46,7 @@ jobs: echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_ENV" - name: Setup pnpm cache - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 with: path: ${{ env.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index ad719ec..3f21cbd 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -43,12 +43,12 @@ jobs: steps: - name: Checkout PR branch - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: '24' registry-url: 'https://registry.npmjs.org' @@ -59,7 +59,7 @@ jobs: printf 'registry=https://registry.npmjs.org/\n' > "$RUNNER_TEMP/npmrc" - name: Setup pnpm - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5 + uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6 - name: Get pnpm store directory shell: bash @@ -67,7 +67,7 @@ jobs: echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_ENV" - name: Setup pnpm cache - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 with: path: ${{ env.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} @@ -112,7 +112,7 @@ jobs: - name: Comment on PR if: github.event_name == 'pull_request' - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 with: script: | const bump = '${{ steps.version.outputs.bump }}'; diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c1a6d61..638f144 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,19 +26,19 @@ jobs: steps: - name: Generate GitHub App Token id: app-token - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3 with: app-id: ${{ secrets.HAVE_RELEASE_APP_ID }} private-key: ${{ secrets.HAVE_RELEASE_APP_PRIVATE_KEY }} - name: Checkout - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 token: ${{ steps.app-token.outputs.token }} - name: Setup Node.js - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: '24' registry-url: 'https://registry.npmjs.org' @@ -49,7 +49,7 @@ jobs: printf 'registry=https://registry.npmjs.org/\n' > "$RUNNER_TEMP/npmrc" - name: Setup pnpm - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5 + uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6 - name: Get pnpm store directory shell: bash @@ -57,7 +57,7 @@ jobs: echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_ENV" - name: Setup pnpm cache - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 with: path: ${{ env.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0d3bd2e..24dbd27 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,10 +17,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Setup Node.js - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: '24' registry-url: 'https://registry.npmjs.org' @@ -31,7 +31,7 @@ jobs: printf 'registry=https://registry.npmjs.org/\n' > "$RUNNER_TEMP/npmrc" - name: Setup pnpm - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5 + uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6 - name: Get pnpm store directory shell: bash @@ -39,7 +39,7 @@ jobs: echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_ENV" - name: Setup pnpm cache - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 with: path: ${{ env.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} diff --git a/package.json b/package.json index 4df2033..3730d23 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "types": "./dist/index.d.ts", "packageManager": "pnpm@11.13.0", "engines": { - "node": ">=24", + "node": ">=24.18.0", "pnpm": ">=11.13.0" }, "files": [ @@ -65,7 +65,7 @@ "dependencies": { "@happyvertical/ocr": "^0.61.1", "@happyvertical/utils": "^0.80.1", - "@napi-rs/canvas": "0.1.100", + "@napi-rs/canvas": "1.0.3", "marked": "^18.0.6", "pdf-lib": "^1.17.1", "pdfjs-dist": "6.1.200",