Giter Club home page Giter Club logo

Comments (7)

acstll avatar acstll commented on June 7, 2024

Are you using the master branch?

There's 2 reasons for that:

  • I removed and extracted the code using browser-split into its own package, here: https://www.npmjs.com/package/parse-sel
  • I haven't built (babel > lib/) the most recent code yet because I haven't decided yet on using plain node modules and ES5 and remove babel or going full ES201x for the next 3.0 release…

from snabbdom-to-html.

bloodyKnuckles avatar bloodyKnuckles commented on June 7, 2024

Looks like I'm needing some help. I'm trying to test this update:
2771b7f

...particularly the lodash.union alternative, here:
2771b7f#diff-b9cfc7f2cdf78a7f4b91a753d10865a2L32

...and here:
2771b7f#diff-3e21c7aa8bf719dde7bdb8b97ff54483L34

But when I normally npm i snabbdom-to-html I get the old lodash.union and:
2771b7f#diff-3e21c7aa8bf719dde7bdb8b97ff54483L34

So rather than npm i, I rm -rf 'd snabbdom-to-html from the node_modules directory and git clone https://github.com/acstll/snabbdom-to-html.git 'd it.

Then back in the module root I browserify 'd the index.js file and get the error I reported initially.

How can I test the updates when npm i gives me the an older version?

from snabbdom-to-html.

acstll avatar acstll commented on June 7, 2024

npm gives you the latest version published, so git clone is a one way to do it. You could also npm install directly from github, I believe doing npm i acstll/snabbdom-to-html will get you the latest on master.

I just pushed the latest commit where I remove Babel and the browser key in package.json. Can you give it a try?

I think the case you're trying to test is covered here: https://github.com/acstll/snabbdom-to-html/blob/master/test/index.js#L136-L143 but more testing won't harm :-)

from snabbdom-to-html.

bloodyKnuckles avatar bloodyKnuckles commented on June 7, 2024

Glad to help test.

I'm getting another browserify error:
Error: Cannot find module './init' from '.../node_modules/snabbdom-to-html'

I made a directory, cd 'd in the directory, npm init 'd the directory. Created an index.js file, and added var s2h = require('snabbdom-to-html'). Then executed npm i acstll/snabbdom-to-html and browserify index.js > bundle.js. Got error.

I does look like I got the latest update. The lib directory is gone, and there's a modules directory.

from snabbdom-to-html.

acstll avatar acstll commented on June 7, 2024

That's my bad, sorry. There was something breaking the install, now fixed in f7b9bd0

You can repeat the install and try again. Sorry!

from snabbdom-to-html.

bloodyKnuckles avatar bloodyKnuckles commented on June 7, 2024

That works if I have:
"snabbdom-to-html": "acstll/snabbdom-to-html"

...in my package.json

But:
"snabbdom-to-html": "^2.1.3",

...installs an old version. I don't understand that.

from snabbdom-to-html.

acstll avatar acstll commented on June 7, 2024

That's because the npm registry is a separate thing from GitHub.

When you run npm install snabbdom-to-html, npm gets the latest version it has in its registry, which is equivalent to this: https://github.com/acstll/snabbdom-to-html/releases/tag/v2.1.3 in a tarball.

If you run npm install acstll/snabbdom-to-html or npm install github:acstll/snabbdom-to-html, then npm will fetch the code directly from GitHub, no matter what the version on package.json says.

So, when I think 3.0 is ready to ship, I will update the package.json and run npm publish so that a new version becomes available in the npm registry.

from snabbdom-to-html.

Related Issues (20)

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.