v-code-diff 1.0.0-alpha.1 → 1.0.0

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 +17 -16
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -61,7 +61,7 @@ pnpm add @vue/composition-api
61
61
  #### Register globally
62
62
 
63
63
  ```ts
64
- import { createApp } from 'vue'
64
+ import {createApp} from 'vue'
65
65
  import CodeDiff from 'v-code-diff'
66
66
 
67
67
  app
@@ -77,8 +77,7 @@ app
77
77
  <code-diff
78
78
  :old-string="'12345'"
79
79
  :new-string="'3456'"
80
- file-name="test.txt"
81
- output-format="side-by-side" />
80
+ output-format="side-by-side"/>
82
81
  </template>
83
82
  ```
84
83
 
@@ -88,7 +87,7 @@ Not recommended, but the relevant capabilities are retained to facilitate migrat
88
87
 
89
88
  ### Vue2
90
89
 
91
- #### 注册为全局组件
90
+ #### Register globally
92
91
 
93
92
  ```ts
94
93
  import Vue from 'vue';
@@ -150,14 +149,16 @@ version. And we will try to align the functions with the 0.x version as much as
150
149
 
151
150
  Key points:
152
151
 
153
- In the 1.x version, language recognition and highlighting will no longer be automatically performed, you need to
154
- manually specify the language type, such as language="python", if not specified, it will default to plaintext
155
- and will not be highlighted.
156
- In the 1.x version, due to the fact that rendering and highlighting are performed at the same time, the component events
157
- have been removed.
158
- In the 1.x version, the following component properties (Prop) have been removed:
159
- highlight
160
- drawFileList
152
+ * In the 1.x version, language recognition and highlighting will no longer be automatically performed, you need to
153
+ manually specify the language type, such as language="python", if not specified, it will default to plaintext
154
+ and will not be highlighted.
155
+ * In the 1.x version, due to the fact that rendering and highlighting are performed at the same time, the component
156
+ events
157
+ have been removed.
158
+ * In the 1.x version, the following component properties (Prop) have been removed:
159
+ * highlight
160
+ * drawFileList
161
+
161
162
  Below is a detailed comparison of the two versions, you can refer to it to complete the migration.
162
163
 
163
164
  ### The difference of event.
@@ -165,10 +166,10 @@ Below is a detailed comparison of the two versions, you can refer to it to compl
165
166
  The component events are no longer provided in the 1.x version as rendering and highlighting are carried out
166
167
  simultaneously.
167
168
 
168
- | Event Name | Description |
169
- |---------------|---------------------|
170
- | before-render | No longer available |
171
- | after-render | No longer available |
169
+ | Event Name | Change Status |
170
+ |---------------|--------------------|
171
+ | before-render | No longer provided |
172
+ | after-render | No longer provided |
172
173
 
173
174
  ### The difference of prop.
174
175
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "v-code-diff",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0",
4
4
  "description": "template component for vue-demi, can dev and build",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.es.js",
@@ -29,7 +29,7 @@
29
29
  "lint:fix": "eslint . --ext .vue,.js,.jsx,.ts,.tsx --fix --ignore-path .gitignore",
30
30
  "postinstall": "node scripts/postinstall.js",
31
31
  "prepublishOnly": "npm run build",
32
- "release": "bumpp --no-commit --no-push --no-tag --preid alpha && npm publish --tag alpha"
32
+ "release": "bumpp --commit --no-push --tag && npm publish"
33
33
  },
34
34
  "author": "Shimada666<649940882@qq.com>",
35
35
  "license": "MIT",