Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/silent-singers-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@valtown/codemirror-json-schema": major
---

Upgrade json-schema module, upgrade everything else
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand All @@ -17,25 +16,24 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v7

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v7

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v6
name: Install pnpm
id: pnpm-install
with:
run_install: false
version: 9

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
- uses: actions/cache@v6
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,24 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v7

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v7

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v6
name: Install pnpm
id: pnpm-install
with:
run_install: false
version: 9

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
- uses: actions/cache@v6
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx nano-staged
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
🍽️ Changes

- Removed markdown-it and shiki dependencies, allowing users to plug in their own renderMarkdown method
- Removed `@sagold/json-pointer` dependency (unused)
- Removed unused exports and functions

---

Codemirror 6 extensions that provide full [JSON Schema](https://json-schema.org/) support for `@codemirror/lang-json` & `codemirror-json5` language modes

<a href="https://npmjs.com/codemirror-json-schema">
Expand Down Expand Up @@ -197,7 +205,7 @@ const json5State = EditorState.create({
linter(
json5SchemaLinter({
needsRefresh: handleRefresh,
})
}),
),
hoverTooltip(json5SchemaHover()),
json5Language.data.of({
Expand Down
20 changes: 0 additions & 20 deletions lefthook.yml

This file was deleted.

2 changes: 2 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tools]
node = "latest"
86 changes: 47 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "codemirror-json-schema",
"name": "@valtown/codemirror-json-schema",
"license": "MIT",
"version": "0.8.1",
"description": "Codemirror 6 extensions that provide full JSONSchema support for `@codemirror/lang-json` and `codemirror-json5`",
Expand All @@ -11,6 +11,10 @@
{
"name": "Rikki Schulte",
"url": "https://rikki.dev"
},
{
"name": "Tom MacWright",
"url": "https://macwright.com"
}
],
"keywords": [
Expand All @@ -23,7 +27,7 @@
"editor"
],
"type": "module",
"packageManager": "pnpm@8.6.6",
"packageManager": "pnpm@12.8.1",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"main": "cjs/index.js",
Expand Down Expand Up @@ -57,20 +61,16 @@
"repository": "github:acao/codemirror-json-schema",
"homepage": "https://codemirror-json-schema.netlify.app/",
"dependencies": {
"@sagold/json-pointer": "^5.1.1",
"@shikijs/markdown-it": "^1.22.2",
"best-effort-json-parser": "^1.1.2",
"best-effort-json-parser": "^1.5.1",
"json-schema": "^0.4.0",
"json-schema-library": "^9.3.5",
"loglevel": "^1.9.1",
"markdown-it": "^14.1.0",
"shiki": "^1.22.2",
"yaml": "^2.3.4"
"json-schema-library": "^11.6.2",
"loglevel": "^1.9.2",
"yaml": "^2.9.1"
},
"optionalDependencies": {
"@codemirror/autocomplete": "^6.16.2",
"@codemirror/lang-json": "^6.0.1",
"@codemirror/lang-yaml": "^6.1.1",
"@codemirror/autocomplete": "^6.20.3",
"@codemirror/lang-json": "^6.0.2",
"@codemirror/lang-yaml": "^6.1.3",
"codemirror-json5": "^1.0.3",
"json5": "^2.2.3"
},
Expand All @@ -82,33 +82,34 @@
"@lezer/common": "^1.2.1"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@codemirror/autocomplete": "^6.16.2",
"@codemirror/commands": "^6.6.0",
"@codemirror/language": "^6.10.2",
"@codemirror/lint": "^6.8.0",
"@codemirror/state": "^6.4.1",
"@codemirror/theme-one-dark": "^6.1.2",
"@codemirror/view": "^6.27.0",
"@evilmartians/lefthook": "^1.4.6",
"@lezer/common": "^1.2.1",
"@types/json-schema": "^7.0.12",
"@types/markdown-it": "^13.0.7",
"@types/node": "^20.4.2",
"@vitest/coverage-v8": "^2.0.5",
"@changesets/changelog-github": "^1.0.1",
"@changesets/cli": "^3.0.3",
"@codemirror/autocomplete": "^6.20.3",
"@codemirror/commands": "^6.11.1",
"@codemirror/language": "^6.12.4",
"@codemirror/lint": "^6.9.7",
"@codemirror/state": "^6.7.6",
"@codemirror/theme-one-dark": "^6.1.3",
"@codemirror/view": "^6.43.13",
"husky": "^9.1.7",
"nano-staged": "^1.0.2",
"@lezer/common": "^1.5.3",
"@types/json-schema": "^7.0.15",
"@types/node": "^26.6.3",
"@vitest/coverage-v8": "^5.0.2",
"codemirror-json5": "^1.0.3",
"happy-dom": "^10.3.2",
"jsdom": "^24.1.1",
"happy-dom": "^20.14.5",
"jsdom": "^30.1.1",
"json5": "^2.2.3",
"prettier": "^3.3.3",
"typedoc": "^0.24.8",
"typedoc-plugin-markdown": "^3.15.3",
"typescript": "^5.5.2",
"vite": "^5.3.1",
"vitest": "^1.6.0",
"vitest-dom": "^0.1.1",
"vite-tsconfig-paths": "^4.3.1"
"knip": "^6.38.0",
"prettier": "^3.9.9",
"typedoc": "^0.28.20",
"typedoc-plugin-markdown": "^4.13.1",
"typescript": "^7.0.2",
"vite": "^8.3.1",
"vite-tsconfig-paths": "^6.1.1",
"vitest": "^5.0.2",
"vitest-dom": "^0.1.1"
},
"scripts": {
"dev": "vite ./dev --port 3000",
Expand All @@ -120,6 +121,13 @@
"release": "pnpm build && changeset publish",
"typedoc": "typedoc --out docs src/index.ts src/json5.ts && pnpm prettier:write docs/**/*",
"prettier:write": "prettier --ignore-path .gitignore --write",
"replace:env": "sh scripts/replace-env.sh"
"replace:env": "sh scripts/replace-env.sh",
"prepare": "husky"
},
"nano-staged": {
"*.{js,ts,jsx,tsx,json,css,html,yml,mdx,md}": "prettier --write"
},
"publishConfig": {
"access": "public"
}
}
Loading