- Fix
{{yield}}bugs for components insideifandeachblocks (#230, #231) - Set attributes on
<svg>elements correctly (#233) - Add
svelte.VERSIONproperty 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: falsewithshared: true, orshared: 'custom/path/to/shared.js'(#218) - Include
shared.jsin package
- Keyed
eachblocks (#81)
- SSR compiler: Support
formatoption (#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
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
- 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)
- Server-side rendering is available as a compiler option (
generate: 'ssr') (#159) - Allow call expressions where function is not in
helpers(#163)
- 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)
- Support multiple SVG elements in a component (#130)
- 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)
- 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
ifblocks, especially withelse/elseifchains (#28) - Trim unnecessary whitespace from
else/elseifblocks (#49) - Handle trailing comments in script tags (#64)
Set style.cssText rather than style (#44)
- Preserve SVG namespace inside each blocks
- Always use
setAttributewith SVG elements
- Generate AMD, CJS, IIFE and UMD builds
- Correctly insert text nodes before anchors (#31)
- 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)
- 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
readUntilerrors in parser - Basic
<select>binding - Handle missing data
- Prevent infinite set/observe loops
- Add
bind:fooshorthand elseandelseifblocks- Hoist imports
- Support unquoted attributes
- Handle entities in attributes
- Inline nested components
fireandonmethods
- 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