Comments (7)
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.
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.
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.
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.
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.
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.
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)
- How to insert HTML generated by other libraries HOT 2
- Event Handling without javascript HOT 2
- Failing to work with style properties? HOT 12
- Next major release HOT 5
- 3.0 final release HOT 11
- Update class module to keep current values in `className` attribute
- Add badges…
- Switching to Typescript HOT 7
- Support for outputting prettified HTML HOT 2
- [Feature] Support ReadableStream output HOT 1
- Ability to render html with event handlers HOT 1
- Type definition errors HOT 2
- HTML tags should be encoded HOT 6
- Add unexpected tagName `div` when there is not `div` selector in vnode HOT 5
- <svg><defs><linearGradient><stop /><linearGradient/></defs></svg> has bug
- run error!
- passing "truthy" values for classes should add them to the output
- Current `browser` key in package.json won't allow requiring submodules
- Request: handle props:innerHTML HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snabbdom-to-html.