@zhin.js/plugin-link-poster 1.1.7 → 1.1.9

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/README.md +4 -10
  2. package/package.json +8 -9
package/README.md CHANGED
@@ -5,24 +5,18 @@ Zhin.js plugin for link-poster functionality.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- pnpm add @zhin.js/plugin-link-poster
8
+ pnpm exec zhin install @zhin.js/plugin-link-poster
9
9
  ```
10
10
 
11
11
  ## Usage
12
12
 
13
- Add the plugin to your `zhin.config.yml`:
13
+ Run the installation command from your application directory. It installs the package and mounts the `link-poster` instance in `package.json#zhin.plugins`. The corresponding `zhin.config.yml` node is:
14
14
 
15
15
  ```yaml
16
16
  plugins:
17
- - @zhin.js/plugin-link-poster
18
- ```
19
-
20
- Or via CLI:
21
-
22
- ```bash
23
- zhin install @zhin.js/plugin-link-poster
17
+ link-poster: {}
24
18
  ```
25
19
 
26
20
  ## Configuration
27
21
 
28
- Configure in `zhin.config.yml` under the plugin's key. Refer to the plugin source for available options.
22
+ This plugin currently has no configuration fields. Its [`schema.json`](./schema.json) accepts an empty object; do not place package names in a `plugins` array.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/plugin-link-poster",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Auto-detect link posters for Zhin.js (Plugin Runtime)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -8,7 +8,6 @@
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./lib/index.d.ts",
11
- "development": "./src/index.ts",
12
11
  "import": "./lib/index.js"
13
12
  },
14
13
  "./package.json": "./package.json"
@@ -40,14 +39,14 @@
40
39
  },
41
40
  "license": "MIT",
42
41
  "dependencies": {
43
- "@zhin.js/core": "1.1.42",
44
- "@zhin.js/html-renderer": "1.1.2",
45
- "@zhin.js/skill": "1.1.4"
42
+ "@zhin.js/core": "1.1.44",
43
+ "@zhin.js/html-renderer": "1.1.3",
44
+ "@zhin.js/skill": "1.1.6"
46
45
  },
47
46
  "devDependencies": {
48
47
  "typescript": "^6.0.3",
49
48
  "vitest": "^4.1.10",
50
- "zhin.js": "1.1.7"
49
+ "zhin.js": "1.1.9"
51
50
  },
52
51
  "repository": {
53
52
  "type": "git",
@@ -59,7 +58,7 @@
59
58
  "registry": "https://registry.npmjs.org"
60
59
  },
61
60
  "engines": {
62
- "node": "^20.19.0 || >=22.12.0"
61
+ "node": ">=22.19.0"
63
62
  },
64
63
  "zhin": {
65
64
  "protocol": 1,
@@ -80,8 +79,8 @@
80
79
  "plugins": []
81
80
  },
82
81
  "peerDependencies": {
83
- "@zhin.js/middleware": "^1.1.4",
84
- "zhin.js": "^1.1.7"
82
+ "@zhin.js/middleware": "^1.1.6",
83
+ "zhin.js": "^1.1.9"
85
84
  },
86
85
  "peerDependenciesMeta": {
87
86
  "@zhin.js/middleware": {