Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

preact

Package Overview
Dependencies
Maintainers
1
Versions
246
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

preact - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

.editorconfig

20

package.json
{
"name": "preact",
"version": "2.3.0",
"amdName": "preact",
"version": "2.4.0",
"description": "Tiny & fast Component-based virtual DOM framework.",
"main": "preact.js",
"main": "dist/preact.js",
"jsnext:main": "src/preact.js",
"minified:main": "dist/preact.min.js",
"scripts": {
"build": "npm run transpile && npm run minify && npm run size",
"transpile": "babel -f preact.js -s -o $npm_package_main < src/${npm_package_main}",
"minify": "uglifyjs -c sequences,dead_code,conditionals,booleans,unused,if_return,join_vars,drop_console -m -o $npm_package_main --in-source-map ${npm_package_main}.map --source-map ${npm_package_main}.map -- $npm_package_main",
"size": "size=$(gzip-size $npm_package_main) && echo \"gzip size: $size / $(pretty-bytes $size)\"",
"clean": "rimraf dist/",
"build": "npm-run-all clean transpile minify size",
"transpile": "rollup -c rollup.config.js -m -f umd -n $npm_package_amdName src/preact.js -o $npm_package_main",
"minify": "uglifyjs $npm_package_main -cm -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map",
"size": "size=$(gzip-size $npm_package_minified_main) && echo \"gzip size: $size / $(pretty-bytes $size)\"",
"test": "eslint src test && npm run test:mocha && npm run test:karma",

@@ -48,4 +52,8 @@ "test:mocha": "mocha --recursive --compilers js:babel/register test/shared test/node",

"mocha": "^2.3.3",
"npm-run-all": "^1.3.3",
"phantomjs": "^1.9.18",
"pretty-bytes": "^2.0.1",
"rimraf": "2.4.4",
"rollup": "^0.21.1",
"rollup-plugin-babel": "^1.0.0",
"sinon": "^1.17.2",

@@ -52,0 +60,0 @@ "sinon-chai": "^2.8.0",

@@ -16,3 +16,4 @@ # Preact

- [ESBench](http://esbench.com) is built using Preact.
- [Documentation Viewer](https://documentation-viewer.firebaseapp.com) ([Github Project](https://github.com/developit/documentation-viewer))
- [Documentation Viewer](https://documentation-viewer.firebaseapp.com) _([Github Project](https://github.com/developit/documentation-viewer))_
- [TodoMVC](http://developit.github.io/preact-todomvc/) _([Github Project](https://github.com/developit/preact-todomvc))_
- [Flickr Browser](http://codepen.io/developit/full/VvMZwK/) (@ CodePen)

@@ -27,6 +28,6 @@ - [Animating Text](http://codepen.io/developit/full/LpNOdm/) (@ CodePen)

- :link: [**preact-router**](http://git.io/preact-router): URL routing for your components.
- :triangular_ruler: [**preact-svg**](http://git.io/preact-svg): Use inline `<svg>` in Preact.
- :neckbeard: [**preact-render-to-string**](http://git.io/preact-render-to-string): Universal rendering.
- :raised_hands: [**preact-compat**](http://git.io/preact-compat): use any React library with Preact. _([full example](http://git.io/preact-compat-example))_
- :earth_americas: [**preact-router**](http://git.io/preact-router): URL routing for your components.
- :tulip: [**preact-svg**](http://git.io/preact-svg): Use inline `<svg>` in Preact.
- :page_facing_up: [**preact-render-to-string**](http://git.io/preact-render-to-string): Universal rendering.
- :raised_hands: [**preact-compat**](http://git.io/preact-compat): use any React library with Preact. *([full example](http://git.io/preact-compat-example))*
- :rocket: [**preact-photon**](http://git.io/preact-photon): build beautiful desktop UI with [photon](http://photonkit.com).

@@ -39,3 +40,3 @@

I'm going to assume you have some sort of ES2015 build set up using babel and/or webpack/browserify/gulp/grunt/etc. If you don't, start with [preact-boilerplate].
The following guide assumes you have some sort of ES2015 build set up using babel and/or webpack/browserify/gulp/grunt/etc. If you don't, start with [preact-boilerplate] or a [CodePen Template](http://codepen.io/developit/pen/PPMNjd?editors=001).

@@ -42,0 +43,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc