Giter Site home page Giter Site logo

immutable-treeutils's People

Contributors

dependabot[bot] avatar ingro avatar jagu2012 avatar jschlieber avatar keit avatar lngsx avatar lukasbuenger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

immutable-treeutils's Issues

Simple Example using Redux/React (Solved)

Hello there,
Thank you very much for this Library !
I am quite experienced in React/Redux but quite new to Inmutable.js,
I have set up a simple experiment but I dont manage to get it working,
Could you maybe point out what I am missing here:

import { fromJS } from "immutable";
import TreeUtils from "immutable-treeutils";

const initialState = fromJS({
  id: "root",
  name: "root",  
  childNodes: [
    {
      id: "level1a",
      name: "level1a",      
      childNodes: []
    },
    {
      id: "level1b",
      name: "level1b",      
      childNodes: [
        {
          id: "level2a",
          name: "level2a",          
          childNodes: []
        },
        {
          id: "level2b",
          name: "level2b",        
          childNodes: []
        }
      ]
    }
  ]
});

const treeUtils = new TreeUtils();
console.log("Find node level1a", treeUtils.id(initialState, 'level1a')); //Undefined

Thanks !

for...of is an ES6 feature

In issue #9, @lukasbuenger decided to remove all ES6 features from this project. Unfortunately, it seems like there is one ES6 feature remaining in the codebase. for...of was introduced in ES6, and as a result, it's still causing problems for UglifyJS (and presumably, other software that only works with ES5).

ERROR in application.js from UglifyJs
Unexpected token name «of», expected punc «;» [/Users/singingwolfboy/clones/impraise-web/node_modules/immutable-treeutils/index.js:165,0][application.js:215807,17]

Personally, I'm happy to switch to uglify-es, which is compatible with ES6, but since the author specifically made this change to avoid this kind of compatibility conflict, I wanted to raise this issue.

'regeneratorRuntime is not defined' even though node 8.3.0

I'm running node 8.3.0 without babel.

When trying to include treeutils like this const TreeUtils = require('immutable-treeutils'). I'm getting the following error:

/Users/patte/src/haku-backend/node_modules/immutable-treeutils/lib/TreeUtils.js:142
		value: regeneratorRuntime.mark(function nodes(state, path) {
		       ^

ReferenceError: regeneratorRuntime is not defined
    at /Users/patte/src/haku-backend/node_modules/immutable-treeutils/lib/TreeUtils.js:142:10
    at Object.<anonymous> (/Users/patte/src/haku-backend/node_modules/immutable-treeutils/lib/TreeUtils.js:1042:2)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/patte/republik/src/haku-backend/graphql/resolvers/Document.js:3:19)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Module.require (module.js:517:17)
[nodemon] app crashed - waiting for file changes before starting...

0.1.11 will not work with babel anymore

Hi :)
thank you first for the library.
0.1.11 introduces a breaking change (but is a patch release) and removes all babel compiler hints / .babelrc file. It's not usable in a out of the box babel/webpack configuration anymore.

Is there any migration path?

david

babel6 supports

Hi, I just migrated to babel6. If you are interested in, i will send PR.

Thanks,
Kei

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.