v-code-diff 1.4.0 → 1.5.1

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![NPM version](https://img.shields.io/npm/v/v-code-diff.svg?style=flat)](https://www.npmjs.com/package/v-code-diff)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
- [![Downloads](https://img.shields.io/npm/dt/v-code-diff?minimal=true)](https://www.npmjs.com/package/v-code-diff)
5
+ [![Downloads](https://img.shields.io/npm/dm/v-code-diff?minimal=true)](https://www.npmjs.com/package/v-code-diff)
6
6
 
7
7
  > A code diff display plugin, available for Vue2 / Vue3.
8
8
 
@@ -30,8 +30,6 @@ This project references the following projects, and I would like to express my g
30
30
  - [Props](#Props)
31
31
  - [Extend languages](#extend-languages)
32
32
  - [Migrate from 0.x version](#Migrate-from-0x-version)
33
- - [Changelog](#Changelog)
34
- - [LICENSE](#licence)
35
33
 
36
34
  ## Install
37
35
 
@@ -69,7 +67,7 @@ app
69
67
  .mount('#app')
70
68
  ```
71
69
 
72
- 然后
70
+ then
73
71
 
74
72
  ```vue
75
73
 
@@ -190,110 +188,4 @@ simultaneously.
190
188
  | fileName | File name | To be determined, not under development |
191
189
  | isShowNoChange | Display source code when there is no comparison | Removed as it became the default in version 1.x |
192
190
  | trim | Remove blank characters at the beginning and end of the string | None |
193
- | noDiffLineFeed | Don't diff Windows line feed (CRLF) and Linux line feed (LF) | None |
194
-
195
- ## ChangeLog
196
-
197
- ### 1.0.0-alpha.0
198
-
199
- 1. Remove the diff2html dependency and draw the UI by self. By getting rid of the diff2html dependency, many styling
200
- problems have been resolved.
201
- 2. More accurate syntax highlighting and faster highlighting speed.
202
-
203
- ### 0.3.12
204
-
205
- 1. Remove prop `syncScroll` due to bug. Synchronized scrolling is now enabled by default
206
-
207
- ### 0.3.11
208
-
209
- 1. Add prop `syncScroll` to control whether the horizontal scroll bar needs to be scrolled synchronously
210
-
211
- ### 0.3.10
212
-
213
- 1. Fixed type error when exporting
214
-
215
- ### 0.3.9
216
-
217
- 1. Make the imported highlight.js style take effect only in `.d2h-wrapper` div
218
-
219
- ### 0.3.8
220
-
221
- 1. Style adjustment, hide css `d2h-file-header`, same as vue-code-diff
222
- 2. Add prop `noDiffLineFeed`, do not diff windows line feed (CRLF) and linux line feed (LF)
223
-
224
- ### 0.3.7
225
-
226
- 1. Fix the problem of displaying "File Without Change..." when isShowNoChange is true and the old and new codes are
227
- different,
228
- then show all the source code
229
-
230
- ### 0.3.6
231
-
232
- 1. Add prop `language`, make highlighting more accurate
233
-
234
- ### 0.3.5
235
-
236
- 1. In the side-by-side mode, support left and right synchronous scrolling
237
-
238
- ### 0.3.4
239
-
240
- 1. Add Prop `trim`, it will remove the blank characters before and after the string
241
-
242
- ### 0.3.3
243
-
244
- 1. Fixed the problem of highlight failure.
245
-
246
- ### 0.3.2
247
-
248
- 1. Fixed the warning for vue2 users in console
249
-
250
- ### 0.3.1
251
-
252
- 1. Fix incorrect style when comparing text
253
-
254
- ### 0.3.0
255
-
256
- 1. Performance optimization, now rendering has better performance
257
- 2. Add Prop `diffStyle` to control whether to display word-level differences or char-level differences
258
-
259
- ### 0.2.1
260
-
261
- 1. Use the function of asynchronous rendering of the highlight code, without blocking the ui, greatly improving the page
262
- rendering speed
263
- 2. Add hook function (before rendering, after rendering): `before-render`, `after-render`
264
-
265
- ### 0.1.0
266
-
267
- 1. Add prop `highlight` to control whether to highlight the code.
268
-
269
- ### 0.0.4
270
-
271
- 1. Fix the problem of abnormal rendering in some browsers (such as safari)
272
-
273
- ### 0.0.3
274
-
275
- 1. Prop: `context` default value changed from 5 to 10
276
- 2. fix possible line-height conflict(such as `antd.css` in [antd-vue](https://github.com/vueComponent/ant-design-vue))
277
-
278
- ### 0.0.1
279
-
280
- First Version.
281
-
282
- ## LICENCE
283
-
284
- MIT License
285
-
286
- Copyright (c) 2021 Shimada666
287
-
288
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
289
- documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
290
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
291
- persons to whom the Software is furnished to do so, subject to the following conditions:
292
-
293
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
294
- Software.
295
-
296
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
297
- WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
298
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
299
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
191
+ | noDiffLineFeed | Don't diff Windows line feed (CRLF) and Linux line feed (LF) | None |