jsdom / js-symbol-tree Goto Github PK
View Code? Open in Web Editor NEWTurn any collection of objects into its own efficient tree or linked list using Symbol
License: MIT License
Turn any collection of objects into its own efficient tree or linked list using Symbol
License: MIT License
Branch | Build failing π¨ |
---|---|
Dependency | babel-eslint |
Current Version | 8.2.5 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
babel-eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 2 commits.
b9067fa
8.2.6
c797a36
pin to [email protected]
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
This is due to a duplicate declaration in SymbolTree.js:
symbol-tree/lib/SymbolTree.js: Duplicate declaration "index"
481 | }
482 |
> 483 | let index = childNode.getCachedIndex(parentNode);
| ^
484 |
485 | if (index >= 0) {
486 | return index;
I am running into some tricky initialization time issues in jsdom and need something like domSymbolTree.isInitialized(node)
, so I can bail out early if we're still in the pre-symbol-tree phase.
4.12.0
to 4.12.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
tape is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 4 commits.
25bcbc6
v4.12.1
9094271
[Fix] error stack file path can contain parens/spaces
b765bba
[Deps] update resolve
949781f
[Dev Deps] update eslint
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
When items are repeatedly added to and removed from new trees, the symbols stay and start clogging up the memory. Don't know if this is necessary by design or not.
My simple test:
const SymbolTree = require('symbol-tree');
const base = [];
for(let i=0; i<100; i++) {
base.push({ content: i });
}
for(let i=0; i<1000; i++) {
let tree = new SymbolTree();
let root = { root: true };
base.forEach(obj => {
tree.appendChild(root, obj);
});
let it = tree.childrenIterator(root);
for( child of it ){
tree.remove(child);
}
console.log(JSON.stringify(process.memoryUsage()));
}
When I use the Iterator, I would want to know the level of a node.
Is there a (low complexity) way to have the level of a node?
Level: "The level of a node is defined as: 1 + the number of edges between the node and the root."
Depth: "The depth of a node is the number of edges from the tree's root node to the node."
(from Wikipedia)
Would be also interesting to have other characteristics about the tree:
I can understand strange preferences for 8-space indents. Even tabs. But newlines before braces? That is just crazy-sauce. (In part due to the return
hazard, but also just because absolutely nobody does it.)
Feel free to close if you really want to keep this :P
api.md is 404
Up to you, but if you do let me know. We've put a few things there.
Would be a lot more readable I think :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.