mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 KiB
17 KiB
Svelte changelog
1.13.7
- Fix observers —
defer: truenow triggers callback after DOM is updated (#441) - Handle empty
computedproperty (#452) - Correctly bind one-way
<select>value attributes with objects (#423) - Hoist event handlers inside each blocks, where possible (#456)
- Don't bind event handler callbacks (#433)
- Internal refactoring and neater code generation (#453)
1.13.6
- Use
assignhelper instead ofObject.assignfor better performance and legacy compatibility (#431) - Improved code generation (#419), (#440), (#442)
1.13.5
1.13.4
- Prevent unclosed
<script>tag causing infinite loop (#435)
1.13.3
- Correctly handle
{{true}},{{false}}and{{null}}(#424) - Update
<select>value attributes correctly (#423) - Bind custom event handler callbacks (#428)
- Disallow
import root(#430) - Prevent component bindings mutating the wrong object (#432)
1.13.2
- Fix deep component bindings (#420)
- Include
cssproperty in compiler output (#409) - Treat functions as mutable objects when recomputing (#413
- Include magic-string in bundle (#410)
- Disable unneeded Bublé transformations for slimmer output (#411)
1.13.1
1.13.0
- Add
<:Window>meta tag with event listeners, and a handful of bindings (#371) - Don't uncheck radios incorrectly (#399)
1.12.1
- Deconflict non-helper functions (
addCssetc) (#388) - Allow reserved words in tags, e.g.
{{class}}(#383)
1.12.0
- Shorthand attributes —
<Widget :foo/>is equivalent to<Widget foo='{{foo}}'/>(#384) - Support
bind:groupfor radio and checkbox inputs (#311, #312) - Better sourcemap support for two-way bindings
1.11.4
- Dev mode warning for bad
component.observearguments (#369) - Translate
component.on('teardown', ...)tocomponent.on('destroy', ...)and add dev warning (#365) - Use shared prototype to save bytes (#378)
1.11.3
1.11.2
- Add component CSS to each document a component is rendered to (#331)
1.11.1
- Fix two-way binding for components inside
eachblocks (#356)
1.11.0
- Add
format: 'eval'andsvelte.create, to create components directly from source code (#345) - Node 4 compatibility (#109)
1.10.3
- Prevent
'</script>'string occurence breaking pages (#349) - Allow reference to whitelisted globals without properties (#333)
- Don't remove
incorrectly (#348) let->varinaddCssblock (#351)
1.10.2
- Accept any case for doctype declarations (#336)
- Allow non-top-level
<script>and<style>tags to pass through without processing (#335)
1.10.1
- typecheck argument in _set when in dev mode (#342)
- Prevent duplicate helpers in non-shared mode (#337)
1.10.0
1.9.1
1.9.0
- Add development warnings (#13), (#320), (#177), (#249)
- Better error if parser encounters an unmatched closing tag (#321)
1.8.1
- Allow implicitly closed elements (#318)
- More informative error messages for unclosed elements/blocks (#258)
- Deprecate
onrenderandonteardownin favour ofoncreateandondestroy(#40)
1.8.0
- Prevent duplicate imports (#308)
- Use
inputevents (notchange) for all input elements other thancheckboxandradio, and textareas (#309) - Encapsulate keyframe declarations (#245)
1.7.1
- Deconflict imports and shared helpers (#222)
- Deconflict each-block contexts and reserved words (#222)
- Allow shorthand properties in expressions (#296)
1.7.0
- Include CSS AST in
svelte.parseoutput (#302) - Better handling of CSS parse errors (#302)
- Initialise
<select>elements with two-way binding correctly (#301) - Allow local context in component event handlers inside
eachblocks (#290) - Fix two-way binding for components inside
eachblocks (#290)
1.6.11
- Initialise dynamic
<option>value correctly (#291)
1.6.10
- Ensure
sourcesandsourcesContentare populated in sourcemaps, even if none of the original code is used (#295) - Add
outputFilenameoption to populatefileandsourcessourcemap properties correctly (#295)
1.6.9
- Don't trigger bindings for torn-down components (#277)
- SSR: Handle two-way bindings (#275)
- Improve performance by checking data has changed before updates (#279)
- Parse CSS with css-tree to prevent transformation errors with unconventional styles (#288)
1.6.8
- Always trigger
onrender, including when change initiator is a nested component (#263) - Handle default function parameters in computations (#274)
1.6.7
1.6.6
1.6.5
- Handle
<!doctype>declarations (#255)
1.6.4
- Fix updates of yields inside each blocks (20e1b05)
- SSR: Handle attributes with values that begin with a number (#248)
- Handle multiline comments in CSS (#252)
1.6.3
- Fix
{{yield}}bugs for components insideifandeachblocks (#230, #231) - Set attributes on
<svg>elements correctly (#233) - Add
svelte.VERSIONproperty to compiler
1.6.2
- Use helpers for
addEventListener,removeEventListener,setAttribute(#227) - Escape
sharedPath(#229) - Handle attributes with values that begin with a number (#234)
- Update dependencies
1.6.1
- SSR: Handle component directives at arbitrary positions (#221)
- Provide useful feedback on invalid void closing tag (#224)
1.6.0
- Replace
standalone: falsewithshared: true, orshared: 'custom/path/to/shared.js'(#218) - Include
shared.jsin package
1.5.0
1.4.0
- Keyed
eachblocks (#81)
1.3.1
1.3.0
- SSR compiler: Support
formatoption (#196) - SSR compiler: Don't self-close 'normal' elements (#200)
- Remove leading spaces from scoped CSS (#140)
- Internal refactoring
1.2.5
- Allow whitelisted globals in templates (#185)
- Intercept parse errors with
options.onerror
1.2.4
1.2.3
- Add support for
namespacedeclaration for SVG (etc) components (#147) - Throw error if methods or lifecycle hooks are arrow functions that use
thisorarguments(#179) - Use
setAttribute()forlistattributes, to preserve link to<datalist>(#178) - Throw error if default export is not an object literal (#190)
- Internal refactoring
1.2.2
- Omit directives in server-side rendering (#163)
- Handle comments in SSR (#165)
- Support calling methods of
event/thisin event handlers (#162) - Remove
mountfrom public API (#150)
1.2.1
- Server-side rendering is available as a compiler option (
generate: 'ssr') (#159) - Allow call expressions where function is not in
helpers(#163)
1.2.0
1.1.3
- Handle
xmlnsattributes correctly (#142) - Error on duplicate
<style>/<script>tags rather than failing silently (#142) - Don't create whitespace text nodes inside SVG elements (#142)
- Require void elements to be lowercase, to eliminate confusion with components (#137)
1.1.2
1.1.1
- Support multiple SVG elements in a component (#130)
1.1.0
- Separate fragment creation from
mount(#91) - Trigger
onrenderhook at correct time for nested components (#103) - Fix keypath dynamic attributes in components (#46)
- Implement
{{yield}}(#112) - Optimise teardown (#99)
- Require computed properties to have at least one dependency (#115)
- Support
{{#each ...}}...{{else}}...{{/each}}(#90) - Triple mustaches (#35)
1.0.7
- Correctly escape HTML entities (#85)
1.0.6
- Generate useful sourcemaps (#60)
1.0.5
- Ensure compiler only generates ES5 code (#75)
get()without arguments returns entire state object (#73)
1.0.4
- Handle empty attributes in elements and components (#63)
- Detach top-level text nodes inside departing each blocks (#62)
1.0.3
- Better generated code for
ifblocks, especially withelse/elseifchains (#28) - Trim unnecessary whitespace from
else/elseifblocks (#49) - Handle trailing comments in script tags (#64)
1.0.2
Set style.cssText rather than style (#44)
1.0.1
- Preserve SVG namespace inside each blocks
- Always use
setAttributewith SVG elements
1.0.0
- Generate AMD, CJS, IIFE and UMD builds
- Correctly insert text nodes before anchors (#31)
0.3.0
- Fix bug where departing element would unset
refincorrectly (#24) - Basic template validation (#6)
- Fire
onrenderhooks once component is in DOM (#18) - Only detach nodes when necessary to do so (#26)
0.2.2
- On second thoughts, don't transpile build. Was only really for Uglify's benefit, which is daft
0.2.1
- Transpile build
0.2.0
- Only generate UMD build, for now
- Include dependencies in the build, treat as
devDependencies - Faster initial render
- Parent data overrides child defaults
- Remove top-level text nodes on teardown
- Handle
readUntilerrors in parser - Basic
<select>binding - Handle missing data
- Prevent infinite set/observe loops
- Add
bind:fooshorthand elseandelseifblocks- Hoist imports
0.1.1
- Support unquoted attributes
- Handle entities in attributes
- Inline nested components
fireandonmethods
0.1.0
- Breaking change – Svelte compiler now generates constructor functions rather than factories (#2)
- SVG support
0.0.2
- First release capable of building TodoMVC
0.0.1
- Just squatting on the package name