Skip to content

Commit 06521ca

Browse files
authored
Merge pull request #49 from squirrelchat/toml-110
2 parents 31e61b5 + f3a68a7 commit 06521ca

File tree

13 files changed

+380
-646
lines changed

13 files changed

+380
-646
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
12+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
1313
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
14-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
14+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
1515
with:
1616
node-version: 24
1717
cache: pnpm
1818
- run: pnpm install
1919
- run: pnpm run build
20-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
20+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
2121
with:
2222
name: dist
2323
path: dist
@@ -29,9 +29,9 @@ jobs:
2929
node: [18, 20, 22, 24]
3030
runs-on: ${{ matrix.os }}
3131
steps:
32-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
32+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
3333
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
34-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
34+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
3535
with:
3636
node-version: ${{ matrix.node }}
3737
cache: pnpm
@@ -46,17 +46,17 @@ jobs:
4646
node: [18, 20, 22, 24]
4747
runs-on: ${{ matrix.os }}
4848
steps:
49-
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
49+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
5050
with:
5151
go-version: stable
52-
- run: go install github.com/toml-lang/toml-test/cmd/toml-test@master
52+
- run: go install github.com/toml-lang/toml-test/v2/cmd/toml-test@latest
5353

54-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
55-
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6
54+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
55+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
5656
with:
5757
name: dist
5858
path: dist
59-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
59+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
6060
with:
6161
node-version: ${{ matrix.node }}
6262
- run: ./run-toml-test.bash

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
id-token: write # Required for provenance and Trusted Publishing
1313
contents: read
1414
steps:
15-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
1616
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
17-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
17+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
1818
with:
1919
registry-url: 'https://registry.npmjs.org'
2020
node-version: 24

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# smol-toml
2-
[![TOML 1.0.0](https://img.shields.io/badge/TOML-1.0.0-9c4221?style=flat-square)](https://toml.io/en/v1.0.0)
2+
[![TOML 1.1.0](https://img.shields.io/badge/TOML-1.1.0-9c4221?style=flat-square)](https://toml.io/en/v1.1.0)
33
[![License](https://img.shields.io/github/license/squirrelchat/smol-toml.svg?style=flat-square)](https://github.com/squirrelchat/smol-toml/blob/mistress/LICENSE)
44
[![npm](https://img.shields.io/npm/v/smol-toml?style=flat-square)](https://npm.im/smol-toml)
55
[![Build](https://img.shields.io/github/actions/workflow/status/squirrelchat/smol-toml/build.yaml?style=flat-square&logo=github)](https://github.com/squirrelchat/smol-toml/actions/workflows/build.yaml)
@@ -8,7 +8,7 @@
88
[![Weekly downloads](https://img.shields.io/npm/dw/smol-toml?style=flat-square)](https://npm.im/smol-toml)
99
[![Monthly downloads](https://img.shields.io/npm/dm/smol-toml?style=flat-square)](https://npm.im/smol-toml)
1010

11-
A small, fast, and correct TOML parser and serializer. smol-toml is fully(ish) spec-compliant with TOML v1.0.0.
11+
A small, fast, and correct TOML parser and serializer. smol-toml is fully(ish) spec-compliant with TOML v1.1.0.
1212

1313
Why yet another TOML parser? Well, the ecosystem of TOML parsers in JavaScript is quite underwhelming, most likely due
1414
to a lack of interest. With most parsers being outdated, unmaintained, non-compliant, or a combination of these, a new
@@ -144,8 +144,11 @@ const localTime = TomlDate.wrapAsLocalTime(jsDate)
144144

145145
## Performance
146146
> [!NOTE]
147-
> These benchmarks are starting to get a bit old. They will be updated in the (hopefully near) future to better
148-
> reflect numbers of the latest version of smol-toml on the latest version of Node.js.
147+
> These benchmarks are starting to get quite old and were ran prior to the release of TOML 1.1.0 which changed subtle
148+
> implementation details.
149+
>
150+
> They will be updated in the (hopefully near) future to better reflect numbers of the latest version of smol-toml
151+
> on the latest version of Node.js.
149152
150153
A note on these performance numbers: in some highly synthetic tests, other parsers such as `fast-toml` greatly
151154
outperform other parsers, mostly due to their lack of compliance with the spec. For example, to parse a string,

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"serializer"
1414
],
1515
"type": "module",
16-
"packageManager": "pnpm@10.22.0",
16+
"packageManager": "pnpm@10.26.1",
1717
"engines": {
1818
"node": ">= 18"
1919
},
@@ -29,15 +29,15 @@
2929
"devDependencies": {
3030
"@iarna/toml": "3.0.0",
3131
"@ltd/j-toml": "^1.38.0",
32-
"@tsconfig/node-lts": "^22.0.3",
32+
"@tsconfig/node-lts": "^24.0.0",
3333
"@tsconfig/strictest": "^2.0.8",
34-
"@types/node": "^24.10.1",
35-
"@vitest/ui": "^4.0.8",
36-
"esbuild": "^0.27.0",
34+
"@types/node": "^25.0.3",
35+
"@vitest/ui": "^4.0.16",
36+
"esbuild": "^0.27.2",
3737
"fast-toml": "^0.5.4",
3838
"pin-github-action": "^3.4.0",
3939
"typescript": "^5.9.3",
40-
"vitest": "^4.0.8"
40+
"vitest": "^4.0.16"
4141
},
4242
"main": "./dist/index.cjs",
4343
"module": "./dist/index.js",

0 commit comments

Comments
 (0)