@zhin.js/plugin-short-url 1.1.3 → 1.1.5

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 CHANGED
@@ -5,24 +5,18 @@ Zhin.js plugin for short-url functionality.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- pnpm add @zhin.js/plugin-short-url
8
+ pnpm exec zhin install @zhin.js/plugin-short-url
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 `short-url` 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-short-url
18
- ```
19
-
20
- Or via CLI:
21
-
22
- ```bash
23
- zhin install @zhin.js/plugin-short-url
17
+ short-url: {}
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 `plugin.ts` declares `config: Schema.object({})`, shared by Runtime validation and Console forms, and 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-short-url",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "URL shortener plugin for Zhin.js — shorten & expand URLs (Plugin Runtime)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -15,7 +15,6 @@
15
15
  },
16
16
  "files": [
17
17
  "plugin.js",
18
- "schema.json",
19
18
  "commands",
20
19
  "src",
21
20
  "lib",
@@ -41,12 +40,12 @@
41
40
  "typescript": "^6.0.3",
42
41
  "vitest": "^4.1.10",
43
42
  "zod": "^4.4.3",
44
- "zhin.js": "1.1.5"
43
+ "zhin.js": "1.1.8"
45
44
  },
46
45
  "peerDependencies": {
47
46
  "zod": "^4.0.0",
48
- "@zhin.js/command": "^1.1.4",
49
- "zhin.js": "^1.1.5"
47
+ "@zhin.js/command": "^1.1.6",
48
+ "zhin.js": "^1.1.8"
50
49
  },
51
50
  "peerDependenciesMeta": {
52
51
  "@zhin.js/command": {
@@ -91,8 +90,8 @@
91
90
  "plugins": []
92
91
  },
93
92
  "dependencies": {
94
- "@zhin.js/tool": "1.1.3",
95
- "@zhin.js/skill": "1.1.3"
93
+ "@zhin.js/tool": "1.1.5",
94
+ "@zhin.js/skill": "1.1.5"
96
95
  },
97
96
  "scripts": {
98
97
  "build": "tsc",
package/plugin.js CHANGED
@@ -1,7 +1,8 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { definePlugin } from 'zhin.js';
2
+ import { definePlugin, Schema } from 'zhin.js';
3
3
  export default definePlugin({
4
4
  name: 'short-url',
5
+ config: Schema.object({}),
5
6
  metadata: {
6
7
  displayName: 'Short URL',
7
8
  },
package/schema.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "additionalProperties": false,
5
- "properties": {}
6
- }