@quartz-community/syntax-highlighting 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/package.json +13 -4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 1.0.2
2
+
3
+ ### Patch Changes
4
+
5
+ - 450ef39: The manifest declares that the plugin provides the code blocks' clipboard button (`quartz.capabilities`), so plugins that use it (e.g. Mermaid controls) can declare the dependency and Quartz 5.1+ can report it when the plugin is off. Older versions ignore the field.
6
+
7
+ ## 1.0.1
8
+
9
+ ### Patch Changes
10
+
11
+ - Add `shiki` to devDependencies so the package can be built from source.
12
+
13
+ `shiki` was declared only as a required peer dependency. Quartz sets
14
+ `legacy-peer-deps=true` in its root `.npmrc`, which npm inherits when the plugin loader
15
+ runs `npm install` inside `.quartz/plugins/`. Peers are then not auto-installed, so
16
+ building this plugin from a `github:` source failed with `Could not resolve "shiki"`.
17
+
18
+ Declaring it as a devDependency guarantees build-time availability. It is pruned by the
19
+ loader afterwards via `npm prune --omit=dev`, and remains a peer for consumers.
20
+
1
21
  # Changelog
2
22
 
3
23
  ## 1.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quartz-community/syntax-highlighting",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Syntax highlighting transformer plugin for Quartz",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -42,7 +42,8 @@
42
42
  "typecheck": "tsc --noEmit",
43
43
  "check": "npm run typecheck && npm run lint && npm run format && npm run test",
44
44
  "prepublishOnly": "npm run build",
45
- "release": "npm run build && changeset publish"
45
+ "release": "npm run build && changeset publish",
46
+ "version-packages": "changeset version && npm install --package-lock-only --ignore-scripts --no-audit --no-fund"
46
47
  },
47
48
  "peerDependencies": {
48
49
  "preact": "^10.0.0",
@@ -60,6 +61,7 @@
60
61
  "@quartz-community/types": "^1.0.0"
61
62
  },
62
63
  "devDependencies": {
64
+ "@changesets/cli": "^2.29.2",
63
65
  "@types/hast": "^3.0.4",
64
66
  "@types/mdast": "^4.0.4",
65
67
  "@types/node": "^24.10.0",
@@ -71,10 +73,10 @@
71
73
  "prettier": "^3.6.2",
72
74
  "rehype-pretty-code": "^0.14.0",
73
75
  "sass": "^1.97.3",
76
+ "shiki": "^4.0.0",
74
77
  "tsup": "^8.5.0",
75
78
  "typescript": "^5.9.3",
76
- "vitest": "^2.1.9",
77
- "@changesets/cli": "^2.29.2"
79
+ "vitest": "^2.1.9"
78
80
  },
79
81
  "engines": {
80
82
  "node": ">=22",
@@ -111,6 +113,13 @@
111
113
  "tokenClassification": {
112
114
  "type": "boolean"
113
115
  }
116
+ },
117
+ "capabilities": {
118
+ "provides": {
119
+ "dom": [
120
+ ".clipboard-button"
121
+ ]
122
+ }
114
123
  }
115
124
  },
116
125
  "publishConfig": {