File tree Expand file tree Collapse file tree 8 files changed +76
-58
lines changed Expand file tree Collapse file tree 8 files changed +76
-58
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# @patternfly/pfe-core
2
2
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
+
3
52
## 4.0.5
4
53
### Patch Changes
5
54
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @patternfly/pfe-core" ,
3
- "version" : " 4 .0.5 " ,
3
+ "version" : " 5 .0.0 " ,
4
4
"license" : " MIT" ,
5
5
"description" : " PatternFly Elements Core Library" ,
6
6
"customElements" : " custom-elements.json" ,
Original file line number Diff line number Diff line change 1
1
# @patternfly/elements
2
2
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
+
3
27
## 4.0.2
4
28
5
29
### Patch Changes
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @patternfly/elements" ,
3
3
"license" : " MIT" ,
4
- "version" : " 4.0.2 " ,
4
+ "version" : " 4.1.0 " ,
5
5
"description" : " PatternFly Elements" ,
6
6
"customElements" : " custom-elements.json" ,
7
7
"type" : " module" ,
130
130
"dependencies" : {
131
131
"@lit/context" : " ^1.1.2" ,
132
132
"@patternfly/icons" : " ^1.0.3" ,
133
- "@patternfly/pfe-core" : " ^4 .0.1 " ,
133
+ "@patternfly/pfe-core" : " ^5 .0.0 " ,
134
134
"lit" : " ^3.2.1" ,
135
135
"tslib" : " ^2.6.3"
136
136
}
You can’t perform that action at this time.
0 commit comments