node-diff3
Advanced tools
| # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
| name: build | ||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
| branches: [ main ] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node-version: [10.x, 12.x, 14.x, 16.x] | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v1 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| - run: npm install | ||
| - run: npm run test |
+8
-0
@@ -19,2 +19,10 @@ # What's New | ||
| --> | ||
| ## 2.1.1 | ||
| ##### 2021-apr-26 | ||
| * ([#42]) Fix typo and add TypeScript definition for `patch` | ||
| [#42]: https://github.com/bhousel/node-diff3/issues/42 | ||
| ## 2.1.0 | ||
@@ -21,0 +29,0 @@ ##### 2020-jul-17 |
+2
-0
@@ -70,2 +70,4 @@ export interface ILCSResult { | ||
| export function patch<T>(buffer: T[], patch: IPatchRes<T>[]): Buffer<T>[]; | ||
| export interface IStableRegion<T> { | ||
@@ -72,0 +74,0 @@ stable: true; |
+10
-4
| { | ||
| "name": "node-diff3", | ||
| "version": "2.1.0", | ||
| "version": "2.1.1", | ||
| "license": "MIT", | ||
| "repository": "bhousel/node-diff3", | ||
| "description": "A node.js module for text diffing and three-way-merge.", | ||
| "keywords": ["diff", "diff3", "merge"], | ||
| "keywords": [ | ||
| "diff", | ||
| "diff3", | ||
| "merge", | ||
| "nodejs", | ||
| "javascript" | ||
| ], | ||
| "contributors": [ | ||
@@ -20,3 +26,3 @@ "Bryan Housel <bhousel@gmail.com> (https://github.com/bhousel)" | ||
| "rollup": "^2.0.6", | ||
| "tap": "^14.10.6" | ||
| "tap": "^15.0.1" | ||
| }, | ||
@@ -29,3 +35,3 @@ "scripts": { | ||
| "lint": "eslint index.mjs test/*.js", | ||
| "test": "npm run lint && npm run build && tap --reporter terse --cov test/*.js" | ||
| "test": "npm run lint && npm run build && tap --reporter terse --no-check-coverage test/*.js" | ||
| }, | ||
@@ -32,0 +38,0 @@ "engines": { |
+2
-2
@@ -0,3 +1,3 @@ | ||
| [](https://github.com/bhousel/node-diff3/actions?query=workflow%3A%22build%22) | ||
| [](https://badge.fury.io/js/node-diff3) | ||
| [](https://travis-ci.org/bhousel/node-diff3) | ||
@@ -252,3 +252,3 @@ # node-diff3 | ||
| Strips some extra information from the patch, returning a new patch without modifying the original. | ||
| The "stripped" patch can still patch `buffer1` -> `buffer2`, but can no londer be inverted. | ||
| The "stripped" patch can still patch `buffer1` -> `buffer2`, but can no longer be inverted. | ||
@@ -255,0 +255,0 @@ See examples: https://github.com/bhousel/node-diff3/blob/main/test/diffPatch.test.js |
67416
1.53%11
10%1550
0.06%