🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

v-code-diff

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v-code-diff - npm Package Compare versions

Comparing version

to
1.0.0

4

package.json
{
"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.