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 f5a0340 commit 4002342
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion hoover.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Plugin, Config, Lex, Point, Token, AltAction } from '@jsonic/jsonic-next';
import { Plugin, Config, Lex, Point, Token, AltAction } from 'jsonic';
type HooverOptions = {
block: {
[name: string]: {
Expand Down
4 changes: 2 additions & 2 deletions hoover.js

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

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hoover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
makePoint,
Token,
AltAction,
} from '@jsonic/jsonic-next'
} from 'jsonic'

type HooverOptions = {
block: {
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonic/hoover",
"version": "0.5.0",
"version": "0.7.0",
"description": "This plugin allows the [Jsonic](https://jsonic.senecajs.org) JSON parser to support string hoovering (unquoted internal spaces).",
"main": "hoover.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 hoover.js hoover.min.js && browserify -o hoover.min.js -e hoover.js -s @JsonicHoover -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 @@ -42,17 +42,14 @@
],
"devDependencies": {
"@jsonic/doc": "^0.0.9",
"@jsonic/jsonic-next": ">=2.14.0",
"@types/jest": "^29.5.14",
"browserify": "^17.0.1",
"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"
},
"peerDependencies": {
"@jsonic/jsonic-next": ">=2.14.0"
"jsonic": ">=2.15.2"
}
}
6 changes: 3 additions & 3 deletions test/hoover.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/hoover.test.js.map

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

2 changes: 1 addition & 1 deletion test/hoover.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Copyright (c) 2021 Richard Rodger and other contributors, MIT License */

Check failure on line 1 in test/hoover.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/hoover.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 { Jsonic } from '@jsonic/jsonic-next'
import { Jsonic } from 'jsonic'
// import { Debug } from '@jsonic/jsonic-next/debug'
import { Hoover } from '../hoover'

Expand Down
4 changes: 2 additions & 2 deletions test/quick.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { Jsonic } = require('@jsonic/jsonic-next')
const { Debug } = require('@jsonic/jsonic-next/debug')
const { Jsonic } = require('jsonic')
const { Debug } = require('jsonic/debug')
const { Hoover } = require('..')

const j = Jsonic.make()
Expand Down

0 comments on commit 4002342

Please sign in to comment.