- Fix
{{yield}}
bugs for components insideif
andeach
blocks (#230, #231) - Set attributes on
<svg>
elements correctly (#233) - Add
svelte.VERSION
property to compiler
- Use helpers for
addEventListener
,removeEventListener
,setAttribute
(#227) - Escape
sharedPath
(#229) - Handle attributes with values that begin with a number (#234)
- Update dependencies
- SSR: Handle component directives at arbitrary positions (#221)
- Provide useful feedback on invalid void closing tag (#224)
- Replace
standalone: false
withshared: true
, orshared: 'custom/path/to/shared.js'
(#218) - Include
shared.js
in package
- Keyed
each
blocks (#81)
- SSR compiler: Support
format
option (#196) - SSR compiler: Don't self-close 'normal' elements (#200)
- Remove leading spaces from scoped CSS (#140)
- Internal refactoring
- Allow whitelisted globals in templates (#185)
- Intercept parse errors with
options.onerror
- Add support for
namespace
declaration for SVG (etc) components (#147) - Throw error if methods or lifecycle hooks are arrow functions that use
this
orarguments
(#179) - Use
setAttribute()
forlist
attributes, to preserve link to<datalist>
(#178) - Throw error if default export is not an object literal (#190)
- Internal refactoring
- Omit directives in server-side rendering (#163)
- Handle comments in SSR (#165)
- Support calling methods of
event
/this
in event handlers (#162) - Remove
mount
from public API (#150)
- Server-side rendering is available as a compiler option (
generate: 'ssr'
) (#159) - Allow call expressions where function is not in
helpers
(#163)
- Handle
xmlns
attributes 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)
- Support multiple SVG elements in a component (#130)
- Separate fragment creation from
mount
(#91) - Trigger
onrender
hook 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)
- Correctly escape HTML entities (#85)
- Generate useful sourcemaps (#60)
- Ensure compiler only generates ES5 code (#75)
get()
without arguments returns entire state object (#73)
- Handle empty attributes in elements and components (#63)
- Detach top-level text nodes inside departing each blocks (#62)
- Better generated code for
if
blocks, especially withelse
/elseif
chains (#28) - Trim unnecessary whitespace from
else
/elseif
blocks (#49) - Handle trailing comments in script tags (#64)
Set style.cssText
rather than style
(#44)
- Preserve SVG namespace inside each blocks
- Always use
setAttribute
with SVG elements
- Generate AMD, CJS, IIFE and UMD builds
- Correctly insert text nodes before anchors (#31)
- Fix bug where departing element would unset
ref
incorrectly (#24) - Basic template validation (#6)
- Fire
onrender
hooks once component is in DOM (#18) - Only detach nodes when necessary to do so (#26)
- On second thoughts, don't transpile build. Was only really for Uglify's benefit, which is daft
- Transpile build
- 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
readUntil
errors in parser - Basic
<select>
binding - Handle missing data
- Prevent infinite set/observe loops
- Add
bind:foo
shorthand else
andelseif
blocks- Hoist imports
- Support unquoted attributes
- Handle entities in attributes
- Inline nested components
fire
andon
methods
- Breaking change – Svelte compiler now generates constructor functions rather than factories (#2)
- SVG support
- First release capable of building TodoMVC
- Just squatting on the package name