Skip to content

Commit 2a40547

Browse files
Release 6.2.3 (#4932)
- Moved permissions into the job - Cleaned up DOM errors in `mantine` and `primereact` themes
1 parent 9b4892d commit 2a40547

8 files changed

Lines changed: 28 additions & 68 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@ name: Release
22
on:
33
release:
44
types: [published]
5-
6-
permissions:
7-
id-token: write
8-
5+
push:
6+
tags:
7+
- 'v*' # Triggers for tags starting with 'v', such as v1.0
98
jobs:
109
release_to_npm:
1110
name: Release to npm
1211
runs-on: ubuntu-latest
12+
permissions:
13+
content: read
14+
id-token: write
1315
steps:
1416
- uses: actions/checkout@v6
15-
- name: Use Node.js 22.x
17+
- name: Use Node.js 24.x
1618
uses: actions/setup-node@v6
1719
with:
18-
node-version: 22.x
20+
node-version: 24.x
1921
cache: 'npm'
2022
cache-dependency-path: 'package-lock.json'
2123
- run: npm i -g npm@9
@@ -37,4 +39,4 @@ jobs:
3739
3840
echo "NPM_TAG=${NPM_TAG_VALUE}" >> $GITHUB_ENV
3941
echo "Determined NPM_TAG: ${NPM_TAG_VALUE}"
40-
- run: npx nx release publish --tag=$NPM_TAG
42+
- run: npx nx release publish --tag=$NPM_TAG --provenance

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ should change the heading of the (upcoming) version to include a major version b
1616
1717
-->
1818

19+
# 6.2.3
20+
21+
## @rjsf/mantine
22+
23+
- Updated `cleanupOptions()` to add `enableMarkdownInHelp` and `globalOptions` to avoid DOM errors
24+
25+
## @rjsf/primereact
26+
27+
- Updated `ArrayFieldTemplate` to destructure additional fields to avoid DOM errors
28+
29+
## Dev / docs / playground
30+
31+
- Updated the `release.yml` to move the permissions within the job, switch to node 24 and add push checking
32+
1933
# 6.2.2
2034

2135
## Dev / docs / playground

packages/mantine/src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ const uiOptionsKeys: Array<keyof UIOptionsType> = [
2525
'duplicateKeySuffixSeparator',
2626
'enumOptions',
2727
'enableMarkdownInDescription',
28+
'enableMarkdownInHelp',
29+
'globalOptions',
2830
];
2931

3032
export function cleanupOptions<T extends object>(options: T): Omit<T, keyof UIOptionsType> {

packages/mantine/test/__snapshots__/Array.test.tsx.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9124,7 +9124,6 @@ exports[`with title and description with global label off checkboxes 1`] = `
91249124
autocomplete="off"
91259125
class="mantine-MultiSelect-inputField m_45c4369d mantine-PillsInputField-field"
91269126
data-type="visible"
9127-
globaloptions="[object Object]"
91289127
id="root"
91299128
type="text"
91309129
value=""

packages/primereact/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export default function ArrayFieldTemplate<
3434
title,
3535
registry,
3636
required,
37+
// Destructure the following props out so that they aren't put into the DOM
38+
formData,
39+
rawErrors,
3740
...rest
3841
} = props;
3942

packages/primereact/test/__snapshots__/Array.test.tsx.snap

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ exports[`array fields array 1`] = `
2121
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
2222
data-pc-name="fieldset"
2323
data-pc-section="root"
24-
formdata=""
2524
id="root"
2625
>
2726
<div
@@ -104,7 +103,6 @@ exports[`array fields array icons 1`] = `
104103
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
105104
data-pc-name="fieldset"
106105
data-pc-section="root"
107-
formdata="a,b"
108106
id="root"
109107
>
110108
<div
@@ -494,7 +492,6 @@ exports[`array fields fixed array 1`] = `
494492
data-pc-name="fieldset"
495493
data-pc-section="root"
496494
errorschema="[object Object]"
497-
formdata=","
498495
id="root"
499496
>
500497
<div
@@ -797,7 +794,6 @@ exports[`nameGenerator bracketNameGenerator array of objects 1`] = `
797794
class="rjsf-field rjsf-field-array rjsf-field-array-of-object sortable-form-fields p-fieldset p-component"
798795
data-pc-name="fieldset"
799796
data-pc-section="root"
800-
formdata="[object Object],[object Object]"
801797
id="root"
802798
>
803799
<div
@@ -1129,7 +1125,6 @@ exports[`nameGenerator bracketNameGenerator array of strings 1`] = `
11291125
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
11301126
data-pc-name="fieldset"
11311127
data-pc-section="root"
1132-
formdata="foo,bar"
11331128
id="root"
11341129
>
11351130
<div
@@ -1428,7 +1423,6 @@ exports[`nameGenerator bracketNameGenerator fixed array 1`] = `
14281423
data-pc-name="fieldset"
14291424
data-pc-section="root"
14301425
errorschema="[object Object]"
1431-
formdata="text,42,true"
14321426
id="root"
14331427
>
14341428
<div
@@ -1595,7 +1589,6 @@ exports[`nameGenerator bracketNameGenerator nested arrays 1`] = `
15951589
class="rjsf-field rjsf-field-array rjsf-field-array-of-array sortable-form-fields p-fieldset p-component"
15961590
data-pc-name="fieldset"
15971591
data-pc-section="root"
1598-
formdata="a,b,c,d"
15991592
id="root"
16001593
>
16011594
<div
@@ -1693,7 +1686,6 @@ exports[`nameGenerator bracketNameGenerator nested arrays 1`] = `
16931686
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
16941687
data-pc-name="fieldset"
16951688
data-pc-section="root"
1696-
formdata="a,b"
16971689
id="root_0"
16981690
>
16991691
<div
@@ -1995,7 +1987,6 @@ exports[`nameGenerator bracketNameGenerator nested arrays 1`] = `
19951987
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
19961988
data-pc-name="fieldset"
19971989
data-pc-section="root"
1998-
formdata="c,d"
19991990
id="root_1"
20001991
>
20011992
<div
@@ -2283,7 +2274,6 @@ exports[`nameGenerator dotNotationNameGenerator array of objects 1`] = `
22832274
class="rjsf-field rjsf-field-array rjsf-field-array-of-object sortable-form-fields p-fieldset p-component"
22842275
data-pc-name="fieldset"
22852276
data-pc-section="root"
2286-
formdata="[object Object],[object Object]"
22872277
id="root"
22882278
>
22892279
<div
@@ -2615,7 +2605,6 @@ exports[`nameGenerator dotNotationNameGenerator array of strings 1`] = `
26152605
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
26162606
data-pc-name="fieldset"
26172607
data-pc-section="root"
2618-
formdata="foo,bar"
26192608
id="root"
26202609
>
26212610
<div
@@ -2873,7 +2862,6 @@ exports[`with title and description array 1`] = `
28732862
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
28742863
data-pc-name="fieldset"
28752864
data-pc-section="root"
2876-
formdata=""
28772865
id="root"
28782866
>
28792867
<div
@@ -2961,7 +2949,6 @@ exports[`with title and description array icons 1`] = `
29612949
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
29622950
data-pc-name="fieldset"
29632951
data-pc-section="root"
2964-
formdata="a,b"
29652952
id="root"
29662953
>
29672954
<div
@@ -3337,7 +3324,6 @@ exports[`with title and description fixed array 1`] = `
33373324
data-pc-name="fieldset"
33383325
data-pc-section="root"
33393326
errorschema="[object Object]"
3340-
formdata=","
33413327
id="root"
33423328
>
33433329
<div
@@ -3477,7 +3463,6 @@ exports[`with title and description from both array 1`] = `
34773463
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
34783464
data-pc-name="fieldset"
34793465
data-pc-section="root"
3480-
formdata=""
34813466
id="root"
34823467
>
34833468
<div
@@ -3565,7 +3550,6 @@ exports[`with title and description from both array icons 1`] = `
35653550
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
35663551
data-pc-name="fieldset"
35673552
data-pc-section="root"
3568-
formdata="a,b"
35693553
id="root"
35703554
>
35713555
<div
@@ -3941,7 +3925,6 @@ exports[`with title and description from both fixed array 1`] = `
39413925
data-pc-name="fieldset"
39423926
data-pc-section="root"
39433927
errorschema="[object Object]"
3944-
formdata=","
39453928
id="root"
39463929
>
39473930
<div
@@ -4081,7 +4064,6 @@ exports[`with title and description from uiSchema array 1`] = `
40814064
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
40824065
data-pc-name="fieldset"
40834066
data-pc-section="root"
4084-
formdata=""
40854067
id="root"
40864068
>
40874069
<div
@@ -4169,7 +4151,6 @@ exports[`with title and description from uiSchema array icons 1`] = `
41694151
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
41704152
data-pc-name="fieldset"
41714153
data-pc-section="root"
4172-
formdata="a,b"
41734154
id="root"
41744155
>
41754156
<div
@@ -4545,7 +4526,6 @@ exports[`with title and description from uiSchema fixed array 1`] = `
45454526
data-pc-name="fieldset"
45464527
data-pc-section="root"
45474528
errorschema="[object Object]"
4548-
formdata=","
45494529
id="root"
45504530
>
45514531
<div
@@ -4685,7 +4665,6 @@ exports[`with title and description with global label off array 1`] = `
46854665
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
46864666
data-pc-name="fieldset"
46874667
data-pc-section="root"
4688-
formdata=""
46894668
id="root"
46904669
>
46914670
<div
@@ -4768,7 +4747,6 @@ exports[`with title and description with global label off array icons 1`] = `
47684747
class="rjsf-field rjsf-field-array rjsf-field-array-of-string sortable-form-fields p-fieldset p-component"
47694748
data-pc-name="fieldset"
47704749
data-pc-section="root"
4771-
formdata="a,b"
47724750
id="root"
47734751
>
47744752
<div
@@ -5103,7 +5081,6 @@ exports[`with title and description with global label off fixed array 1`] = `
51035081
data-pc-name="fieldset"
51045082
data-pc-section="root"
51055083
errorschema="[object Object]"
5106-
formdata=","
51075084
id="root"
51085085
>
51095086
<div

0 commit comments

Comments
 (0)