@zumer/snapdom-plugins 4.0.1 → 4.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.
- package/README.md +14 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -17,6 +17,20 @@ npm install @zumer/snapdom@latest @zumer/snapdom-plugins@latest
|
|
|
17
17
|
|
|
18
18
|
Plugins 4.x in this checkout require SnapDOM 3.3.0 or newer within 3.x. The 4.x release replaces pdf-image with the full PDF exporter and adds Vector. Both are MIT-licensed and available on npm in `@zumer/snapdom-plugins` 4.x. The `@latest` command above installs the published release. See the [migration guide](https://github.com/zumerlab/snapdom#migrating-from-v2) when upgrading from v2.
|
|
19
19
|
|
|
20
|
+
## Releasing from the repository root
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
npm run bump:plugins:dry
|
|
24
|
+
npm run bump:plugins
|
|
25
|
+
npm run release:plugins
|
|
26
|
+
npm run publish:plugins -- --dry-run
|
|
27
|
+
npm run publish:plugins
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
`bump:plugins` runs `@zumerbox/bump` followed by `@zumerbox/changelog` inside the plugin workspace, matching the core's tools. The bump command requires a clean Git working tree and prompts for the next version. It updates the plugin version and root lockfile; the changelog command writes `packages/plugins/CHANGELOG.md`. `bump:plugins:dry` previews the bump without updating the version or changelog. Skip the bump if the version has already been prepared.
|
|
31
|
+
|
|
32
|
+
`release:plugins` runs the full cross-browser suite with required visual baselines, the PDF and Vector checks, and consumer packaging checks, then creates the plugin tarball. It does not publish. `publish:plugins` publishes only `@zumer/snapdom-plugins` under the `latest` tag.
|
|
33
|
+
|
|
20
34
|
## Usage
|
|
21
35
|
|
|
22
36
|
Import plugins individually (recommended for tree-shaking):
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zumer/snapdom-plugins",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Official plugins for SnapDOM",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"bump:dry": "npx @zumerbox/bump -d",
|
|
8
|
+
"bump": "npx @zumerbox/bump && npx @zumerbox/changelog"
|
|
9
|
+
},
|
|
6
10
|
"exports": {
|
|
7
11
|
".": "./index.js",
|
|
8
12
|
"./timestamp-overlay": "./timestamp-overlay.js",
|