Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Oct 26, 2021
1 parent 6f98995 commit 785cb99
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 27 deletions.
51 changes: 48 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,57 @@
# Changelog

## 1.2.0 - 2021-10-25

### New Features
#### Custom Renderers

This release adds support custom renderers through a new "universal" transform. Solid now provides a sub module `solid-js/universal` that exports a `createRenderer` method that allows you to create your own runtimes. This will enable things like native mobile and desktop, canvas and webgl, or even rendering to the terminal. This is still new so very much looking for feedback.

#### Spreads Added to Solid's `html`

It's been a long time coming but Solid's Tagged Template Literals now support element and component spreads using htm inspired syntax.
```js
html`<div ...${props} />`
```

### Fixes

#### Dynamic Spreads now work on Components

Previously spreads on components would only track property changes on bound objects and not when the whole object changed. This now works:
```js
<MyComponent {...getStuff()} />
```

#### ClassList properly merges multiple classnames in the key

It is common in libraries like Tailwind to apply multiple classes at the same time. There was an issue where true and false resolutions were cancelling each other out. This would only set `text-sm`.

```js
<div
classList={{
"px-2.5 py-1.5 text-xs": false,
"px-3 py-2 text-sm": false,
"px-4 py-2 text-sm": true,
"px-4 py-2 text-base": false,
"px-6 py-3 text-base": false
}}
/>
```
#### Consistent handling of HTMLEntities

Things like `&nbsp;` used to render differently depending if in elements or components(or fragments). This has been made consistent across all three.
#### Various improvements to Types and Transitions

A lot of bugs from the last minor release were around Transitions that have been addressed. And as always Types have been gradually improving.

## 1.1.0 - 2021-08-09

Expanding Solid's concurrency to include scheduling. Bug fixes around Types and around reactive execution order guarantees.

### New Features

### `createUniqueId`
#### `createUniqueId`

A universal id generator that works across server/browser.

Expand All @@ -16,7 +61,7 @@ const id = createUniqueId();

> **Note** on the server this only works under hydratable components
### `from`
#### `from`

A simple helper to make it easier to interopt with external producers like RxJS observables or with Svelte Stores. This basically turns any subscribable (object with a `subscribe` method) into a Signal and manages subscription and disposal.

Expand All @@ -35,7 +80,7 @@ const clock = from(set => {

> Note: Signals created by `from` have equality checks turned off to interface better with external streams and sources.
### `enableScheduling` (experimental)
#### `enableScheduling` (experimental)

By default Solid's concurrent rendering/Transitions doesn't schedule work differently and just runs synchronously. Its purpose is to smooth out IO situations like Navigation. However now you can opt into interruptible scheduling similar to React's behavior by calling this once at your programs entry. I've yet to see a realworld scenario where this makes a big difference but now we can do cool demos too and start testing it.

Expand Down
42 changes: 21 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
"babel-jest": "^26.6.3",
"babel-plugin-jsx-dom-expressions": "^0.30.0",
"coveralls": "^3.1.1",
"dom-expressions": "0.30.1",
"dom-expressions": "0.30.2",
"gitly": "^2.1.0",
"hyper-dom-expressions": "0.30.1",
"hyper-dom-expressions": "0.30.2",
"jest": "~26.6.3",
"jest-ts-webcompat-resolver": "^1.0.0",
"lerna": "^3.22.1",
"lit-dom-expressions": "0.30.1",
"lit-dom-expressions": "0.30.2",
"ncp": "2.0.0",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2",
Expand Down

0 comments on commit 785cb99

Please sign in to comment.