Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: may 2024 #5887

Merged
merged 19 commits into from May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
ba719f6
fix: declarations for node16/nodenext resolutions (#5881)
aliemir Apr 24, 2024
cc6285d
fix(inferencer): prism theme imports in ESM builds (#5836)
aliemir Apr 24, 2024
8a8f88b
fix(nextjs-router): next subpath imports (#5849)
aliemir Apr 24, 2024
c2ef59b
fix: qs imports and usage in ESM builds (#5850)
aliemir Apr 24, 2024
7c22b8e
refactor(react-table): allow conditional filters on `useTable` (#5862)
aliemir Apr 24, 2024
8d2dd43
refactor(core): prevent early access to `signal` from query context (…
aliemir Apr 24, 2024
a9dbd80
fix(devtools-server): broken auth flow in safari (#5865)
aliemir Apr 24, 2024
1c9a95f
feat(devtools): devtools improvements (#5875)
aliemir Apr 24, 2024
0a76576
fix(core): add fallback mutation function for `useOnError` (#5883)
aliemir Apr 24, 2024
9a0c1c8
fix(core): useMenu's default value of `hideOnMissingParameter` prop …
aliemir Apr 24, 2024
7b13515
fix(supabase): change default value of meta.select to "*" (#5841)
issa012 Apr 25, 2024
05b7cce
test(supabase): remove flaky auth from tests
aliemir Apr 25, 2024
a82ef6a
feat(auth-pages): allow translation for required input field messages…
Ac-Srikanth Apr 25, 2024
6fdbfad
Merge branch 'master' into releases/may
aliemir Apr 26, 2024
93c35d8
refactor(devtools): updated ui selector logic (#5898)
aliemir Apr 29, 2024
4e6a1fa
docs(deployment): improve devtools section (#5900)
aliemir Apr 30, 2024
4940b61
feat(mui): configurable `anchorOrigin` for `useNotificationProvider` …
Yash-271120 May 2, 2024
f3ddcce
fix(appwrite): make `meta.permissions` overrideable (#5886)
abdelrahman-essawy May 2, 2024
113c133
chore: remove version lock from @ant-design/icons package (#5908)
BatuhanW May 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/blue-trains-march.md
@@ -0,0 +1,6 @@
---
"@refinedev/antd": patch
"@refinedev/inferencer": patch
---

chore: remove version lock from @ant-design/icons 5.0.1 to ^5.0.1
7 changes: 7 additions & 0 deletions .changeset/clean-dryers-grow.md
@@ -0,0 +1,7 @@
---
"@refinedev/core": patch
---

refactor: add resource name to devtools xray calls

Added the resource name to the devtools xray calls to allow resource names to be displayed in the devtools even with custom query keys.
7 changes: 7 additions & 0 deletions .changeset/clean-elephants-matter.md
@@ -0,0 +1,7 @@
---
"@refinedev/devtools-server": patch
---

chore: move `@refinedev/devtools-ui` dependency

Moved `@refinedev/devtools-ui` dependency to `devDependencies` since only the `vite` output is used in the server.
11 changes: 11 additions & 0 deletions .changeset/cold-emus-visit.md
@@ -0,0 +1,11 @@
---
"@refinedev/antd": minor
"@refinedev/chakra-ui": minor
"@refinedev/mui": minor
---

feat: add message prop for required auth input fields for the above packages.

Now you can provide custom required messages with translate feature for all auth input fields(Login, register, forget password,update password).

Resolves #[5855](https://github.com/refinedev/refine/issues/5855)
10 changes: 10 additions & 0 deletions .changeset/cyan-wolves-cry.md
@@ -0,0 +1,10 @@
---
"@refinedev/devtools-internal": patch
"@refinedev/devtools-server": patch
"@refinedev/devtools-shared": patch
"@refinedev/devtools-ui": patch
---

feat: update resource name accessing logic

Updated resource name displaying logic to use `resourceName` from activity records to make sure `resource` is correctly displayed with custom query keys.
7 changes: 7 additions & 0 deletions .changeset/dull-spies-sparkle.md
@@ -0,0 +1,7 @@
---
"@refinedev/core": patch
---

fix: development errors being logged when `useOnError` is called without an auth provider

When there's no `authProvider` set, the `useOnError` hook will log `"no mutationFn found"` to the console in development because of missing `onError` property. This PR fixes the issue by providing a dummy `onError` function when `authProvider` is not set.
9 changes: 9 additions & 0 deletions .changeset/eleven-kangaroos-hope.md
@@ -0,0 +1,9 @@
---
"@refinedev/core": patch
---

refactor: prevented early accessing `signal` from `useQuery` of `@tanstack/react-query`

In query hooks, `signal` was accessed directly by destructuring which was causing issues in development mode with duplicated requests. This change accesses `queryContext` instead of destructured `signal` properly to prevent `@tanstack/react-query` from setting `abortSignalConsumed` flag unexpectedly.

Resolves [#5843](https://github.com/refinedev/refine/issues/5843)
7 changes: 7 additions & 0 deletions .changeset/fast-goats-explain.md
@@ -0,0 +1,7 @@
---
"@refinedev/nextjs-router": patch
---

fix: `/parse-table-params` export in node10 module resolutions

`/parse-table-params` subpath export is not correctly resolved by `node10` module resolutions.
9 changes: 9 additions & 0 deletions .changeset/few-terms-fetch.md
@@ -0,0 +1,9 @@
---
"@refinedev/mui": patch
---

feat: add ability to customize anchor origin from snackbar provider

Previously, `useNotificationProvider` used hardcoded `anchorOrigin` and `disableWindowBlurListener` values, preventing users to customize these values. This change moves these values to `<RefineSnackbarProvider />` as default props to allow users to customize them when needed.

Resolves [#5847](https://github.com/refinedev/refine/issues/5847)
10 changes: 10 additions & 0 deletions .changeset/flat-suns-push.md
@@ -0,0 +1,10 @@
---
"@refinedev/devtools-internal": patch
"@refinedev/devtools-server": patch
"@refinedev/devtools-shared": patch
"@refinedev/devtools-ui": patch
---

feat: add invalidate query button

Added `Invalidate Query` button to settled queries in the devtools panel to allow users to manually invalidate queries for debugging purposes.
7 changes: 7 additions & 0 deletions .changeset/forty-pianos-beam.md
@@ -0,0 +1,7 @@
---
"@refinedev/devtools-ui": patch
---

refactor: replace `react-json-view` with `react-json-view-lite`

Replaced outdated `react-json-view` package with `react-json-view-lite` for both performance and dependency resolution reasons.
7 changes: 7 additions & 0 deletions .changeset/happy-poets-smash.md
@@ -0,0 +1,7 @@
---
"@refinedev/inferencer": patch
---

fix: inferencer now should work with ESM builds

Fixed the issue with `prism-react-renderer` theme imports not being resolved correctly in ESM builds.
9 changes: 9 additions & 0 deletions .changeset/loud-toes-eat.md
@@ -0,0 +1,9 @@
---
"@refinedev/devtools-server": patch
---

fix: devtools authentication not working with safari

Fixed the authentication flow and cookie handling for Safari. Now devtools users will be able to authenticate and use the devtools server using Safari.

Resolves [#5753](https://github.com/refinedev/refine/issues/5753)
7 changes: 7 additions & 0 deletions .changeset/lucky-parents-matter.md
@@ -0,0 +1,7 @@
---
"@refinedev/devtools": minor
---

feat: devtools selector with all selectables

Updated devtools selector to display all available elements instead of relying on the user's pointer to select the element.
5 changes: 5 additions & 0 deletions .changeset/neat-oranges-begin.md
@@ -0,0 +1,5 @@
---
"@refinedev/supabase": patch
---

fix: in methods update, updateMany, create, createMany, meta.select changed to "\*". Resolves #5679
10 changes: 10 additions & 0 deletions .changeset/rude-suns-agree.md
@@ -0,0 +1,10 @@
---
"@refinedev/nextjs-router": patch
"@refinedev/react-router-v6": patch
"@refinedev/remix-router": patch
"@refinedev/strapi-v4": patch
---

fix: replace imports of `qs` with default imports

Updated `qs` imports and usage to prevent issues with ESM builds and to ensure correctly importing the module.
28 changes: 28 additions & 0 deletions .changeset/selfish-taxis-admire.md
@@ -0,0 +1,28 @@
---
"@refinedev/react-table": patch
---

fix: updated column filter transformation logic to handle conditional filters

`useTable` hook was ignoring the conditional filters with `"and"` and `"or"` operators, causing custom filtering logic inside the table to not work as expected and omitting the filters from the query. This PR enables working with conditionenal filters and fixes the disappearing filters issue.

To customize the `key` value of the conditional filter, you can use the `filterKey` property in the column's `meta` property. This property will be used as the key for the filter when setting the filter value to the table from `@refinedev/core`'s filter state and when setting the filter value to the filter state from the table.

```tsx
// An example of how to use the `filterKey` property in the column's `meta` property
const columns: ColumnDef<IPost> = [
{
id: "title",
header: "Title",
accessorKey: "title",
meta: {
// This is optional, if not defined column id will be used as the key
filterKey: "titleFilter",
// If operator is not `'eq'` or `'in'`, make sure to set the `filterOperator` property
filterOperator: "and",
},
},
];
```

Resolves [#5856](https://github.com/refinedev/refine/issues/5856)
7 changes: 7 additions & 0 deletions .changeset/shiny-colts-nail.md
@@ -0,0 +1,7 @@
---
"@refinedev/core": patch
---

fix: exclude internal button hook calls from devtools trace

Removed internal button hook calls from devtools trace to avoid crowding the trace with unnecessary information.
34 changes: 34 additions & 0 deletions .changeset/shy-pots-sparkle.md
@@ -0,0 +1,34 @@
---
"@refinedev/airtable": patch
"@refinedev/antd": patch
"@refinedev/appwrite": patch
"@refinedev/chakra-ui": patch
"@refinedev/cli": patch
"@refinedev/core": patch
"@refinedev/devtools": patch
"@refinedev/devtools-internal": patch
"@refinedev/devtools-shared": patch
"@refinedev/devtools-ui": patch
"@refinedev/graphql": patch
"@refinedev/hasura": patch
"@refinedev/inferencer": patch
"@refinedev/kbar": patch
"@refinedev/mantine": patch
"@refinedev/medusa": patch
"@refinedev/mui": patch
"@refinedev/nestjs-query": patch
"@refinedev/nestjsx-crud": patch
"@refinedev/nextjs-router": patch
"@refinedev/react-hook-form": patch
"@refinedev/react-router-v6": patch
"@refinedev/react-table": patch
"@refinedev/remix-router": patch
"@refinedev/simple-rest": patch
"@refinedev/strapi": patch
"@refinedev/strapi-v4": patch
"@refinedev/supabase": patch
"@refinedev/ui-tests": patch
"@refinedev/ui-types": patch
---

fix: declaration files in node10, node16 and nodenext module resolutions
7 changes: 7 additions & 0 deletions .changeset/tasty-garlics-notice.md
@@ -0,0 +1,7 @@
---
"@refinedev/appwrite": minor
---

fix: add ability to customize default permission without explicitly passing them on each mutation

fixing an issue which didn't allow users to override the default `readPermissions` / `writePermissions` values `Role.any()`, by passing `defaultReadPermissions` / `defaultWritePermissions` OR by passing `meta?.readPermissions` / `meta?.writePermissions`.
7 changes: 7 additions & 0 deletions .changeset/tender-cars-talk.md
@@ -0,0 +1,7 @@
---
"@refinedev/nextjs-router": patch
---

fix: replace `next/*` imports with extensions in ESM builds

Updated imports from `next/*` to `next/*.js` to prevent issues with ESM builds and to ensure correctly importing the module.
7 changes: 7 additions & 0 deletions .changeset/weak-impalas-relate.md
@@ -0,0 +1,7 @@
---
"@refinedev/core": patch
---

fix(core): `useMenu` `hideOnMissingParameter` prop default value set to `true`

There was an error in the `useMenu` hook's `hideOnMissingParameter` prop. Its default value should be `true` but it was missed when props are passed partially. This PR fixes the issue by setting the default value to `true`.
8 changes: 8 additions & 0 deletions documentation/blog/2024-03-19-ts-shadcn.md
Expand Up @@ -1693,6 +1693,14 @@ export const BlogPostList: React.FC<IResourceComponentsProps> = () => {
},
});

tableProps?.setOptions((prev) => ({
...prev,
meta: {
...prev.meta,
categoryData,
},
}));

return (
<div className="p-2">
<div className="flex justify-between items-center my-2 mx-2">
Expand Down