Skip to content

Latest commit

 

History

History
627 lines (347 loc) · 13.5 KB

CHANGELOG.md

File metadata and controls

627 lines (347 loc) · 13.5 KB

Change Log

This project adheres to Semantic Versioning.

0.28.0 - 2022-01-30

Added

  • Added back in the old map diff algorithm #192

0.27.12 - 2021-02-20

Added

0.27.11 - 2020-10-20

Added

Removed

  • Remove seemingly unneeded code - 0.27.11-beta.0 #143

0.27.10 - 2020-10-13

Added

0.27.9 - 2020-09-25

Fixed

  • Fixed an issue with hydrating components with children.

0.27.8 - 2020-09-02

Fixed

  • Fix template tags for event handlers fix #130

0.27.7 - 2020-07-11

Removed

  • Removed sinuous/map/mini module.

Fixed

  • Permit observables as values in style objects in Typescript + JSX #123 thanks @lynlevenick 💛

0.27.6 - 2020-06-27

Fixed

  • Fix typings in api.s and npm package. Revert JSX's d.ts rename #119

0.27.5 - 2020-06-20

Removed

  • Removed sinuous/memo module. This is available as a standalone module at luwes/memo.

0.27.4 - 2020-06-20

Added

  • Typescript definition changes and explaining Sinuous internals #114 thanks @heyheyhello 💛

0.27.3 - 2020-05-23

Added

  • Update babel-plugin-htm to 3.0.0 and simplify upstream diff #110 thanks @heyheyhello
  • Improve typings in observable, computed, and map #111 thanks @heyheyhello 💛

0.27.2 - 2020-05-12

Fixed

  • Fixed hydrate empty child bug 0d66864

0.27.1 - 2020-05-04

Fixed

  • Fixed hydrate conditional root element for real
  • Fixed JSX observable types #105.

0.27.0 - 2020-04-25

Added

  • Add lighter but equaly fast map. #102 Minimal Todo app is just 2.2kB instead of 2.62kB 🏌️‍♂️
  • Fix hydrate conditional root element w/ children 81cb57c

0.26.2 - 2020-03-29

Fixed

  • Fixed nested fragment issue #88.

0.26.1 - 2020-03-25

Fixed

  • Fixed sample argument issue when fn would be an observable.

0.26.0 - 2020-03-25

Removed

  • Removed explicit cleanup of dom element listeners 0791cf9

Added

  • Added observable on function #82.

0.25.2 - 2020-03-16

Changed

  • Added call context to partial attributes
  • Fixed hydrate element w/ children bug
  • Fixed hydrate regression

0.25.1 - 2020-03-11

Changed

  • Fixed a treeshake issue #76.
  • Fixed data propName scope issue.

0.25.0 - 2020-03-09

Changed

  • Removed support for IE9 and IE10.
  • Use of Array.from() in the library (requires a polyfill in IE11) If you need IE11 support it's almost implied you'll need an Array.from() polyfill. It's used enough in Sinuous to replace the hacky [].slice.call(arrayLike).
  • Golf down bytes in hydrate going from 1.07kB to 989B ⛳️

0.24.3 - 2020-03-06

Added

  • Added support for hydrating conditional root elements.

0.24.2 - 2020-02-19

Fixed

  • Fixed sourcemaps by adding rollup-plugin-sourcemaps.

0.24.1 - 2020-02-18

Added

  • Added insert into empty node support for hydrate.

0.24.0 - 2020-02-06

Added

  • Reordered arguments of api.property() #69
  • Added lazy executed component children #68

0.23.3 - 2020-02-02

Fixed

  • Fixed nested transactions #66

0.23.2 - 2020-02-02

Fixed

  • Fixed minify bug `._propName
  • Fixed observable types #65

0.23.1 - 2020-01-31

Fixed

  • Fixed false positive for clone flag in template.

0.23.0 - 2020-01-31

Added

  • Added auto-import pragma option to sinuous/babel-plugin-htm. For example:
plugins: [
  [
    'sinuous/babel-plugin-htm',
    {
      import: 'sinuous',
    },
  ],
  [
    'sinuous/babel-plugin-htm',
    {
      pragma: 'hs',
      tag: 'svg',
      import: 'sinuous',
    },
    'svg',
  ],
];

0.22.0 - 2020-01-30 - BREAKING CHANGES

Changed

  • Renamed html and svg to dhtml and dsvg in sinuous/hydrate.

Added

  • Added sinuous/render module for top down render functions.

0.21.4 - 2020-01-24

Fixed

  • Fixed an issue where the clearing of a DOM node that was previously pulled out or moved in the DOM cleared siblings before the content.
  • Fixed memoizing by adding support for Arrays and DOM nodes to be serialized.

0.21.3 - 2020-01-17

0.21.2 - 2020-01-17

0.21.1 - 2020-01-17

Fixed

  • Fixed memo issue.

0.21.0 - 2020-01-17

Added

  • Added sinuous/memo module.

0.20.1 - 2020-01-15

Fixed

  • Fixed some issues with the new data module.

0.20.0 - 2020-01-10

Added

  • Added sinuous/data module #53
  • Improved sinuous/template, accepts objects and functions as data.

0.19.3 - 2020-01-04

Fixed

  • Fixed hydrate root props handling.

Added

  • Hydrate components support.

0.19.2 - 2020-01-02

Added

  • Added element context to accessor calls in property and insert api.

0.19.1 - 2020-01-01

Fixed

  • Fixed CSS selector escaping in hydrate.

Added

  • Added types for context() and internal api methods.
  • Added tag name selecting in hydrate, for example:
hydrate(html` <body onclick="${blur}"></body> `);

0.19.0 - 2019-12-25

Added

  • Added type declarations #52

0.18.5 - 2019-12-15

Added

  • Added special bundle to display bundle size of Sinuous w/ observable included.

0.18.4 - 2019-12-13

Changed

  • Use Sinuous api instead of template hooks and golf some bytes 🏌️‍♂️

0.18.3 - 2019-12-13

Removed

  • Golf down some bytes in map (-68 B) ⛳️

0.18.2 - 2019-12-07

Fixed

  • Fixed memory leak in observable #51

0.18.1 - 2019-12-03

Added

  • Add S alias for the all package which is meant to include in your webpage with a script tag.

0.18.0 - 2019-12-03

Added

  • Added all package for easy use with a script tag.

0.17.2 - 2019-11-28

0.17.1 - 2019-11-28

Fixed

  • Fixed hydrate content function that returns a stringable.

0.17.0 - 2019-11-24

Added

  • Added implicit root selector to hydrate.

0.16.3 - 2019-11-03

Added

  • Added sourcemaps to all bundles

0.16.2 - 2019-11-02

0.16.1 - 2019-11-02

Fixed

0.16.0 - 2019-10-06

Added

  • Added partial attribute support #40

0.15.3 - 2019-10-03

Fixed

  • Added better support for adjacent text nodes in hydrate.

0.15.2 - 2019-09-28

Fixed

  • Fixed babel-plugin-htm TypeError: Cannot read property '0' of null.

Changed

  • Made property api accept plain objects.

0.15.1 - 2019-09-25

Changed

  • Changed map mini import to be import { map } from 'sinuous/map/mini' instead of import { mini } from 'sinuous/map'.
  • Re-named variables in map and golfed down the bundle from 1.45kB to 1.19kB, also by removing the fast path for swap backward and swap forward.

0.15.0 - 2019-09-13

Added

  • Added basic hydrate feature #36
  • Disable observable cleaning by default in map for repeated template's.

0.14.2 - 2019-09-04

Fixed

  • Prevented running duplicate nested computations.
  • Marked removed children computations as fresh so they skip running.
  • Fixed a transaction bug which prevent nullish values from being set.
  • Improved performance by using Set for the subscribers #20

Added

  • Added import { computed } from 'sinuous/observable' which S is now an alias for.

0.14.1 - 2019-08-29

Fixed

  • Fixed template scope key actions bug. Impacted performance and incorrect rendering. Visible in JS Framework Benchmark.

Changed

0.14.0 - 2019-08-27 - BREAKING CHANGES

Added

  • Added import { mini } from 'sinuous/map'. It's only 570 bytes heiiii! #32

Gob

Changed

  • Breaking changes import map from 'sinuous/map' to import { map } from 'sinuous/map'

0.13.1 - 2019-08-11

Fixed

  • Fixed same key observe tags in template fix #5

Added

  • Added transaction method #21

0.13.0 - 2019-08-03

Added

  • Added web ES modules support #27

Fixed

0.12.9 - 2019-07-31

Fixed

0.12.8 - 2019-07-31

Added

  • Added HTM's support for HTML comments
  • Added out of the box support down to IE9

Fixed

0.12.7 - 2019-07-28

Fixed

0.12.6 - 2019-07-28

Fixed

  • Fixed naming issue for umd and iife bundles
  • Add observable duplicate edges check
  • Replace Map w/ array for map disposers

0.12.5 - 2019-07-23

Fixed

0.12.4 - 2019-07-23

Fixed

0.12.3 - 2019-07-22

Fixed

Changed

  • Upgraded sinuous/htm and sinuous/babel-plugin-htm to latest version.

0.12.2 - 2019-07-21

Added

  • Added support for plain array inserts again w/ no size increase.

0.12.1 - 2019-07-19

Changed

  • Make map return a DocumentFragment.
  • Optimized and re-used code for full replace in map.

0.12.0 - 2019-07-17

Added

  • Added SVG support.

Removed

  • Removed plain array inserts. Fragments can be used for this aka
html`
  <h1>Title</h1>
  <p>Some text</p>
`;

0.11.4 - 2019-07-07

Changed

  • Prioritized string and numeric values for insert.

0.11.3 - 2019-07-07

Removed

  • Removed array to node support in insert. Save some bytes.

0.11.2 - 2019-07-07

Changed

  • Fixed mixed exports It's not recommended to have a default AND named exports

Removed

  • Removed multi expressions

0.11.1 - 2019-07-04

Added

  • Added minified browser version .min.js.

Removed

  • Removed shorthand tag parser from hyperscript.
  • Removed specialized attribute ref. No need w/ Sinuous since it returns plain elements.
  • Removed unneeded api on h tag.

Changed

  • Optimized rollup/terser config for smaller bundle.

0.11.0 - 2019-07-03

Added

  • Added sinuous/htm and sinuous/babel-plugin-htm supporting fragments.
  • Added easy import import { html } from 'sinuous';

0.10.1 - 2019-07-02

Changed

  • Removed specialized attribute bindings.
  • Removed specialized Capture syntax.
  • Used Sinuous's normalizeArray in map, save bytes.

0.10.0 - 2019-06-30 - BREAKING CHANGES

Changed

  • Removed classList property handler, this can be done with a function.
  • Removed specialized events property, HTM supports spread props.
  • Removed initial execution of non observable event handlers so there is now no need for the extra closure. Fixes #3
  • Removed Date, RegExp coercion This can be done in the view.

0.9.2 - 2019-06-29

Changed

  • Removed named: true in rollup config to fix default import.

0.9.1 - 2019-06-29

Changed

  • Optimized template insert action w/ Text.data
  • Changed .mjs to .esm.js to fix submodule issue

0.9.0 - 2019-06-22

Removed

  • Removed support for the legacy observable library It has some limitations:
    • Not possible to store a function because passing a function as argument of the observable setter acts as the subscribe function. Because of this every observable has its own subscribe function.
    • Needs extra cleanup logic

Added

  • First release