Skip to content

Commit e16a89c

Browse files
Publish packages (#584)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a7be991 commit e16a89c

File tree

10 files changed

+56
-37
lines changed

10 files changed

+56
-37
lines changed

.changeset/big-lions-train.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

.changeset/eleven-sloths-worry.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/custom-element/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# example-custom-element
22

3+
## 0.0.22
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`a7be991`](https://github.com/Shopify/remote-dom/commit/a7be991202a16cec1866c7eccea86012a5a91263), [`a7be991`](https://github.com/Shopify/remote-dom/commit/a7be991202a16cec1866c7eccea86012a5a91263)]:
8+
- @remote-dom/core@1.9.0
9+
310
## 0.0.21
411

512
### Patch Changes

examples/custom-element/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-custom-element",
3-
"version": "0.0.21",
3+
"version": "0.0.22",
44
"type": "module",
55
"private": true,
66
"scripts": {

examples/getting-started/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# example-getting-started
22

3+
## 0.0.22
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`a7be991`](https://github.com/Shopify/remote-dom/commit/a7be991202a16cec1866c7eccea86012a5a91263), [`a7be991`](https://github.com/Shopify/remote-dom/commit/a7be991202a16cec1866c7eccea86012a5a91263)]:
8+
- @remote-dom/core@1.9.0
9+
310
## 0.0.21
411

512
### Patch Changes

examples/getting-started/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-getting-started",
3-
"version": "0.0.21",
3+
"version": "0.0.22",
44
"type": "module",
55
"private": true,
66
"scripts": {

examples/kitchen-sink/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# example-kitchen-sink
22

3+
## 0.0.29
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`a7be991`](https://github.com/Shopify/remote-dom/commit/a7be991202a16cec1866c7eccea86012a5a91263), [`a7be991`](https://github.com/Shopify/remote-dom/commit/a7be991202a16cec1866c7eccea86012a5a91263)]:
8+
- @remote-dom/core@1.9.0
9+
310
## 0.0.28
411

512
### Patch Changes

examples/kitchen-sink/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "example-kitchen-sink",
33
"type": "module",
44
"private": true,
5-
"version": "0.0.28",
5+
"version": "0.0.29",
66
"scripts": {
77
"start": "vite"
88
},

packages/core/CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# @remote-dom/core
22

3+
## 1.9.0
4+
5+
### Minor Changes
6+
7+
- [#583](https://github.com/Shopify/remote-dom/pull/583) [`a7be991`](https://github.com/Shopify/remote-dom/commit/a7be991202a16cec1866c7eccea86012a5a91263) Thanks [@lemonmade](https://github.com/lemonmade)! - Improved `RemoteMutationObserver` to support automatic emptying and observing multiple nodes
8+
9+
If you are observing a multi-node list — such as a `DocumentFragment` or `<template>` element — you can now provide a custom `id` option when observing each node. This allows you to treat the observer as a kind of "virtual root" for a list of nodes, similar to the role the `DocumentFragment` plays in the DOM. You are responsible for giving each node a unique ID, and this class will take care of correctly attaching that node to the root of the remote tree.
10+
11+
```js
12+
const observer = new RemoteMutationObserver(connection);
13+
14+
let id = 0;
15+
for (const child of documentFragment.childNodes) {
16+
observer.observe(child, {
17+
id: `DocumentFragment:${id++}`,
18+
});
19+
}
20+
```
21+
22+
You can also now provide an `empty` option to `RemoteMutationObserver.disconnect()` in order to clear out children in remote environment:
23+
24+
```js
25+
const observer = new RemoteMutationObserver(connection);
26+
27+
observer.observe(container);
28+
29+
observer.disconnect({empty: true});
30+
```
31+
32+
- [#583](https://github.com/Shopify/remote-dom/pull/583) [`a7be991`](https://github.com/Shopify/remote-dom/commit/a7be991202a16cec1866c7eccea86012a5a91263) Thanks [@lemonmade](https://github.com/lemonmade)! - Expose `remoteId()` and `setRemoteId()` for getting and setting a Node's remote ID
33+
334
## 1.8.1
435

536
### Patch Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"access": "public",
88
"@remote-dom/registry": "https://registry.npmjs.org"
99
},
10-
"version": "1.8.1",
10+
"version": "1.9.0",
1111
"engines": {
1212
"node": ">=14.0.0"
1313
},

0 commit comments

Comments
 (0)