Skip to content

Commit 6c87634

Browse files
authored
Node update (#21)
* update: updated minimum node version * build: updated dependencies * refactor: fix type after magick enum change * build: update version to 1.0.0
1 parent 15685a0 commit 6c87634

File tree

7 files changed

+650
-878
lines changed

7 files changed

+650
-878
lines changed

.github/workflows/check-code.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
node: [18, 20, 22, 23]
18+
node: [20, 22, 23]
1919
name: Check Code (Node ${{ matrix.node }})
2020

2121
steps:

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup node
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: 18
20+
node-version: 20
2121
cache: 'npm'
2222
registry-url: 'https://registry.npmjs.org'
2323

UPGRADE.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Upgrade Guide
2+
3+
## v1
4+
5+
### Upgrading from v0.9 to 1.0
6+
7+
- Minimum Node version increased from `v18` to `v20`.

__tests__/utils/getInsetAtGravity.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('getInsetAtGravity', () => {
6363
let result: number | undefined = undefined;
6464

6565
ImageMagick.read(readFileSync(`samples/input/${file}`), (image) => {
66-
result = getInsetAtGravity(image, gravity as number);
66+
result = getInsetAtGravity(image, gravity);
6767
});
6868

6969
expect(result).toEqual(expected);

0 commit comments

Comments
 (0)