Skip to content

Commit 673f80d

Browse files
manzoorwanijkmanzoorwanijkyouknowriadanomiex
authored
Fix dataviews commonjs export (#67962)
Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: anomiex <bjorsch@git.wordpress.org>
1 parent 662455d commit 673f80d

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

packages/dataviews/CHANGELOG.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@
22

33
## Unreleased
44

5+
### Bug Fixes
6+
7+
- Fixed commonjs export ([#67962](https://github.com/WordPress/gutenberg/pull/67962))
8+
59
## 4.10.0 (2024-12-11)
610

711
## Breaking Changes
812

913
- Support showing or hiding title, media and description fields ([#67477](https://github.com/WordPress/gutenberg/pull/67477)).
10-
- Unify the `title`, `media` and `description` fields for the different layouts. So instead of the previous `view.layout.mediaField`, `view.layout.primaryField` and `view.layout.columnFields`, all the layouts now support these three fields with the following config ([#67477](https://github.com/WordPress/gutenberg/pull/67477)):
14+
- Unify the `title`, `media` and `description` fields for the different layouts. So instead of the previous `view.layout.mediaField`, `view.layout.primaryField` and `view.layout.columnFields`, all the layouts now support these three fields with the following config ([#67477](https://github.com/WordPress/gutenberg/pull/67477)):
1115

1216
```js
1317
const view = {
14-
type: 'table',
15-
titleField: 'title',
16-
mediaField: 'media',
17-
descriptionField: 'description',
18-
fields: [ 'author', 'date' ],
19-
}
18+
type: 'table',
19+
titleField: 'title',
20+
mediaField: 'media',
21+
descriptionField: 'description',
22+
fields: [ 'author', 'date' ],
23+
};
2024
```
2125

2226
## Internal

packages/dataviews/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"exports": {
2828
".": {
2929
"types": "./build-types/index.d.ts",
30-
"import": "./build-module/index.js"
30+
"import": "./build-module/index.js",
31+
"default": "./build/index.js"
3132
},
3233
"./wp": {
3334
"types": "./build-types/index.d.ts",

0 commit comments

Comments
 (0)