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

svelte

Package Overview
Dependencies
Maintainers
3
Versions
777
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte - npm Package Compare versions

Comparing version 1.21.0 to 1.22.0

8

CHANGELOG.md
# Svelte changelog
## 1.22.0
* Symmetry between `mount` and `unmount`. This is potentially a breaking change if your components import other components that were precompiled with an earlier version of Svelte ([#592](https://github.com/sveltejs/svelte/issues/592))
* Add `cascade` option, which prevents styles affecting child components if `false`, unless selectors are wrapped in `:global(...)` and keyframe declaration IDs are prefixed with `-global-`. This will become the default behaviour in v2 ([#583](https://github.com/sveltejs/svelte/issues/583))
* Support binding to computed member expressions ([#602](https://github.com/sveltejs/svelte/issues/602))
* Coerce empty string in `number`/`range` inputs to `undefined`, not `0` ([#584](https://github.com/sveltejs/svelte/issues/584))
* Fix insert location of DOM elements in each/if/nested component edge cases ([#610](https://github.com/sveltejs/svelte/issues/610))
## 1.21.0

@@ -4,0 +12,0 @@

4

package.json
{
"name": "svelte",
"version": "1.21.0",
"version": "1.22.0",
"description": "The magical disappearing UI framework",

@@ -69,3 +69,3 @@ "main": "compiler/svelte.js",

"locate-character": "^2.0.0",
"magic-string": "^0.19.0",
"magic-string": "^0.21.1",
"mocha": "^3.2.0",

@@ -72,0 +72,0 @@ "node-resolve": "^1.3.3",

function noop () {}
function assign ( target ) {
for ( var i = 1; i < arguments.length; i += 1 ) {
var source = arguments[i];
for ( var k in source ) target[k] = source[k];
var k, source, i = 1, len = arguments.length;
for ( ; i < len; i++ ) {
source = arguments[i];
for ( k in source ) target[k] = source[k];
}

@@ -30,2 +31,3 @@

// TODO this is out of date
function destroyEach ( iterations, detach, start ) {

@@ -77,2 +79,6 @@ for ( var i = start; i < iterations.length; i += 1 ) {

function toNumber ( value ) {
return value === '' ? undefined : +value;
}
function linear ( t ) {

@@ -358,2 +364,2 @@ return t;

export { differs, dispatchObservers, get, fire, observe, observeDev, on, onDev, set, _flush, proto, protoDev, appendNode, insertNode, detachNode, detachBetween, destroyEach, createElement, createSvgElement, createText, createComment, addEventListener, removeEventListener, setAttribute, setXlinkAttribute, getBindingGroupValue, linear, generateKeyframes, wrapTransition, transitionManager, noop, assign };
export { differs, dispatchObservers, get, fire, observe, observeDev, on, onDev, set, _flush, proto, protoDev, appendNode, insertNode, detachNode, detachBetween, destroyEach, createElement, createSvgElement, createText, createComment, addEventListener, removeEventListener, setAttribute, setXlinkAttribute, getBindingGroupValue, toNumber, linear, generateKeyframes, wrapTransition, transitionManager, noop, assign };

Sorry, the diff of this file is too big to display

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