Skip to content

Commit 220b8bd

Browse files
committed
v0.7.0
1 parent 4047a4f commit 220b8bd

File tree

8 files changed

+46
-50
lines changed

8 files changed

+46
-50
lines changed

csv.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Plugin, Config, Options, Lex } from '@jsonic/jsonic-next';
1+
import { Plugin, Config, Options, Lex } from 'jsonic';
22
type CsvOptions = {
33
trim: boolean | null;
44
comment: boolean | null;
@@ -25,6 +25,6 @@ type CsvOptions = {
2525
};
2626
};
2727
declare const Csv: Plugin;
28-
declare function buildCsvStringMatcher(csvopts: CsvOptions): (cfg: Config, _opts: Options) => (lex: Lex) => import("@jsonic/jsonic-next").Token | undefined;
28+
declare function buildCsvStringMatcher(csvopts: CsvOptions): (cfg: Config, _opts: Options) => (lex: Lex) => import("jsonic").Token | undefined;
2929
export { Csv, buildCsvStringMatcher };
3030
export type { CsvOptions };

csv.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

csv.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

csv.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2021-2022 Richard Rodger, MIT License */
1+
/* Copyright (c) 2021-2024 Richard Rodger, MIT License */
22

33
// NOTE: Good example of use case for `r` control in open rule, where
44
// close state only gets called on last rule.
@@ -14,8 +14,7 @@ import {
1414
Options,
1515
Lex,
1616
AltSpec,
17-
// EMPTY,
18-
} from '@jsonic/jsonic-next'
17+
} from 'jsonic'
1918

2019
// See defaults below for commentary.
2120
type CsvOptions = {

package.json

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsonic/csv",
3-
"version": "0.6.1",
3+
"version": "0.7.0",
44
"description": "This plugin allows the [Jsonic](https://jsonic.senecajs.org) JSON parser to support csv syntax.",
55
"main": "csv.js",
66
"type": "commonjs",
@@ -25,7 +25,7 @@
2525
"test-watch": "jest --coverage --watchAll",
2626
"watch": "tsc -w -d",
2727
"doc": "jsonic-doc",
28-
"build": "tsc -d && cp csv.js csv.min.js && browserify -o csv.min.js -e csv.js -s @JsonicCsv -im -i assert -p tinyify",
28+
"build": "tsc -d",
2929
"prettier": "prettier --write --no-semi --single-quote *.ts test/*.js",
3030
"clean": "rm -rf node_modules yarn.lock package-lock.json",
3131
"reset": "npm run clean && npm i && npm run build && npm test",
@@ -43,17 +43,14 @@
4343
"devDependencies": {
4444
"@jsonic/doc": "^0.0.9",
4545
"@types/jest": "^29.5.14",
46-
"browserify": "^17.0.1",
4746
"csv-spectrum": "^2.0.0",
4847
"es-jest": "^2.1.0",
4948
"esbuild": "^0.24.0",
5049
"jest": "^29.7.0",
5150
"prettier": "^3.3.3",
52-
"tinyify": "^4.0.0",
53-
"typescript": "^5.6.3",
54-
"@jsonic/jsonic-next": ">=2.14.0"
51+
"typescript": "^5.6.3"
5552
},
5653
"peerDependencies": {
57-
"@jsonic/jsonic-next": ">=2.14.0"
54+
"jsonic": ">=2.15.2"
5855
}
5956
}

test/csv.test.js

+33-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/csv.test.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/csv.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/* Copyright (c) 2021-2022 Richard Rodger and other contributors, MIT License */
1+
/* Copyright (c) 2021-2024 Richard Rodger and other contributors, MIT License */
22

33
import Util from 'util'
44

5-
import { Jsonic } from '@jsonic/jsonic-next'
5+
import { Jsonic } from 'jsonic'
66
import { Csv } from '../csv'
77

88
const Spectrum = require('csv-spectrum')

0 commit comments

Comments
 (0)