@raphiniert/ra-data-postgrest 1.1.9 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +6 -4
- package/esm/dataProvider/index.js +1 -1
- package/lib/dataProvider/index.js +1 -1
- package/package.json +2 -2
- package/src/dataProvider/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Find all notable changes of this project in this file.
|
|
4
4
|
|
|
5
|
+
## v1.2.0 - 2023-08-23
|
|
6
|
+
- [#33](https://github.com/raphiniert-com/ra-data-postgrest/pull/33), adding dependabot - @[promitheus7](https://github.com/promitheus7)
|
|
7
|
+
- [#30](https://github.com/raphiniert-com/ra-data-postgrest/pull/30) and [#33](https://github.com/raphiniert-com/ra-data-postgrest/pull/33), updated dependency to compatible starting from `ra-core` 4.1.x - @[corrideat](https://github.com/corrideat), @[promitheus7](https://github.com/promitheus7)
|
|
8
|
+
|
|
5
9
|
## v1.1.9 - 2023-08-23
|
|
6
10
|
- [#30](https://github.com/raphiniert-com/ra-data-postgrest/pull/30), updated ts and modified code, such that some package dependencies became unrequired - @[corrideat](https://github.com/corrideat)
|
|
7
11
|
|
package/README.md
CHANGED
|
@@ -5,9 +5,11 @@ PostgREST Data Provider for [react-admin](https://github.com/marmelab/react-admi
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm install --save @
|
|
8
|
+
npm install --save @promitheus/ra-data-postgrest
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
**NOTE**: When using RA 3.x.x, use the data-provider 1.x.x. For RA >= 4.1.x use the data-provider starting from 1.2.x.
|
|
12
|
+
|
|
11
13
|
## REST Dialect
|
|
12
14
|
|
|
13
15
|
This Data Provider fits REST APIs using simple GET parameters for filters and sorting. This is the dialect used for instance in [PostgREST](http://postgrest.org).
|
|
@@ -42,7 +44,7 @@ Access-Control-Expose-Headers: Content-Range
|
|
|
42
44
|
// in src/App.js
|
|
43
45
|
import React from 'react';
|
|
44
46
|
import { Admin, Resource } from 'react-admin';
|
|
45
|
-
import postgrestRestProvider from '@
|
|
47
|
+
import postgrestRestProvider from '@promitheus/ra-data-postgrest';
|
|
46
48
|
|
|
47
49
|
import { PostList } from './posts';
|
|
48
50
|
|
|
@@ -63,7 +65,7 @@ That means that if you need to add custom headers to your requests, you just nee
|
|
|
63
65
|
|
|
64
66
|
```jsx
|
|
65
67
|
import { fetchUtils, Admin, Resource } from 'react-admin';
|
|
66
|
-
import postgrestRestProvider from '@
|
|
68
|
+
import postgrestRestProvider from '@promitheus/ra-data-postgrest';
|
|
67
69
|
|
|
68
70
|
const httpClient = (url, options = {}) => {
|
|
69
71
|
if (!options.headers) {
|
|
@@ -107,7 +109,7 @@ With one of the starter kits it is very easy to use the authProvider:
|
|
|
107
109
|
// in src/App.js
|
|
108
110
|
import React from 'react';
|
|
109
111
|
import { Admin, Resource } from 'react-admin';
|
|
110
|
-
import postgrestRestProvider, { authProvider } from '@
|
|
112
|
+
import postgrestRestProvider, { authProvider } from '@promitheus/ra-data-postgrest';
|
|
111
113
|
|
|
112
114
|
import { PostList } from './posts';
|
|
113
115
|
|
|
@@ -44,7 +44,7 @@ import { fetchUtils } from 'ra-core';
|
|
|
44
44
|
*
|
|
45
45
|
* import * as React from 'react';
|
|
46
46
|
* import { Admin, Resource } from 'react-admin';
|
|
47
|
-
* import postgrestRestProvider from '@
|
|
47
|
+
* import postgrestRestProvider from '@promitheus/ra-data-postgrest';
|
|
48
48
|
*
|
|
49
49
|
* import { PostList } from './posts';
|
|
50
50
|
*
|
|
@@ -46,7 +46,7 @@ var ra_core_1 = require("ra-core");
|
|
|
46
46
|
*
|
|
47
47
|
* import * as React from 'react';
|
|
48
48
|
* import { Admin, Resource } from 'react-admin';
|
|
49
|
-
* import postgrestRestProvider from '@
|
|
49
|
+
* import postgrestRestProvider from '@promitheus/ra-data-postgrest';
|
|
50
50
|
*
|
|
51
51
|
* import { PostList } from './posts';
|
|
52
52
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raphiniert/ra-data-postgrest",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "postgREST data provider for react-admin",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"typescript": "^4.6.4"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"ra-core": "^
|
|
36
|
+
"ra-core": "^4.1.0"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -23,7 +23,7 @@ import { fetchUtils, DataProvider, Identifier } from 'ra-core';
|
|
|
23
23
|
*
|
|
24
24
|
* import * as React from 'react';
|
|
25
25
|
* import { Admin, Resource } from 'react-admin';
|
|
26
|
-
* import postgrestRestProvider from '@
|
|
26
|
+
* import postgrestRestProvider from '@promitheus/ra-data-postgrest';
|
|
27
27
|
*
|
|
28
28
|
* import { PostList } from './posts';
|
|
29
29
|
*
|