WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 04ad071

Browse files
committed
↑ update dependencies
1 parent 1474e54 commit 04ad071

File tree

13 files changed

+131
-144
lines changed

13 files changed

+131
-144
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
1111
- uses: oven-sh/setup-bun@v1
1212

1313
- run: bun install --frozen-lockfile
@@ -21,7 +21,7 @@ jobs:
2121
test-action:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v5
2525

2626
- name: update action.yml to use image from local Dockerfile
2727
run: |
@@ -62,7 +62,7 @@ jobs:
6262
test-action-svg-only:
6363
runs-on: ubuntu-latest
6464
steps:
65-
- uses: actions/checkout@v4
65+
- uses: actions/checkout@v5
6666
- uses: oven-sh/setup-bun@v1
6767

6868
- run: bun install --frozen-lockfile
@@ -105,7 +105,7 @@ jobs:
105105
pages: write
106106
id-token: write
107107
steps:
108-
- uses: actions/checkout@v4
108+
- uses: actions/checkout@v5
109109
- uses: oven-sh/setup-bun@v1
110110

111111
- run: bun install --frozen-lockfile

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ FROM oven/bun:1.2.2-slim
2020

2121
WORKDIR /action-release
2222

23-
RUN bun add canvas@3.1.0 [email protected] --no-lockfile --no-cache
23+
RUN bun add canvas@3.2.0 [email protected] --no-lockfile --no-cache
2424

2525
COPY --from=builder /app/packages/action/dist/ /action-release/
2626

bun.lock

Lines changed: 110 additions & 118 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"repository": "github:platane/snk",
77
"devDependencies": {
88
"@types/bun": "1.2.2",
9-
"prettier": "3.5.1",
10-
"typescript": "5.7.3"
9+
"prettier": "3.6.2",
10+
"typescript": "5.9.3"
1111
},
1212
"workspaces": [
1313
"packages/*"

packages/action/outputsOptions.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ export const parseEntry = (entry: string) => {
2222
const o = JSON.parse(query);
2323

2424
if (Array.isArray(o.color_dots)) o.color_dots = o.color_dots.join(",");
25-
if (Array.isArray(o.dark_color_dots))
26-
o.dark_color_dots = o.dark_color_dots.join(",");
2725

2826
sp = new URLSearchParams(o);
2927
} catch (err) {

packages/action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@snk/types": "1.0.0"
1111
},
1212
"devDependencies": {
13-
"@vercel/ncc": "0.38.3"
13+
"@vercel/ncc": "0.38.4"
1414
},
1515
"scripts": {
1616
"build": "ncc build --external canvas --external gifsicle --out dist ./index.ts"

packages/demo/demo.interactive.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { userContributionToGrid } from "@snk/action/userContributionToGrid";
1313
import { createSvg } from "@snk/svg-creator";
1414
import { createRpcClient } from "./worker-utils";
1515
import type { API as WorkerAPI } from "./demo.interactive.worker";
16-
import { AnimationOptions } from "@snk/gif-creator";
1716
import { basePalettes } from "@snk/action/palettes";
1817

1918
const createForm = ({
@@ -209,7 +208,7 @@ const createViewer = ({
209208

210209
svgString = createSvg(grid0, cells, chain, drawOptions, {
211210
stepDurationMs: 100,
212-
} as AnimationOptions);
211+
});
213212
const svgImageUri = `data:image/*;charset=utf-8;base64,${btoa(svgString)}`;
214213
svgLink.href = svgImageUri;
215214

@@ -243,7 +242,7 @@ const createViewer = ({
243242
const svgLink = document.createElement("a");
244243
let svgString = createSvg(grid0, cells, chain, drawOptions, {
245244
stepDurationMs: 100,
246-
} as AnimationOptions);
245+
});
247246
const svgImageUri = `data:image/*;charset=utf-8;base64,${btoa(svgString)}`;
248247
svgLink.href = svgImageUri;
249248
svgLink.innerText = "github-user-contribution.svg";

packages/demo/demo.svg.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ import { createSvg } from "@snk/svg-creator";
44
import { grid, snake } from "./sample";
55
import { drawOptions } from "./canvas";
66
import { getPathToPose } from "@snk/solver/getPathToPose";
7-
import type { AnimationOptions } from "@snk/gif-creator";
87

98
const chain = getBestRoute(grid, snake);
109
chain.push(...getPathToPose(chain.slice(-1)[0], snake)!);
1110

1211
(async () => {
1312
const svg = await createSvg(grid, null, chain, drawOptions, {
1413
stepDurationMs: 200,
15-
} as AnimationOptions);
14+
});
1615

1716
const container = document.createElement("div");
1817
container.innerHTML = svg;

packages/demo/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"devDependencies": {
1313
"@types/dat.gui": "0.7.13",
1414
"dat.gui": "0.7.9",
15-
"dotenv": "16.4.7",
16-
"html-webpack-plugin": "5.6.3",
17-
"ts-loader": "9.5.2",
15+
"dotenv": "17.2.3",
16+
"html-webpack-plugin": "5.6.5",
17+
"ts-loader": "9.5.4",
1818
"ts-node": "10.9.2",
19-
"webpack": "5.98.0",
19+
"webpack": "5.103.0",
2020
"webpack-cli": "6.0.1",
21-
"webpack-dev-server": "5.2.0"
21+
"webpack-dev-server": "5.2.2"
2222
},
2323
"scripts": {
2424
"build": "webpack",

packages/gif-creator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"@snk/draw": "1.0.0",
66
"@snk/solver": "1.0.0",
77
"@snk/types": "1.0.0",
8-
"canvas": "3.1.0",
8+
"canvas": "3.2.0",
99
"gif-encoder-2": "1.0.5",
1010
"gifsicle": "5.3.0"
1111
},

0 commit comments

Comments
 (0)