@quartz-community/remove-draft 0.1.0 → 1.0.1

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 (3) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +8 -0
  3. package/package.json +19 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 2c93499: The manifest declares that the plugin needs parsed frontmatter (`quartz.capabilities`): without it, pages marked `draft: true` would be published. Quartz 5.1+ reports this at build time; older versions ignore the field. On Quartz 5.1+ draft removal is built in (`configuration.drafts`); the README explains the migration.
8
+
9
+ ## 1.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - Stable 1.0 release. All `@quartz-community/*` dependencies now use `^1.0.0` ranges.
14
+
15
+ Pre-1.0 caret ranges pinned the minor version (`^0.2.1` means `>=0.2.1 <0.3.0`), so
16
+ published fixes to shared packages could never be resolved by dependents. Moving the
17
+ ecosystem to 1.0 makes caret ranges behave conventionally.
18
+
3
19
  All notable changes to this project will be documented in this file.
4
20
 
5
21
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
package/README.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  Filters out pages with draft: true in their frontmatter.
4
4
 
5
+ > [!IMPORTANT]
6
+ > **Built into Quartz 5.1+.** Draft handling is part of Quartz core now, configured under
7
+ > `configuration.drafts` in `quartz.config.yaml` — you don't need this plugin anymore.
8
+ > Existing config entries for it keep working (Quartz applies their options to the built-in and
9
+ > doesn't load this package); run `npx quartz plugin doctor --fix` to update your config.
10
+ > See [Built-in processing](https://quartz.jzhao.xyz/features/built-in-processing).
11
+ > This package is kept for Quartz versions before 5.1.
12
+
5
13
  ## Installation
6
14
 
7
15
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quartz-community/remove-draft",
3
- "version": "0.1.0",
3
+ "version": "1.0.1",
4
4
  "description": "Filter plugin that removes draft pages from Quartz builds",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -40,10 +40,12 @@
40
40
  "test": "vitest run",
41
41
  "typecheck": "tsc --noEmit",
42
42
  "check": "npm run typecheck && npm run lint && npm run format && npm run test",
43
- "prepublishOnly": "npm run build"
43
+ "prepublishOnly": "npm run build",
44
+ "release": "npm run build && changeset publish",
45
+ "version-packages": "changeset version && npm install --package-lock-only --ignore-scripts --no-audit --no-fund"
44
46
  },
45
47
  "dependencies": {
46
- "@quartz-community/types": "^0.2.1"
48
+ "@quartz-community/types": "^1.0.0"
47
49
  },
48
50
  "devDependencies": {
49
51
  "@types/node": "^24.10.0",
@@ -54,7 +56,8 @@
54
56
  "prettier": "^3.6.2",
55
57
  "tsup": "^8.5.0",
56
58
  "typescript": "^5.9.3",
57
- "vitest": "^2.1.9"
59
+ "vitest": "^2.1.9",
60
+ "@changesets/cli": "^2.29.2"
58
61
  },
59
62
  "quartz": {
60
63
  "name": "remove-draft",
@@ -65,7 +68,18 @@
65
68
  "dependencies": [],
66
69
  "defaultOrder": 50,
67
70
  "defaultEnabled": true,
68
- "defaultOptions": {}
71
+ "defaultOptions": {},
72
+ "capabilities": {
73
+ "requires": {
74
+ "data": [
75
+ {
76
+ "name": "frontmatter",
77
+ "from": "note-properties",
78
+ "reason": "frontmatter is not parsed, so pages marked `draft: true` ARE PUBLISHED"
79
+ }
80
+ ]
81
+ }
82
+ }
69
83
  },
70
84
  "engines": {
71
85
  "node": ">=22",