Skip to content

Commit bcc726f

Browse files
silverwindclaude
andcommitted
Update dependencies
- Replace toMatchInlineSnapshot with toEqual for concurrency safety - Update pnpm/action-setup to v5 - Update eslint to 10.x, vite to 8.x, vitest to 4.1.x and other deps Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
1 parent db7c679 commit bcc726f

5 files changed

Lines changed: 736 additions & 1113 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{matrix.os}}
1515
steps:
1616
- uses: actions/checkout@v6
17-
- uses: pnpm/action-setup@v4
17+
- uses: pnpm/action-setup@v5
1818
- uses: actions/setup-node@v6
1919
with:
2020
cache: pnpm

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
id-token: write
1717
steps:
1818
- uses: actions/checkout@v6
19-
- uses: pnpm/action-setup@v4
19+
- uses: pnpm/action-setup@v5
2020
- uses: actions/setup-node@v6
2121
with:
2222
cache: pnpm

index.test.ts

Lines changed: 20 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -461,16 +461,16 @@ test("multiline soa", () => {
461461

462462
// The stringifier should output single-line format
463463
const roundtripped = stringifyZone(parseZoned);
464-
expect(roundtripped).toMatchInlineSnapshot(`
465-
"$ORIGIN localhost.
464+
expect(roundtripped).toEqual(`${dedent`
465+
$ORIGIN localhost.
466466
467467
;; SOA Records
468468
@ 86400 IN SOA @ root 1999010100 10800 900 604800 86400
469469
470470
;; A Records
471471
@ 60 IN A 127.0.0.1
472-
"
473-
`);
472+
473+
`}\n`);
474474
});
475475

476476
test("multiline soa with comment on first line", () => {
@@ -574,79 +574,21 @@ test("inoptional", () => {
574574
575575
`}\n`;
576576
const parseZoned = parseZone(str);
577-
expect(parseZoned).toMatchInlineSnapshot(`
578-
{
579-
"records": [
580-
{
581-
"class": "IN",
582-
"comment": null,
583-
"content": "1.2.3.4",
584-
"name": "example.com",
585-
"ttl": 300,
586-
"type": "A",
587-
},
588-
{
589-
"class": "IN",
590-
"comment": null,
591-
"content": "10 mail.example.com.",
592-
"name": "example.com",
593-
"ttl": 600,
594-
"type": "MX",
595-
},
596-
{
597-
"class": "IN",
598-
"comment": null,
599-
"content": "foo.com.",
600-
"name": "example.com",
601-
"ttl": 172800,
602-
"type": "NS",
603-
},
604-
{
605-
"class": "IN",
606-
"comment": null,
607-
"content": "bar.com.",
608-
"name": "example.com",
609-
"ttl": 172800,
610-
"type": "NS",
611-
},
612-
{
613-
"class": "IN",
614-
"comment": null,
615-
"content": ""test"",
616-
"name": "example.com",
617-
"ttl": 300,
618-
"type": "TXT",
619-
},
620-
{
621-
"class": "IN",
622-
"comment": null,
623-
"content": "foo.com.",
624-
"name": "_dmarc.example.com",
625-
"ttl": 300,
626-
"type": "CNAME",
627-
},
628-
{
629-
"class": "IN",
630-
"comment": null,
631-
"content": "0 0 5060 sip.foo.com.",
632-
"name": "_sip._tcp.example.com",
633-
"ttl": 600,
634-
"type": "SRV",
635-
},
636-
{
637-
"class": "IN",
638-
"comment": null,
639-
"content": "0 0 5061 sips.foo.com.",
640-
"name": "_sips._tcp.example.com",
641-
"ttl": 600,
642-
"type": "SRV",
643-
},
644-
],
645-
}
646-
`);
577+
expect(parseZoned).toEqual({
578+
records: [
579+
{class: "IN", comment: null, content: "1.2.3.4", name: "example.com", ttl: 300, type: "A"},
580+
{class: "IN", comment: null, content: "10 mail.example.com.", name: "example.com", ttl: 600, type: "MX"},
581+
{class: "IN", comment: null, content: "foo.com.", name: "example.com", ttl: 172800, type: "NS"},
582+
{class: "IN", comment: null, content: "bar.com.", name: "example.com", ttl: 172800, type: "NS"},
583+
{class: "IN", comment: null, content: `"test"`, name: "example.com", ttl: 300, type: "TXT"},
584+
{class: "IN", comment: null, content: "foo.com.", name: "_dmarc.example.com", ttl: 300, type: "CNAME"},
585+
{class: "IN", comment: null, content: "0 0 5060 sip.foo.com.", name: "_sip._tcp.example.com", ttl: 600, type: "SRV"},
586+
{class: "IN", comment: null, content: "0 0 5061 sips.foo.com.", name: "_sips._tcp.example.com", ttl: 600, type: "SRV"},
587+
],
588+
});
647589
const roundtripped = stringifyZone(parseZoned);
648-
expect(roundtripped).toMatchInlineSnapshot(`
649-
";; A Records
590+
expect(roundtripped).toEqual(`${dedent`
591+
;; A Records
650592
example.com. 300 IN A 1.2.3.4
651593
652594
;; CNAME Records
@@ -665,6 +607,6 @@ test("inoptional", () => {
665607
666608
;; TXT Records
667609
example.com. 300 IN TXT "test"
668-
"
669-
`);
610+
611+
`}\n`);
670612
});

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@
1414
"dist"
1515
],
1616
"devDependencies": {
17-
"@types/node": "25.3.5",
18-
"@typescript/native-preview": "7.0.0-dev.20260306.1",
17+
"@types/node": "25.5.0",
18+
"@typescript/native-preview": "7.0.0-dev.20260324.1",
1919
"dedent": "1.7.2",
20-
"eslint": "9.39.3",
21-
"eslint-config-silverwind": "122.0.6",
20+
"eslint": "10.1.0",
21+
"eslint-config-silverwind": "127.1.4",
2222
"jest-extended": "7.0.0",
23-
"tsdown": "0.21.0",
24-
"tsdown-config-silverwind": "2.0.0",
23+
"tsdown": "0.21.4",
24+
"tsdown-config-silverwind": "2.0.2",
2525
"typescript": "5.9.3",
26-
"typescript-config-silverwind": "15.0.0",
27-
"updates": "17.8.2",
28-
"updates-config-silverwind": "1.0.3",
29-
"versions": "14.2.1",
30-
"vite": "7.3.1",
31-
"vite-config-silverwind": "6.0.11",
32-
"vitest": "4.0.18",
33-
"vitest-config-silverwind": "10.6.3"
26+
"typescript-config-silverwind": "16.1.0",
27+
"updates": "17.11.2",
28+
"updates-config-silverwind": "2.0.1",
29+
"versions": "14.2.4",
30+
"vite": "8.0.2",
31+
"vite-config-silverwind": "7.0.1",
32+
"vitest": "4.1.1",
33+
"vitest-config-silverwind": "11.0.0"
3434
},
35-
"packageManager": "pnpm@10.30.3"
35+
"packageManager": "pnpm@10.33.0"
3636
}

0 commit comments

Comments
 (0)