Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .changeset/all-tigers-wear.md

This file was deleted.

29 changes: 0 additions & 29 deletions .changeset/clear-pugs-make.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/good-keys-suffer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/six-phones-joke.md

This file was deleted.

49 changes: 49 additions & 0 deletions core/pfe-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
# @patternfly/pfe-core

## 5.0.0
### Major Changes

- 0277045: Enable `connectedCallback()` and context protocol in SSR scenarios.

BREAKING CHANGE
This change affects any element which is expected to execute in node JS when
lit-ssr shims are present. By enabling the `connectedCallback()` to execute
server side. Elements must ensure that their connectedCallbacks do not try to
access the DOM.

Before:

```js
connectedCallback() {
super.connectedCallback();
this.items = [...this.querySelectorAll('my-item')];
}
```

After:
```js
connectedCallback() {
super.connectedCallback();
if (!isServer) {
this.items = isServer ? [] : [...this.querySelectorAll('my-item')];
}
}
```

### Minor Changes

- 8b5b699: **SSR**: added `ssr-hint-has-slotted` and `ssr-hint-has-slotted-default` attributes to elements that use slot controller.

When running SSR on elements with slots, add these attributes to ensure they render correctly.

```html
<pf-card ssr-hint-has-slotted-default
ssr-hint-has-slotted="header,footer">
<h2 slot="header">Header Content</h2>
<p>Default content</p>
<span slot="footer">Footer Content</span>
</pf-card>
```

### Patch Changes

- a2f3254: `ScrollSpyController`: respond to hashchange events

## 4.0.5
### Patch Changes

Expand Down
2 changes: 1 addition & 1 deletion core/pfe-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/pfe-core",
"version": "4.0.5",
"version": "5.0.0",
"license": "MIT",
"description": "PatternFly Elements Core Library",
"customElements": "custom-elements.json",
Expand Down
24 changes: 24 additions & 0 deletions elements/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @patternfly/elements

## 4.1.0
### Minor Changes

- 8b5b699: **SSR**: added `ssr-hint-has-slotted` and `ssr-hint-has-slotted-default` attributes to elements that use slot controller.

When running SSR on elements with slots, add these attributes to ensure they render correctly.

```html
<pf-card ssr-hint-has-slotted-default
ssr-hint-has-slotted="header,footer">
<h2 slot="header">Header Content</h2>
<p>Default content</p>
<span slot="footer">Footer Content</span>
</pf-card>
```

### Patch Changes

- 996e089: **SSR**: enable more elements and more features to be rendered server-side
- Updated dependencies [0277045]
- Updated dependencies [8b5b699]
- Updated dependencies [a2f3254]
- @patternfly/pfe-core@5.0.0

## 4.0.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions elements/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@patternfly/elements",
"license": "MIT",
"version": "4.0.2",
"version": "4.1.0",
"description": "PatternFly Elements",
"customElements": "custom-elements.json",
"type": "module",
Expand Down Expand Up @@ -130,7 +130,7 @@
"dependencies": {
"@lit/context": "^1.1.2",
"@patternfly/icons": "^1.0.3",
"@patternfly/pfe-core": "^4.0.1",
"@patternfly/pfe-core": "^5.0.0",
"lit": "^3.2.1",
"tslib": "^2.6.3"
}
Expand Down
Loading