2016-11-20 19:14:34 +01:00
|
|
|
|
# Svelte changelog
|
|
|
|
|
|
2017-01-26 00:23:52 +01:00
|
|
|
|
## 1.6.7
|
|
|
|
|
|
|
|
|
|
* SSR: Fix apostrophes ([#267](https://github.com/sveltejs/svelte/issues/267))
|
|
|
|
|
* Add `xmlns` attributes to SVGs ([#262](https://github.com/sveltejs/svelte/pull/262))
|
|
|
|
|
|
2017-01-24 23:32:13 +01:00
|
|
|
|
## 1.6.6
|
|
|
|
|
|
|
|
|
|
* Omit text from comment anchors ([#247](https://github.com/sveltejs/svelte/issues/247))
|
|
|
|
|
* Handle `xlink` attributes ([#264](https://github.com/sveltejs/svelte/issues/264))
|
|
|
|
|
|
2017-01-18 03:05:09 +01:00
|
|
|
|
## 1.6.5
|
|
|
|
|
|
|
|
|
|
* Handle `<!doctype>` declarations ([#255](https://github.com/sveltejs/svelte/pull/255))
|
|
|
|
|
|
2017-01-17 20:35:48 +01:00
|
|
|
|
## 1.6.4
|
|
|
|
|
|
|
|
|
|
* Fix updates of yields inside each blocks ([20e1b05](https://github.com/sveltejs/svelte/commit/20e1b05c45dc9fcddfe2e7c5c9fc3109f0d45fa9))
|
|
|
|
|
* SSR: Handle attributes with values that begin with a number ([#248](https://github.com/sveltejs/svelte/issues/248))
|
|
|
|
|
* Handle multiline comments in CSS ([#252](https://github.com/sveltejs/svelte/issues/252))
|
|
|
|
|
|
2017-01-04 19:47:28 +01:00
|
|
|
|
## 1.6.3
|
|
|
|
|
|
|
|
|
|
* Fix `{{yield}}` bugs for components inside `if` and `each` blocks ([#230](https://github.com/sveltejs/svelte/issues/230), [#231](https://github.com/sveltejs/svelte/issues/231))
|
|
|
|
|
* Set attributes on `<svg>` elements correctly ([#233](https://github.com/sveltejs/svelte/issues/233))
|
|
|
|
|
* Add `svelte.VERSION` property to compiler
|
|
|
|
|
|
2017-01-04 00:09:07 +01:00
|
|
|
|
## 1.6.2
|
|
|
|
|
|
|
|
|
|
* Use helpers for `addEventListener`, `removeEventListener`, `setAttribute` ([#227](https://github.com/sveltejs/svelte/pull/227))
|
|
|
|
|
* Escape `sharedPath` ([#229](https://github.com/sveltejs/svelte/pull/229))
|
|
|
|
|
* Handle attributes with values that begin with a number ([#234](https://github.com/sveltejs/svelte/issues/234))
|
|
|
|
|
* Update dependencies
|
|
|
|
|
|
2016-12-24 20:39:53 +01:00
|
|
|
|
## 1.6.1
|
|
|
|
|
|
|
|
|
|
* SSR: Handle component directives at arbitrary positions ([#221](https://github.com/sveltejs/svelte/issues/221))
|
|
|
|
|
* Provide useful feedback on invalid void closing tag ([#224](https://github.com/sveltejs/svelte/issues/224))
|
|
|
|
|
|
2016-12-21 01:24:53 +01:00
|
|
|
|
## 1.6.0
|
|
|
|
|
|
|
|
|
|
* Replace `standalone: false` with `shared: true`, or `shared: 'custom/path/to/shared.js'` ([#218](https://github.com/sveltejs/svelte/issues/218))
|
|
|
|
|
* Include `shared.js` in package
|
|
|
|
|
|
2016-12-21 00:04:09 +01:00
|
|
|
|
## 1.5.0
|
|
|
|
|
|
|
|
|
|
* Implement `standalone: false` ([#9](https://github.com/sveltejs/svelte/issues/9))
|
|
|
|
|
* SSR: Handle component directives ([216](https://github.com/sveltejs/svelte/issues/216))
|
|
|
|
|
|
2016-12-18 19:00:42 +01:00
|
|
|
|
## 1.4.0
|
|
|
|
|
|
|
|
|
|
* Keyed `each` blocks ([#81](https://github.com/sveltejs/svelte/issues/81))
|
|
|
|
|
|
2016-12-17 23:24:06 +01:00
|
|
|
|
## 1.3.1
|
|
|
|
|
|
|
|
|
|
* Remove file extensions from AMD dependencies ([#144](https://github.com/sveltejs/svelte/issues/144))
|
|
|
|
|
* Throw if `options.name` is illegal ([#102](https://github.com/sveltejs/svelte/issues/102))
|
|
|
|
|
|
2016-12-17 18:49:24 +01:00
|
|
|
|
## 1.3.0
|
|
|
|
|
|
|
|
|
|
* SSR compiler: Support `format` option ([#196](https://github.com/sveltejs/svelte/issues/196))
|
|
|
|
|
* SSR compiler: Don't self-close 'normal' elements ([#200](https://github.com/sveltejs/svelte/issues/200))
|
|
|
|
|
* Remove leading spaces from scoped CSS ([#140](https://github.com/sveltejs/svelte/issues/140))
|
|
|
|
|
* Internal refactoring
|
|
|
|
|
|
2016-12-15 20:26:25 +01:00
|
|
|
|
## 1.2.5
|
|
|
|
|
|
|
|
|
|
* Allow whitelisted globals in templates ([#185](https://github.com/sveltejs/svelte/issues/185))
|
|
|
|
|
* Intercept parse errors with `options.onerror`
|
|
|
|
|
|
2016-12-15 17:13:29 +01:00
|
|
|
|
## 1.2.4
|
|
|
|
|
|
|
|
|
|
* SSR compiler: Implement `{{{tripes}}}` ([#197](https://github.com/sveltejs/svelte/issues/197))
|
|
|
|
|
* SSR compiler: Escape HTML in tags ([#197](https://github.com/sveltejs/svelte/issues/197))
|
|
|
|
|
|
2016-12-12 14:57:59 +01:00
|
|
|
|
## 1.2.3
|
|
|
|
|
|
|
|
|
|
* Add support for `namespace` declaration for SVG (etc) components ([#147](https://github.com/sveltejs/svelte/issues/147))
|
|
|
|
|
* Throw error if methods or lifecycle hooks are arrow functions that use `this` or `arguments` ([#179](https://github.com/sveltejs/svelte/issues/179))
|
|
|
|
|
* Use `setAttribute()` for `list` attributes, to preserve link to `<datalist>` ([#178](https://github.com/sveltejs/svelte/issues/178))
|
|
|
|
|
* Throw error if default export is not an object literal ([#190](https://github.com/sveltejs/svelte/pull/190))
|
|
|
|
|
* Internal refactoring
|
|
|
|
|
|
2016-12-09 21:50:55 +01:00
|
|
|
|
## 1.2.2
|
|
|
|
|
|
|
|
|
|
* Omit directives in server-side rendering ([#163](https://github.com/sveltejs/svelte/issues/167))
|
|
|
|
|
* Handle comments in SSR ([#165](https://github.com/sveltejs/svelte/issues/165))
|
|
|
|
|
* Support calling methods of `event`/`this` in event handlers ([#162](https://github.com/sveltejs/svelte/issues/162))
|
|
|
|
|
* Remove `mount` from public API ([#150](https://github.com/sveltejs/svelte/issues/150))
|
|
|
|
|
|
2016-12-08 21:22:19 +01:00
|
|
|
|
## 1.2.1
|
|
|
|
|
|
|
|
|
|
* Server-side rendering is available as a compiler option (`generate: 'ssr'`) ([#159](https://github.com/sveltejs/svelte/pull/159))
|
|
|
|
|
* Allow call expressions where function is not in `helpers` ([#163](https://github.com/sveltejs/svelte/issues/163))
|
|
|
|
|
|
2016-12-08 00:18:53 +01:00
|
|
|
|
## 1.2.0
|
|
|
|
|
|
|
|
|
|
* Server-side rendering of HTML ([#148](https://github.com/sveltejs/svelte/pull/148)) and CSS ([#154](https://github.com/sveltejs/svelte/pull/154))
|
|
|
|
|
|
2016-12-07 04:25:29 +01:00
|
|
|
|
## 1.1.3
|
|
|
|
|
|
|
|
|
|
* Handle `xmlns` attributes correctly ([#142](https://github.com/sveltejs/svelte/issues/142))
|
|
|
|
|
* Error on duplicate `<style>`/`<script>` tags rather than failing silently ([#142](https://github.com/sveltejs/svelte/issues/142))
|
|
|
|
|
* Don't create whitespace text nodes inside SVG elements ([#142](https://github.com/sveltejs/svelte/issues/142))
|
|
|
|
|
* Require void elements to be lowercase, to eliminate confusion with components ([#137](https://github.com/sveltejs/svelte/issues/137))
|
|
|
|
|
|
2016-12-06 18:31:59 +01:00
|
|
|
|
## 1.1.2
|
|
|
|
|
|
|
|
|
|
* Deconflict variable names ([#88](https://github.com/sveltejs/svelte/issues/88), [#126](https://github.com/sveltejs/svelte/issues/126))
|
|
|
|
|
|
2016-12-06 16:22:56 +01:00
|
|
|
|
## 1.1.1
|
|
|
|
|
|
|
|
|
|
* Support multiple SVG elements in a component ([#130](https://github.com/sveltejs/svelte/issues/130))
|
|
|
|
|
|
2016-12-06 06:02:36 +01:00
|
|
|
|
## 1.1.0
|
|
|
|
|
|
|
|
|
|
* Separate fragment creation from `mount` ([#91](https://github.com/sveltejs/svelte/pull/91))
|
|
|
|
|
* Trigger `onrender` hook at correct time for nested components ([#103](https://github.com/sveltejs/svelte/pull/103))
|
|
|
|
|
* Fix keypath dynamic attributes in components ([#46](https://github.com/sveltejs/svelte/issues/46))
|
|
|
|
|
* Implement `{{yield}}` ([#112](https://github.com/sveltejs/svelte/pull/112))
|
|
|
|
|
* Optimise teardown ([#99](https://github.com/sveltejs/svelte/issues/99))
|
|
|
|
|
* Require computed properties to have at least one dependency ([#115](https://github.com/sveltejs/svelte/pull/115))
|
|
|
|
|
* Support `{{#each ...}}...{{else}}...{{/each}}` ([#90](https://github.com/sveltejs/svelte/issues/90))
|
|
|
|
|
* Triple mustaches ([#35](https://github.com/sveltejs/svelte/issues/35))
|
|
|
|
|
|
2016-12-02 17:48:41 +01:00
|
|
|
|
## 1.0.7
|
|
|
|
|
|
|
|
|
|
* Correctly escape HTML entities ([#85](https://github.com/sveltejs/svelte/issues/85))
|
|
|
|
|
|
2016-12-02 17:36:05 +01:00
|
|
|
|
## 1.0.6
|
|
|
|
|
|
|
|
|
|
* Generate useful sourcemaps ([#60](https://github.com/sveltejs/svelte/issues/60))
|
|
|
|
|
|
2016-12-01 15:01:44 +01:00
|
|
|
|
## 1.0.5
|
|
|
|
|
|
|
|
|
|
* Ensure compiler only generates ES5 code ([#75](https://github.com/sveltejs/svelte/issues/75))
|
|
|
|
|
* `get()` without arguments returns entire state object ([#73](https://github.com/sveltejs/svelte/issues/73))
|
|
|
|
|
|
2016-11-30 23:39:56 +01:00
|
|
|
|
## 1.0.4
|
|
|
|
|
|
|
|
|
|
* Handle empty attributes in elements and components ([#63](https://github.com/sveltejs/svelte/issues/63))
|
|
|
|
|
* Detach top-level text nodes inside departing each blocks ([#62](https://github.com/sveltejs/svelte/issues/62))
|
|
|
|
|
|
2016-11-30 22:24:20 +01:00
|
|
|
|
## 1.0.3
|
|
|
|
|
|
|
|
|
|
* Better generated code for `if` blocks, especially with `else`/`elseif` chains ([#28](https://github.com/sveltejs/svelte/pull/28))
|
|
|
|
|
* Trim unnecessary whitespace from `else`/`elseif` blocks ([#49](https://github.com/sveltejs/svelte/pull/49))
|
|
|
|
|
* Handle trailing comments in script tags ([#64](https://github.com/sveltejs/svelte/issues/64))
|
|
|
|
|
|
2016-11-30 05:23:07 +01:00
|
|
|
|
## 1.0.2
|
|
|
|
|
|
|
|
|
|
Set `style.cssText` rather than `style` ([#44](https://github.com/sveltejs/svelte/issues/44))
|
|
|
|
|
|
2016-11-29 17:42:45 +01:00
|
|
|
|
## 1.0.1
|
|
|
|
|
|
|
|
|
|
* Preserve SVG namespace inside each blocks
|
|
|
|
|
* Always use `setAttribute` with SVG elements
|
|
|
|
|
|
2016-11-29 16:57:44 +01:00
|
|
|
|
## 1.0.0
|
|
|
|
|
|
|
|
|
|
* Generate AMD, CJS, IIFE and UMD builds
|
2016-11-30 22:24:20 +01:00
|
|
|
|
* Correctly insert text nodes before anchors ([#31](https://github.com/sveltejs/svelte/pull/31))
|
2016-11-29 16:57:44 +01:00
|
|
|
|
|
2016-11-26 19:01:10 +01:00
|
|
|
|
## 0.3.0
|
|
|
|
|
|
|
|
|
|
* Fix bug where departing element would unset `ref` incorrectly ([#24](https://github.com/sveltejs/svelte/issues/24))
|
|
|
|
|
* Basic template validation ([#6](https://github.com/sveltejs/svelte/issues/6))
|
|
|
|
|
* Fire `onrender` hooks once component is in DOM ([#18](https://github.com/sveltejs/svelte/issues/18))
|
|
|
|
|
* Only detach nodes when necessary to do so ([#26](https://github.com/sveltejs/svelte/issues/26))
|
|
|
|
|
|
2016-11-26 00:01:27 +01:00
|
|
|
|
## 0.2.2
|
|
|
|
|
|
|
|
|
|
* On second thoughts, don't transpile build. Was only really for Uglify's benefit, which is daft
|
|
|
|
|
|
2016-11-25 23:26:45 +01:00
|
|
|
|
## 0.2.1
|
|
|
|
|
|
|
|
|
|
* Transpile build
|
|
|
|
|
|
2016-11-25 21:52:28 +01:00
|
|
|
|
## 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 `readUntil` errors in parser
|
|
|
|
|
* Basic `<select>` binding
|
|
|
|
|
* Handle missing data
|
|
|
|
|
* Prevent infinite set/observe loops
|
|
|
|
|
* Add `bind:foo` shorthand
|
|
|
|
|
* `else` and `elseif` blocks
|
|
|
|
|
* Hoist imports
|
|
|
|
|
|
2016-11-22 14:04:31 +01:00
|
|
|
|
## 0.1.1
|
|
|
|
|
|
|
|
|
|
* Support unquoted attributes
|
|
|
|
|
* Handle entities in attributes
|
|
|
|
|
* Inline nested components
|
|
|
|
|
* `fire` and `on` methods
|
|
|
|
|
|
2016-11-21 04:57:07 +01:00
|
|
|
|
## 0.1.0
|
|
|
|
|
|
|
|
|
|
* Breaking change – Svelte compiler now generates constructor functions rather than factories ([#2](https://github.com/sveltejs/svelte/issues/2))
|
2016-11-22 14:04:31 +01:00
|
|
|
|
* SVG support
|
2016-11-21 04:57:07 +01:00
|
|
|
|
|
2016-11-20 19:14:34 +01:00
|
|
|
|
## 0.0.2
|
|
|
|
|
|
|
|
|
|
* First release capable of building TodoMVC
|
|
|
|
|
|
|
|
|
|
## 0.0.1
|
|
|
|
|
|
|
|
|
|
* Just squatting on the package name
|