mirror of
https://github.com/lovell/sharp.git
synced 2025-08-24 13:41:39 +02:00
Compare commits
2 Commits
9e20a25c5d
...
51d1a49abc
Author | SHA1 | Date | |
---|---|---|---|
|
51d1a49abc | ||
|
dda00f63e6 |
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -313,12 +313,13 @@ jobs:
|
|||||||
path: npm
|
path: npm
|
||||||
- name: Create npm workspace tarball
|
- name: Create npm workspace tarball
|
||||||
run: tar -vcaf npm-workspace.tar.xz --directory npm --exclude=from-local-build.js .
|
run: tar -vcaf npm-workspace.tar.xz --directory npm --exclude=from-local-build.js .
|
||||||
- name: Parse semver for tag
|
- uses: actions/setup-node@v4
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
uses: madhead/semver-utils@v4
|
|
||||||
id: semver
|
|
||||||
with:
|
with:
|
||||||
version: ${{ github.ref_name }}
|
node-version: "24"
|
||||||
|
- name: Create release notes
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
run: npm run package-release-notes
|
||||||
- name: Create GitHub release for tag
|
- name: Create GitHub release for tag
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
@ -327,4 +328,4 @@ jobs:
|
|||||||
artifactContentType: application/x-xz
|
artifactContentType: application/x-xz
|
||||||
prerelease: ${{ contains(github.ref, '-rc') }}
|
prerelease: ${{ contains(github.ref, '-rc') }}
|
||||||
makeLatest: ${{ !contains(github.ref, '-rc') }}
|
makeLatest: ${{ !contains(github.ref, '-rc') }}
|
||||||
bodyFile: "docs/src/content/docs/changelog/v${{ steps.semver.outputs.major }}.${{ steps.semver.outputs.minor }}.${{ steps.semver.outputs.patch }}.md"
|
bodyFile: release-notes.md
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,3 +16,4 @@ package-lock.json
|
|||||||
.firebase
|
.firebase
|
||||||
.astro
|
.astro
|
||||||
docs/dist
|
docs/dist
|
||||||
|
release-notes.md
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-darwin-arm64",
|
"name": "@img/sharp-darwin-arm64",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with macOS 64-bit ARM",
|
"description": "Prebuilt sharp for use with macOS 64-bit ARM",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-darwin-x64",
|
"name": "@img/sharp-darwin-x64",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with macOS x64",
|
"description": "Prebuilt sharp for use with macOS x64",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-linux-arm",
|
"name": "@img/sharp-linux-arm",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with Linux (glibc) ARM (32-bit)",
|
"description": "Prebuilt sharp for use with Linux (glibc) ARM (32-bit)",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-linux-arm64",
|
"name": "@img/sharp-linux-arm64",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with Linux (glibc) 64-bit ARM",
|
"description": "Prebuilt sharp for use with Linux (glibc) 64-bit ARM",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-linux-ppc64",
|
"name": "@img/sharp-linux-ppc64",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with Linux (glibc) ppc64",
|
"description": "Prebuilt sharp for use with Linux (glibc) ppc64",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-linux-s390x",
|
"name": "@img/sharp-linux-s390x",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with Linux (glibc) s390x",
|
"description": "Prebuilt sharp for use with Linux (glibc) s390x",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-linux-x64",
|
"name": "@img/sharp-linux-x64",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with Linux (glibc) x64",
|
"description": "Prebuilt sharp for use with Linux (glibc) x64",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-linuxmusl-arm64",
|
"name": "@img/sharp-linuxmusl-arm64",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with Linux (musl) 64-bit ARM",
|
"description": "Prebuilt sharp for use with Linux (musl) 64-bit ARM",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-linuxmusl-x64",
|
"name": "@img/sharp-linuxmusl-x64",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with Linux (musl) x64",
|
"description": "Prebuilt sharp for use with Linux (musl) x64",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp",
|
"name": "@img/sharp",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"private": "true",
|
"private": "true",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"darwin-arm64",
|
"darwin-arm64",
|
||||||
|
9
npm/release-notes.js
Normal file
9
npm/release-notes.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
const { readFileSync, writeFileSync } = require('node:fs');
|
||||||
|
|
||||||
|
const { version } = require('./package.json');
|
||||||
|
const versionWithoutPreRelease = version.replace(/-rc\.\d+$/, '');
|
||||||
|
|
||||||
|
const markdown = readFileSync(`./docs/src/content/docs/changelog/v${versionWithoutPreRelease}.md`, 'utf8');
|
||||||
|
const markdownWithoutFrontmatter = markdown.replace(/---\n.*?\n---\n+/s, '');
|
||||||
|
|
||||||
|
writeFileSync('./release-notes.md', markdownWithoutFrontmatter);
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-wasm32",
|
"name": "@img/sharp-wasm32",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with wasm32",
|
"description": "Prebuilt sharp for use with wasm32",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-win32-arm64",
|
"name": "@img/sharp-win32-arm64",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with Windows 64-bit ARM",
|
"description": "Prebuilt sharp for use with Windows 64-bit ARM",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-win32-ia32",
|
"name": "@img/sharp-win32-ia32",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with Windows x86 (32-bit)",
|
"description": "Prebuilt sharp for use with Windows x86 (32-bit)",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@img/sharp-win32-x64",
|
"name": "@img/sharp-win32-x64",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"description": "Prebuilt sharp for use with Windows x64",
|
"description": "Prebuilt sharp for use with Windows x64",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
|
29
package.json
29
package.json
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "sharp",
|
"name": "sharp",
|
||||||
"description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",
|
"description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",
|
||||||
"version": "0.34.4-rc.0",
|
"version": "0.34.4-rc.1",
|
||||||
"author": "Lovell Fuller <npm@lovell.info>",
|
"author": "Lovell Fuller <npm@lovell.info>",
|
||||||
"homepage": "https://sharp.pixelplumbing.com",
|
"homepage": "https://sharp.pixelplumbing.com",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
@ -101,6 +101,7 @@
|
|||||||
"test-leak": "./test/leak/leak.sh",
|
"test-leak": "./test/leak/leak.sh",
|
||||||
"test-types": "tsd",
|
"test-types": "tsd",
|
||||||
"package-from-local-build": "node npm/from-local-build.js",
|
"package-from-local-build": "node npm/from-local-build.js",
|
||||||
|
"package-release-notes": "node npm/release-notes.js",
|
||||||
"docs-build": "node docs/build.mjs",
|
"docs-build": "node docs/build.mjs",
|
||||||
"docs-serve": "cd docs && npm start",
|
"docs-serve": "cd docs && npm start",
|
||||||
"docs-publish": "cd docs && npm run build && npx firebase-tools deploy --project pixelplumbing --only hosting:pixelplumbing-sharp"
|
"docs-publish": "cd docs && npm run build && npx firebase-tools deploy --project pixelplumbing --only hosting:pixelplumbing-sharp"
|
||||||
@ -141,8 +142,8 @@
|
|||||||
"semver": "^7.7.2"
|
"semver": "^7.7.2"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@img/sharp-darwin-arm64": "0.34.4-rc.0",
|
"@img/sharp-darwin-arm64": "0.34.4-rc.1",
|
||||||
"@img/sharp-darwin-x64": "0.34.4-rc.0",
|
"@img/sharp-darwin-x64": "0.34.4-rc.1",
|
||||||
"@img/sharp-libvips-darwin-arm64": "1.2.1",
|
"@img/sharp-libvips-darwin-arm64": "1.2.1",
|
||||||
"@img/sharp-libvips-darwin-x64": "1.2.1",
|
"@img/sharp-libvips-darwin-x64": "1.2.1",
|
||||||
"@img/sharp-libvips-linux-arm": "1.2.1",
|
"@img/sharp-libvips-linux-arm": "1.2.1",
|
||||||
@ -152,17 +153,17 @@
|
|||||||
"@img/sharp-libvips-linux-x64": "1.2.1",
|
"@img/sharp-libvips-linux-x64": "1.2.1",
|
||||||
"@img/sharp-libvips-linuxmusl-arm64": "1.2.1",
|
"@img/sharp-libvips-linuxmusl-arm64": "1.2.1",
|
||||||
"@img/sharp-libvips-linuxmusl-x64": "1.2.1",
|
"@img/sharp-libvips-linuxmusl-x64": "1.2.1",
|
||||||
"@img/sharp-linux-arm": "0.34.4-rc.0",
|
"@img/sharp-linux-arm": "0.34.4-rc.1",
|
||||||
"@img/sharp-linux-arm64": "0.34.4-rc.0",
|
"@img/sharp-linux-arm64": "0.34.4-rc.1",
|
||||||
"@img/sharp-linux-ppc64": "0.34.4-rc.0",
|
"@img/sharp-linux-ppc64": "0.34.4-rc.1",
|
||||||
"@img/sharp-linux-s390x": "0.34.4-rc.0",
|
"@img/sharp-linux-s390x": "0.34.4-rc.1",
|
||||||
"@img/sharp-linux-x64": "0.34.4-rc.0",
|
"@img/sharp-linux-x64": "0.34.4-rc.1",
|
||||||
"@img/sharp-linuxmusl-arm64": "0.34.4-rc.0",
|
"@img/sharp-linuxmusl-arm64": "0.34.4-rc.1",
|
||||||
"@img/sharp-linuxmusl-x64": "0.34.4-rc.0",
|
"@img/sharp-linuxmusl-x64": "0.34.4-rc.1",
|
||||||
"@img/sharp-wasm32": "0.34.4-rc.0",
|
"@img/sharp-wasm32": "0.34.4-rc.1",
|
||||||
"@img/sharp-win32-arm64": "0.34.4-rc.0",
|
"@img/sharp-win32-arm64": "0.34.4-rc.1",
|
||||||
"@img/sharp-win32-ia32": "0.34.4-rc.0",
|
"@img/sharp-win32-ia32": "0.34.4-rc.1",
|
||||||
"@img/sharp-win32-x64": "0.34.4-rc.0"
|
"@img/sharp-win32-x64": "0.34.4-rc.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@emnapi/runtime": "^1.4.5",
|
"@emnapi/runtime": "^1.4.5",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user