Skip to content

Commit

Permalink
Switch to @iarna/toml package with better TOML language features supp…
Browse files Browse the repository at this point in the history
…ort (sveltejs#1509)
  • Loading branch information
jacob-8 authored and andyburke committed May 25, 2021
1 parent f1ea703 commit 1cb58a5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .changeset/bright-sheep-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@sveltejs/adapter-cloudflare-workers': patch
'@sveltejs/adapter-netlify': patch
---

change toml parser to support dotted keys and other language features added after the TOML v0.4.0 spec
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare-workers/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs';
import { execSync } from 'child_process';
import esbuild from 'esbuild';
import toml from 'toml';
import toml from '@iarna/toml';
import { fileURLToPath } from 'url';

export default function () {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"dependencies": {
"esbuild": "^0.11.18",
"toml": "^3.0.0"
"@iarna/toml": "^2.2.5"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-netlify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { appendFileSync, existsSync, readFileSync, writeFileSync } from 'fs';
import { join } from 'path';
import { fileURLToPath } from 'url';
import esbuild from 'esbuild';
import toml from 'toml';
import toml from '@iarna/toml';

export default function () {
/** @type {import('@sveltejs/kit').Adapter} */
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-netlify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"@sveltejs/kit": "workspace:*",
"esbuild": "^0.11.18",
"toml": "^3.0.0"
"@iarna/toml": "^2.2.5"
},
"devDependencies": {
"typescript": "^4.2.4"
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1cb58a5

Please sign in to comment.