Skip to content

Commit

Permalink
v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Nov 8, 2024
1 parent 4047a4f commit 220b8bd
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 50 deletions.
4 changes: 2 additions & 2 deletions csv.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Plugin, Config, Options, Lex } from '@jsonic/jsonic-next';
import { Plugin, Config, Options, Lex } from 'jsonic';
type CsvOptions = {
trim: boolean | null;
comment: boolean | null;
Expand All @@ -25,6 +25,6 @@ type CsvOptions = {
};
};
declare const Csv: Plugin;
declare function buildCsvStringMatcher(csvopts: CsvOptions): (cfg: Config, _opts: Options) => (lex: Lex) => import("@jsonic/jsonic-next").Token | undefined;
declare function buildCsvStringMatcher(csvopts: CsvOptions): (cfg: Config, _opts: Options) => (lex: Lex) => import("jsonic").Token | undefined;
export { Csv, buildCsvStringMatcher };
export type { CsvOptions };
2 changes: 1 addition & 1 deletion csv.js

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

2 changes: 1 addition & 1 deletion csv.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions csv.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2021-2022 Richard Rodger, MIT License */
/* Copyright (c) 2021-2024 Richard Rodger, MIT License */

Check failure on line 1 in csv.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 14.x)

Cannot find module 'jsonic' or its corresponding type declarations.

Check failure on line 1 in csv.ts

View workflow job for this annotation

GitHub Actions / build (windows-latest, 14.x)

Cannot find module 'jsonic' or its corresponding type declarations.

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

// See defaults below for commentary.
type CsvOptions = {
Expand Down
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonic/csv",
"version": "0.6.1",
"version": "0.7.0",
"description": "This plugin allows the [Jsonic](https://jsonic.senecajs.org) JSON parser to support csv syntax.",
"main": "csv.js",
"type": "commonjs",
Expand All @@ -25,7 +25,7 @@
"test-watch": "jest --coverage --watchAll",
"watch": "tsc -w -d",
"doc": "jsonic-doc",
"build": "tsc -d && cp csv.js csv.min.js && browserify -o csv.min.js -e csv.js -s @JsonicCsv -im -i assert -p tinyify",
"build": "tsc -d",
"prettier": "prettier --write --no-semi --single-quote *.ts test/*.js",
"clean": "rm -rf node_modules yarn.lock package-lock.json",
"reset": "npm run clean && npm i && npm run build && npm test",
Expand All @@ -43,17 +43,14 @@
"devDependencies": {
"@jsonic/doc": "^0.0.9",
"@types/jest": "^29.5.14",
"browserify": "^17.0.1",
"csv-spectrum": "^2.0.0",
"es-jest": "^2.1.0",
"esbuild": "^0.24.0",
"jest": "^29.7.0",
"prettier": "^3.3.3",
"tinyify": "^4.0.0",
"typescript": "^5.6.3",
"@jsonic/jsonic-next": ">=2.14.0"
"typescript": "^5.6.3"
},
"peerDependencies": {
"@jsonic/jsonic-next": ">=2.14.0"
"jsonic": ">=2.15.2"
}
}
66 changes: 33 additions & 33 deletions test/csv.test.js

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

2 changes: 1 addition & 1 deletion test/csv.test.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions test/csv.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* Copyright (c) 2021-2022 Richard Rodger and other contributors, MIT License */
/* Copyright (c) 2021-2024 Richard Rodger and other contributors, MIT License */

Check failure on line 1 in test/csv.test.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 14.x)

Cannot find module 'jsonic' or its corresponding type declarations.

Check failure on line 1 in test/csv.test.ts

View workflow job for this annotation

GitHub Actions / build (windows-latest, 14.x)

Cannot find module 'jsonic' or its corresponding type declarations.

import Util from 'util'

import { Jsonic } from '@jsonic/jsonic-next'
import { Jsonic } from 'jsonic'
import { Csv } from '../csv'

const Spectrum = require('csv-spectrum')
Expand Down

0 comments on commit 220b8bd

Please sign in to comment.