Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61ead0f

Browse files
chore: prepare release (#2901)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 42b4466 commit 61ead0f

File tree

8 files changed

+76
-58
lines changed

8 files changed

+76
-58
lines changed

.changeset/all-tigers-wear.md

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

.changeset/clear-pugs-make.md

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

.changeset/good-keys-suffer.md

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

.changeset/six-phones-joke.md

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

core/pfe-core/CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
11
# @patternfly/pfe-core
22

3+
## 5.0.0
4+
### Major Changes
5+
6+
- 0277045: Enable `connectedCallback()` and context protocol in SSR scenarios.
7+
8+
BREAKING CHANGE
9+
This change affects any element which is expected to execute in node JS when
10+
lit-ssr shims are present. By enabling the `connectedCallback()` to execute
11+
server side. Elements must ensure that their connectedCallbacks do not try to
12+
access the DOM.
13+
14+
Before:
15+
16+
```js
17+
connectedCallback() {
18+
super.connectedCallback();
19+
this.items = [...this.querySelectorAll('my-item')];
20+
}
21+
```
22+
23+
After:
24+
```js
25+
connectedCallback() {
26+
super.connectedCallback();
27+
if (!isServer) {
28+
this.items = isServer ? [] : [...this.querySelectorAll('my-item')];
29+
}
30+
}
31+
```
32+
33+
### Minor Changes
34+
35+
- 8b5b699: **SSR**: added `ssr-hint-has-slotted` and `ssr-hint-has-slotted-default` attributes to elements that use slot controller.
36+
37+
When running SSR on elements with slots, add these attributes to ensure they render correctly.
38+
39+
```html
40+
<pf-card ssr-hint-has-slotted-default
41+
ssr-hint-has-slotted="header,footer">
42+
<h2 slot="header">Header Content</h2>
43+
<p>Default content</p>
44+
<span slot="footer">Footer Content</span>
45+
</pf-card>
46+
```
47+
48+
### Patch Changes
49+
50+
- a2f3254: `ScrollSpyController`: respond to hashchange events
51+
352
## 4.0.5
453
### Patch Changes
554

core/pfe-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@patternfly/pfe-core",
3-
"version": "4.0.5",
3+
"version": "5.0.0",
44
"license": "MIT",
55
"description": "PatternFly Elements Core Library",
66
"customElements": "custom-elements.json",

elements/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# @patternfly/elements
22

3+
## 4.1.0
4+
### Minor Changes
5+
6+
- 8b5b699: **SSR**: added `ssr-hint-has-slotted` and `ssr-hint-has-slotted-default` attributes to elements that use slot controller.
7+
8+
When running SSR on elements with slots, add these attributes to ensure they render correctly.
9+
10+
```html
11+
<pf-card ssr-hint-has-slotted-default
12+
ssr-hint-has-slotted="header,footer">
13+
<h2 slot="header">Header Content</h2>
14+
<p>Default content</p>
15+
<span slot="footer">Footer Content</span>
16+
</pf-card>
17+
```
18+
19+
### Patch Changes
20+
21+
- 996e089: **SSR**: enable more elements and more features to be rendered server-side
22+
- Updated dependencies [0277045]
23+
- Updated dependencies [8b5b699]
24+
- Updated dependencies [a2f3254]
25+
- @patternfly/pfe-core@5.0.0
26+
327
## 4.0.2
428

529
### Patch Changes

elements/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@patternfly/elements",
33
"license": "MIT",
4-
"version": "4.0.2",
4+
"version": "4.1.0",
55
"description": "PatternFly Elements",
66
"customElements": "custom-elements.json",
77
"type": "module",
@@ -130,7 +130,7 @@
130130
"dependencies": {
131131
"@lit/context": "^1.1.2",
132132
"@patternfly/icons": "^1.0.3",
133-
"@patternfly/pfe-core": "^4.0.1",
133+
"@patternfly/pfe-core": "^5.0.0",
134134
"lit": "^3.2.1",
135135
"tslib": "^2.6.3"
136136
}

0 commit comments

Comments
 (0)