@egjs/children-differ
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -7,3 +7,3 @@ /* | ||
repository: https://github.com/naver/egjs-children-differ | ||
version: 0.1.0 | ||
version: 1.0.0 | ||
*/ | ||
@@ -50,2 +50,7 @@ import ListDiffer, { diff as diff$1 } from '@egjs/list-differ'; | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
var findKeyCallback = typeof Map === "function" ? undefined : function () { | ||
@@ -85,2 +90,7 @@ var childrenCount = 0; | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
/** | ||
@@ -128,4 +138,10 @@ * | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
export default ChildrenDiffer; | ||
export { diff }; | ||
//# sourceMappingURL=children-differ.esm.js.map |
@@ -7,3 +7,3 @@ /* | ||
repository: https://github.com/naver/egjs-children-differ | ||
version: 0.1.0 | ||
version: 1.0.0 | ||
*/ | ||
@@ -54,2 +54,7 @@ (function (global, factory) { | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
var findKeyCallback = typeof Map === "function" ? undefined : function () { | ||
@@ -89,2 +94,7 @@ var childrenCount = 0; | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
/** | ||
@@ -132,2 +142,13 @@ * | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
ChildrenDiffer.diff = diff; | ||
@@ -134,0 +155,0 @@ |
@@ -7,5 +7,5 @@ /* | ||
repository: https://github.com/naver/egjs-children-differ | ||
version: 0.1.0 | ||
version: 1.0.0 | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@egjs/list-differ")):"function"==typeof define&&define.amd?define(["@egjs/list-differ"],e):((t=t||self).eg=t.eg||{},t.eg.ChildrenDiffer=e(t.eg.ListDiffer))}(this,function(n){"use strict";var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var e,r="function"==typeof Map?void 0:(e=0,function(t){return t.__DIFF_KEY__||(t.__DIFF_KEY__=++e)}),t=function(e){function t(t){return void 0===t&&(t=[]),e.call(this,t,r)||this}return function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(t,e),t}(n);return t.diff=function(t,e){return n.diff(t,e,r)},t}); | ||
//# sourceMappingURL=children-differ.min.js.map |
@@ -7,3 +7,3 @@ /* | ||
repository: https://github.com/naver/egjs-children-differ | ||
version: 0.1.0 | ||
version: 1.0.0 | ||
*/ | ||
@@ -55,3 +55,3 @@ (function (global, factory) { | ||
/* | ||
Copyright (c) NAVER Corp. | ||
Copyright (c) 2019-present NAVER Corp. | ||
name: @egjs/list-differ | ||
@@ -61,4 +61,10 @@ license: MIT | ||
repository: https://github.com/naver/egjs-list-differ | ||
version: 0.1.0 | ||
version: 1.0.0 | ||
*/ | ||
/* | ||
egjs-list-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
var PolyMap = | ||
@@ -89,3 +95,9 @@ /*#__PURE__*/ | ||
}(); | ||
/* | ||
egjs-list-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
var HashMap = | ||
@@ -110,4 +122,15 @@ /*#__PURE__*/ | ||
}(); | ||
/* | ||
egjs-list-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
var SUPPORT_MAP = typeof Map === "function"; | ||
/* | ||
egjs-list-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
@@ -150,3 +173,9 @@ var Link = | ||
}(); | ||
/* | ||
egjs-list-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
function orderChanged(changed, fixed) { | ||
@@ -426,2 +455,7 @@ // It is roughly in the order of these examples. | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
var findKeyCallback = typeof Map === "function" ? undefined : function () { | ||
@@ -461,2 +495,7 @@ var childrenCount = 0; | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
/** | ||
@@ -504,2 +543,13 @@ * | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
ChildrenDiffer.diff = diff$1; | ||
@@ -506,0 +556,0 @@ |
@@ -7,5 +7,5 @@ /* | ||
repository: https://github.com/naver/egjs-children-differ | ||
version: 0.1.0 | ||
version: 1.0.0 | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):((t=t||self).eg=t.eg||{},t.eg.ChildrenDiffer=e())}(this,function(){"use strict";var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var _=function(){function t(){this.keys=[],this.values=[]}var e=t.prototype;return e.get=function(t){return this.values[this.keys.indexOf(t)]},e.set=function(t,e){var n=this.keys,r=this.values,i=n.indexOf(t),o=-1===i?n.length:i;n[o]=t,r[o]=e},t}(),b=function(){function t(){this.object={}}var e=t.prototype;return e.get=function(t){return this.object[t]},e.set=function(t,e){this.object[t]=e},t}(),x="function"==typeof Map,i=function(){function t(){}var e=t.prototype;return e.connect=function(t,e){this.prev=t,this.next=e,t&&(t.next=this),e&&(e.prev=this)},e.disconnect=function(){var t=this.prev,e=this.next;t&&(t.next=e),e&&(e.prev=t)},e.getIndex=function(){for(var t=this,e=-1;t;)t=t.prev,++e;return e},t}();var O=function(){function t(t,e,n,r,i,o,c,u){this.prevList=t,this.list=e,this.added=n,this.removed=r,this.changed=i,this.maintained=o,this.changedBeforeAdded=c,this.fixed=u}var e=t.prototype;return Object.defineProperty(e,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),e.caculateOrdered=function(){var t=function(t,n){var u=[],f=[];return t.forEach(function(t){var e=t[0],n=t[1],r=new i;u[e]=r,f[n]=r}),u.forEach(function(t,e){t.connect(u[e-1])}),t.filter(function(t,e){return!n[e]}).map(function(t,e){var n=t[0],r=t[1];if(n===r)return[0,0];var i=u[n],o=f[r-1],c=i.getIndex();return i.disconnect(),o?i.connect(o,o.next):i.connect(void 0,u[0]),[c,i.getIndex()]})}(this.changedBeforeAdded,this.fixed),u=this.changed,f=[];this.cacheOrdered=t.filter(function(t,e){var n=t[0],r=t[1],i=u[e],o=i[0],c=i[1];if(n!==r)return f.push([o,c]),!0}),this.cachePureChanged=f},t}();function o(t,e,n){var r=x?Map:n?b:_,i=n||function(t){return t},o=[],c=[],u=[],f=t.map(i),s=e.map(i),a=new r,h=new r,d=[],p=[],v={},l=[],g=0,y=0;return f.forEach(function(t,e){a.set(t,e)}),s.forEach(function(t,e){h.set(t,e)}),f.forEach(function(t,e){var n=h.get(t);void 0===n?(++y,c.push(e)):v[n]=y}),s.forEach(function(t,e){var n=a.get(t);void 0===n?(o.push(e),++g):(u.push([n,e]),y=v[e]||0,d.push([n-y,e-g]),p.push(e===n),n!==e&&l.push([n,e]))}),c.reverse(),new O(t,e,o,c,l,u,d,p)}var e,n="function"==typeof Map?void 0:(e=0,function(t){return t.__DIFF_KEY__||(t.__DIFF_KEY__=++e)}),t=function(e){function t(t){return void 0===t&&(t=[]),e.call(this,t,n)||this}return function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(t,e),t}(function(){function t(t,e){void 0===t&&(t=[]),this.findKeyCallback=e,this.list=[].slice.call(t)}return t.prototype.update=function(t){var e=[].slice.call(t),n=o(this.list,e,this.findKeyCallback);return this.list=e,n},t}());return t.diff=function(t,e){return o(t,e,n)},t}); | ||
//# sourceMappingURL=children-differ.pkgd.min.js.map |
131
package.json
{ | ||
"name": "@egjs/children-differ", | ||
"version": "0.1.0", | ||
"description": "A module that checks diff when child elements are added, removed, or changed", | ||
"main": "./dist/children-differ.js", | ||
"module": "./dist/children-differ.esm.js", | ||
"types": "./declaration/index.d.ts", | ||
"es2015": "./dist/children-differ.esm.js", | ||
"sideEffects": false, | ||
"scripts": { | ||
"start": "rollup -c -w", | ||
"test": "jest --watchAll", | ||
"coverage": "jest --coverage && print-coveralls --sort=desc", | ||
"coveralls": "cat ./coverage/lcov.info | coveralls", | ||
"build": "rm -rf ./dist ./declaration && rollup -c && npm run declaration && npm run printsizes", | ||
"declaration": "rm -rf declaration && tsc -p tsconfig.declaration.json", | ||
"printsizes": "print-sizes ./dist --exclude=\\.map", | ||
"lint": "tslint -c tslint.json 'src/**/*.ts'", | ||
"jsdoc": "rm -rf ./doc && jsdoc -c jsdoc.json", | ||
"demo:build": "npm run build && cpx 'dist/**/*' demo/release/latest/dist --clean", | ||
"demo:prebuild-version": "cpx 'dist/**/*' demo/release/$npm_package_version/dist --clean && cpx 'doc/**/*' demo/release/$npm_package_version/doc --clean", | ||
"demo:prebuild-latest": "cpx 'dist/**/*' demo/release/latest/dist --clean && cpx 'doc/**/*' demo/release/latest/doc --clean", | ||
"demo:deploy-init": "npm run build && npm run jsdoc && npm run demo:prebuild-version && npm run demo:prebuild-latest && gh-pages -d demo/ --remote upstream", | ||
"demo:deploy": "npm run build && npm run jsdoc && npm run demo:prebuild-version && npm run demo:prebuild-latest && gh-pages -d demo/ --add --remote upstream", | ||
"release": "release-helper oss" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/naver/egjs-children-differ" | ||
}, | ||
"author": { | ||
"name": "NAVER Corp." | ||
}, | ||
"namespace": { | ||
"eg": "eg" | ||
}, | ||
"keywords": [ | ||
"diff", | ||
"arr", | ||
"list", | ||
"children", | ||
"dom", | ||
"differ", | ||
"data" | ||
], | ||
"license": "MIT", | ||
"dependencies": { | ||
"@egjs/list-differ": "^0.1.0" | ||
}, | ||
"devDependencies": { | ||
"@daybrush/jsdoc": "^0.3.7", | ||
"@egjs/build-helper": "0.0.4", | ||
"@egjs/release-helper": "^0.0.3", | ||
"@types/jest": "^24.0.11", | ||
"@types/sinon": "^7.0.11", | ||
"coveralls": "^3.0.3", | ||
"cpx": "^1.5.0", | ||
"egjs-jsdoc-template": "^1.4.4", | ||
"jest": "^24.7.1", | ||
"print-coveralls": "^1.2.2", | ||
"print-sizes": "0.0.4", | ||
"sinon": "^7.3.1", | ||
"ts-jest": "^24.0.1", | ||
"tslint": "^5.15.0", | ||
"typescript": "^3.4.1" | ||
} | ||
"name": "@egjs/children-differ", | ||
"version": "1.0.0", | ||
"description": "A module that checks diff when child elements are added, removed, or changed", | ||
"main": "./dist/children-differ.js", | ||
"module": "./dist/children-differ.esm.js", | ||
"types": "./declaration/index.d.ts", | ||
"es2015": "./dist/children-differ.esm.js", | ||
"sideEffects": false, | ||
"scripts": { | ||
"start": "rollup -c -w", | ||
"test": "jest --watchAll", | ||
"coverage": "jest --coverage && print-coveralls --sort=desc", | ||
"coveralls": "cat ./coverage/lcov.info | coveralls", | ||
"build": "rm -rf ./dist ./declaration && rollup -c && npm run declaration && npm run printsizes", | ||
"declaration": "rm -rf declaration && tsc -p tsconfig.declaration.json", | ||
"printsizes": "print-sizes ./dist --exclude=\\.map", | ||
"lint": "tslint -c tslint.json 'src/**/*.ts'", | ||
"jsdoc": "rm -rf ./doc && jsdoc -c jsdoc.json", | ||
"demo:build": "npm run build && cpx 'dist/**/*' demo/release/latest/dist --clean", | ||
"demo:prebuild-version": "cpx 'dist/**/*' demo/release/$npm_package_version/dist --clean && cpx 'doc/**/*' demo/release/$npm_package_version/doc --clean", | ||
"demo:prebuild-latest": "cpx 'dist/**/*' demo/release/latest/dist --clean && cpx 'doc/**/*' demo/release/latest/doc --clean", | ||
"demo:deploy-init": "npm run build && npm run jsdoc && npm run demo:prebuild-version && npm run demo:prebuild-latest && gh-pages -d demo/ --remote upstream", | ||
"demo:deploy": "npm run build && npm run jsdoc && npm run demo:prebuild-version && npm run demo:prebuild-latest && gh-pages -d demo/ --add --remote upstream", | ||
"release": "release-helper upstream" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/naver/egjs-children-differ" | ||
}, | ||
"author": { | ||
"name": "NAVER Corp." | ||
}, | ||
"namespace": { | ||
"eg": "eg" | ||
}, | ||
"keywords": [ | ||
"diff", | ||
"arr", | ||
"list", | ||
"children", | ||
"dom", | ||
"differ", | ||
"data" | ||
], | ||
"license": "MIT", | ||
"dependencies": { | ||
"@egjs/list-differ": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@daybrush/jsdoc": "^0.3.7", | ||
"@egjs/build-helper": "0.0.4", | ||
"@egjs/release-helper": "^0.0.3", | ||
"@types/jest": "^24.0.11", | ||
"@types/sinon": "^7.0.11", | ||
"coveralls": "^3.0.3", | ||
"cpx": "^1.5.0", | ||
"egjs-jsdoc-template": "^1.4.4", | ||
"gh-pages": "^2.0.1", | ||
"jest": "^24.7.1", | ||
"print-coveralls": "^1.2.2", | ||
"print-sizes": "0.0.4", | ||
"sinon": "^7.3.1", | ||
"ts-jest": "^24.0.1", | ||
"tslint": "^5.15.0", | ||
"typescript": "^3.4.1" | ||
} | ||
} |
@@ -22,4 +22,4 @@ | ||
* See [**Documentation**](https://naver.github.io/egjs-children-differ/release/latest/doc/index.html) page. | ||
* [Introducing ListDiffer to track changes in data and track changes]()([한국어]()) | ||
* [How to Make Cross Framework Component]()([한국어]()) | ||
* [Introducing ListDiffer to track changes in data and track changes](https://medium.com/naver-fe-platform/introducing-listdiffer-to-track-changes-in-data-27793f0c6f4a)([한국어](https://medium.com/naver-fe-platform/%EB%8D%B0%EC%9D%B4%ED%84%B0%EC%9D%98-%EB%B3%80%ED%99%94%EB%A5%BC-%EC%95%8C%EC%95%84%EB%82%B4%EA%B3%A0-%EB%B3%80%ED%99%94-%EA%B3%BC%EC%A0%95%EC%9D%84-%EC%B6%94%EC%A0%81-%ED%95%98%EB%8A%94-listdiffer-9c3f1d770542)) | ||
* [How to Make Cross Framework Component](https://medium.com/naver-fe-platform/how-to-make-cross-framework-component-ee76d76708b1)([한국어](https://medium.com/naver-fe-platform/cross-framework-component%EB%A5%BC-%EB%A7%8C%EB%93%9C%EB%8A%94-%EB%B0%A9%EB%B2%95-234b3fece353)) | ||
@@ -31,3 +31,3 @@ | ||
|[**@egjs/react-children-differ**](https://github.com/naver/egjs-children-differ/blob/master/packages/react-children-differ/README.md)|<a href="https://www.npmjs.com/package/@egjs/react-children-differ" target="_blank"><img src="https://img.shields.io/npm/v/@egjs/react-children-differ.svg?style=flat-square&color=00d8ff&label=%F0%9F%94%96" alt="version" /></a>|<img width="15" src="https://naver.github.io/egjs-flicking/images/react.svg" valign="middle" alt="React" /> [React](https://reactjs.org/) port of @egjs/children-differ| | ||
|[**@egjs/react-children-differ**](https://github.com/naver/egjs-children-differ/blob/master/packages/react-children-differ/README.md)|<a href="https://www.npmjs.com/package/@egjs/react-children-differ" target="_blank"><img src="https://img.shields.io/npm/v/@egjs/react-children-differ.svg?style=flat-square&color=dd0031&label=%F0%9F%94%96" alt="version" /></a>|<img width="15" src="https://naver.github.io/egjs-flicking/images/angular.svg" valign="middle" alt="Angular" /> [Angular](https://angular.io/) port of @egjs/children-differ| | ||
|[**@egjs/ngx-children-differ**](https://github.com/naver/egjs-children-differ/blob/master/packages/ngx-children-differ/README.md)|<a href="https://www.npmjs.com/package/@egjs/react-children-differ" target="_blank"><img src="https://img.shields.io/npm/v/@egjs/ngx-children-differ.svg?style=flat-square&color=dd0031&label=%F0%9F%94%96" alt="version" /></a>|<img width="15" src="https://naver.github.io/egjs-flicking/images/angular.svg" valign="middle" alt="Angular" /> [Angular](https://angular.io/) port of @egjs/children-differ| | ||
|[**@egjs/vue-children-differ**](https://github.com/naver/egjs-children-differ/blob/master/packages/vue-children-differ/README.md)|<a href="https://www.npmjs.com/package/@egjs/vue-children-differ" target="_blank"><img src="https://img.shields.io/npm/v/@egjs/vue-children-differ.svg?style=flat-square&color=42b883&label=%F0%9F%94%96" alt="version" /></a>|<img width="15" src="https://naver.github.io/egjs-flicking/images/vue.svg" valign="middle" alt="Vue.js" /> [Vue.js](https://vuejs.org/v2/guide/index.html) port of @egjs/children-differ| | ||
@@ -34,0 +34,0 @@ |
@@ -0,1 +1,6 @@ | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
import ListDiffer, { ListFormat } from "@egjs/list-differ"; | ||
@@ -2,0 +7,0 @@ import { findKeyCallback } from "./consts"; |
@@ -1,2 +0,6 @@ | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
export const findKeyCallback = typeof Map === "function" | ||
@@ -3,0 +7,0 @@ ? undefined |
@@ -0,1 +1,6 @@ | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
import ChildrenDiffer from "./ChildrenDiffer"; | ||
@@ -2,0 +7,0 @@ export default ChildrenDiffer; |
@@ -0,1 +1,6 @@ | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
import ChildrenDiffer, { diff } from "./index"; | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
import {DiffResult} from "@egjs/list-differ"; | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/* | ||
egjs-children-differ | ||
Copyright (c) 2019-present NAVER Corp. | ||
MIT license | ||
*/ | ||
import {diff as listdiff} from "@egjs/list-differ"; | ||
@@ -2,0 +7,0 @@ import { findKeyCallback } from "./consts"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
109452
986
2
16
+ Added@egjs/list-differ@1.0.1(transitive)
- Removed@egjs/list-differ@0.1.0(transitive)
Updated@egjs/list-differ@^1.0.0