v-code-diff
Advanced tools
Comparing version
{ | ||
"name": "v-code-diff", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0", | ||
"description": "template component for vue-demi, can dev and build", | ||
@@ -32,3 +32,3 @@ "main": "dist/index.cjs", | ||
"prepublishOnly": "npm run build", | ||
"release": "bumpp --no-commit --no-push --no-tag --preid alpha && npm publish --tag alpha" | ||
"release": "bumpp --commit --no-push --tag && npm publish" | ||
}, | ||
@@ -35,0 +35,0 @@ "author": "Shimada666<649940882@qq.com>", |
@@ -64,3 +64,3 @@ # v-code-diff | ||
```ts | ||
import { createApp } from 'vue' | ||
import {createApp} from 'vue' | ||
import CodeDiff from 'v-code-diff' | ||
@@ -81,4 +81,3 @@ | ||
:new-string="'3456'" | ||
file-name="test.txt" | ||
output-format="side-by-side" /> | ||
output-format="side-by-side"/> | ||
</template> | ||
@@ -93,3 +92,3 @@ ``` | ||
#### 注册为全局组件 | ||
#### Register globally | ||
@@ -156,10 +155,12 @@ ```ts | ||
In the 1.x version, language recognition and highlighting will no longer be automatically performed, you need to | ||
manually specify the language type, such as language="python", if not specified, it will default to plaintext | ||
and will not be highlighted. | ||
In the 1.x version, due to the fact that rendering and highlighting are performed at the same time, the component events | ||
have been removed. | ||
In the 1.x version, the following component properties (Prop) have been removed: | ||
highlight | ||
drawFileList | ||
* In the 1.x version, language recognition and highlighting will no longer be automatically performed, you need to | ||
manually specify the language type, such as language="python", if not specified, it will default to plaintext | ||
and will not be highlighted. | ||
* In the 1.x version, due to the fact that rendering and highlighting are performed at the same time, the component | ||
events | ||
have been removed. | ||
* In the 1.x version, the following component properties (Prop) have been removed: | ||
* highlight | ||
* drawFileList | ||
Below is a detailed comparison of the two versions, you can refer to it to complete the migration. | ||
@@ -172,6 +173,6 @@ | ||
| Event Name | Description | | ||
|---------------|---------------------| | ||
| before-render | No longer available | | ||
| after-render | No longer available | | ||
| Event Name | Change Status | | ||
|---------------|--------------------| | ||
| before-render | No longer provided | | ||
| after-render | No longer provided | | ||
@@ -178,0 +179,0 @@ ### The difference of prop. |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4
-20%295
0.34%0
-100%684298
-0.01%