Skip to content

Commit

Permalink
release: may 2024
Browse files Browse the repository at this point in the history
release: may 2024
  • Loading branch information
aliemir committed May 3, 2024
2 parents 6211195 + 113c133 commit 716656d
Show file tree
Hide file tree
Showing 209 changed files with 4,884 additions and 2,296 deletions.
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`.
18 changes: 18 additions & 0 deletions documentation/docs/guides-concepts/development/index.md
Expand Up @@ -261,6 +261,24 @@ const App = () => {

<Image src="https://refine.ams3.cdn.digitaloceanspaces.com/assets/devtools-demo.gif" />

**Running Devtools Server**

Devtools will boot up a server to operate both on your app and have control over your project's source code to provide you with the best experience. If you're using `@refinedev/cli`'s `refine dev` command, it will automatically start the devtools server for you if you have `@refinedev/devtools` installed.

If you want to start devtools server manually, you can use the following command:

```bash
refine devtools start
```

If you're running the devtools manually, you can disable the automatic start of the devtools server by passing `--devtools=false` flag to the `refine dev` command.

As an alternative, you can also install the `@refinedev/devtools-server` package and use `refine-devtools` command to start the server.

**Required Ports**

Devtools server will run on port `5001` and also run a WebSocket server on port `5002`. Make sure these ports are available on your machine. Both of these ports are required for devtools to work properly and maintain a connection between your app and the devtools interface.

## Using Inferencer

`@refinedev/inferencer` is a package that provides a way to automatically generate views for resources based on the data structure. The aim is to reduce the amount of time spent on creating views for resources by generating the code automatically that can be customized easily.
Expand Down
4 changes: 4 additions & 0 deletions documentation/docs/packages/tanstack-table/use-table/index.md
Expand Up @@ -54,6 +54,10 @@ It also syncs the filtering state with the URL if you enable the [`syncWithLocat

By default, filter operators are set to "eq" for all fields. You can specify which field will be filtered with which filter operator with the `filterOperator` property in the `meta` object. Just be aware that the `filterOperator` must be a [`CrudOperators`](/docs/core/interface-references#crudoperators) type.

If you're going to use [logical filters](/docs/core/interface-references#logicalfilter) (`and`, `or`), you can set `filterOperator` to `and` or `or` in the `meta` object. By design, logical filters do not have `field` property, instead they have `key` property to differentiate between filters if there are multiple filters with the same operator.

By default, `id` field of the column is used as the `key` property. If you want to use a different field as the `key`, you can set the `filterKey` property in the `meta` object.

<FilteringLivePreview/>

## Realtime Updates
Expand Down
15 changes: 11 additions & 4 deletions documentation/docs/partials/_partial-translation-file-de.md
Expand Up @@ -11,7 +11,9 @@
"password": "Passwort"
},
"errors": {
"validEmail": "Ungültige E-Mail-Adresse"
"validEmail": "Ungültige E-Mail-Adresse",
"requiredEmail": "E-Mail ist erforderlich",
"requiredPassword": "Passwort wird benötigt"
},
"buttons": {
"submit": "Anmeldung",
Expand All @@ -26,7 +28,8 @@
"email": "Email"
},
"errors": {
"validEmail": "Ungültige E-Mail-Adresse"
"validEmail": "Ungültige E-Mail-Adresse",
"requiredEmail": "E-Mail ist erforderlich"
},
"buttons": {
"submit": "Anweisungen zum Zurücksetzen senden"
Expand All @@ -39,7 +42,9 @@
"password": "Passwort"
},
"errors": {
"validEmail": "Ungültige E-Mail-Adresse"
"validEmail": "Ungültige E-Mail-Adresse",
"requiredEmail": "E-Mail ist erforderlich",
"requiredPassword": "Passwort wird benötigt"
},
"buttons": {
"submit": "Registrieren",
Expand All @@ -53,7 +58,9 @@
"confirmPassword": "Bestätige neues Passwort"
},
"errors": {
"confirmPasswordNotMatch": "Passwörter stimmen nicht überein"
"confirmPasswordNotMatch": "Passwörter stimmen nicht überein",
"requiredPassword": "Passwort wird benötigt",
"requiredConfirmPassword": "Das Feld „Passwort bestätigen“ ist erforderlich"
},
"buttons": {
"submit": "Aktualisieren"
Expand Down
15 changes: 11 additions & 4 deletions documentation/docs/partials/_partial-translation-file-en.md
Expand Up @@ -11,7 +11,9 @@
"password": "Password"
},
"errors": {
"validEmail": "Invalid email address"
"validEmail": "Invalid email address",
"requiredEmail": "Email is required",
"requiredPassword": "Password is required"
},
"buttons": {
"submit": "Login",
Expand All @@ -26,7 +28,8 @@
"email": "Email"
},
"errors": {
"validEmail": "Invalid email address"
"validEmail": "Invalid email address",
"requiredEmail": "Email is required"
},
"buttons": {
"submit": "Send reset instructions"
Expand All @@ -39,7 +42,9 @@
"password": "Password"
},
"errors": {
"validEmail": "Invalid email address"
"validEmail": "Invalid email address",
"requiredEmail": "Email is required",
"requiredPassword": "Password is required"
},
"buttons": {
"submit": "Register",
Expand All @@ -53,7 +58,9 @@
"confirmPassword": "Confirm new password"
},
"errors": {
"confirmPasswordNotMatch": "Passwords do not match"
"confirmPasswordNotMatch": "Passwords do not match",
"requiredPassword": "Password required",
"requiredConfirmPassword": "Confirm password is required"
},
"buttons": {
"submit": "Update"
Expand Down
2 changes: 1 addition & 1 deletion examples/app-crm-minimal/package.json
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@ant-design/cssinjs": "^1.17.2",
"@ant-design/icons": "5.0.1",
"@ant-design/icons": "^5.0.1",
"@ant-design/plots": "^1.2.5",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/modifiers": "^6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/app-crm/package.json
Expand Up @@ -14,7 +14,7 @@
"test": "jest --passWithNoTests --runInBand"
},
"dependencies": {
"@ant-design/icons": "5.0.1",
"@ant-design/icons": "^5.0.1",
"@ant-design/plots": "^1.2.5",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/modifiers": "^6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/auth-otp/package.json
Expand Up @@ -22,7 +22,7 @@
]
},
"dependencies": {
"@ant-design/icons": "5.0.1",
"@ant-design/icons": "^5.0.1",
"@refinedev/antd": "^5.37.6",
"@refinedev/cli": "^2.16.29",
"@refinedev/core": "^4.49.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-invoice-generator/package.json
Expand Up @@ -23,7 +23,7 @@
]
},
"dependencies": {
"@ant-design/icons": "5.0.1",
"@ant-design/icons": "^5.0.1",
"@react-pdf/renderer": "^3.1.8",
"@refinedev/antd": "^5.37.6",
"@refinedev/cli": "^2.16.29",
Expand Down

0 comments on commit 716656d

Please sign in to comment.