@raphiniert/ra-data-postgrest 2.0.0-alpha.4 → 2.0.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 +11 -0
- package/esm/urlBuilder.js +0 -2
- package/lib/urlBuilder.js +0 -2
- package/package.json +6 -6
- package/src/urlBuilder.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Find all notable changes of this project in this file.
|
|
4
4
|
|
|
5
|
+
## v2.0.0 - 2023-12-29
|
|
6
|
+
### Improvements
|
|
7
|
+
- updated dependencies
|
|
8
|
+
|
|
9
|
+
### Fixes
|
|
10
|
+
- [#113](https://github.com/raphiniert-com/ra-data-postgrest/pull/113) remove {} value wrapping for cs/cd @[ruslantalpa](https://github.com/ruslantalpa)
|
|
11
|
+
|
|
12
|
+
### Breaking changes
|
|
13
|
+
- the fix in this version might break old versions, as the {} are removed. Thus, one needs to manually add the {} for cs/cd.
|
|
14
|
+
|
|
15
|
+
|
|
5
16
|
## v2.0.0-alpha.4 - 2023-10-23
|
|
6
17
|
### Improvements
|
|
7
18
|
- updated dependencies
|
package/esm/urlBuilder.js
CHANGED
|
@@ -121,8 +121,6 @@ export var parseFilters = function (params, defaultListOp) {
|
|
|
121
121
|
return "".concat(operation, ".*").concat(value, "*");
|
|
122
122
|
if (['and', 'or'].includes(operation))
|
|
123
123
|
return "".concat(value);
|
|
124
|
-
if (['cs', 'cd'].includes(operation))
|
|
125
|
-
return "".concat(operation, ".{").concat(value, "}");
|
|
126
124
|
return "".concat(operation, ".").concat(value);
|
|
127
125
|
})();
|
|
128
126
|
// If resulting filter doesn't contain the fieldname, then add it.
|
package/lib/urlBuilder.js
CHANGED
|
@@ -124,8 +124,6 @@ var parseFilters = function (params, defaultListOp) {
|
|
|
124
124
|
return "".concat(operation, ".*").concat(value, "*");
|
|
125
125
|
if (['and', 'or'].includes(operation))
|
|
126
126
|
return "".concat(value);
|
|
127
|
-
if (['cs', 'cd'].includes(operation))
|
|
128
|
-
return "".concat(operation, ".{").concat(value, "}");
|
|
129
127
|
return "".concat(operation, ".").concat(value);
|
|
130
128
|
})();
|
|
131
129
|
// If resulting filter doesn't contain the fieldname, then add it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raphiniert/ra-data-postgrest",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "postgREST data provider for react-admin",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"prettier": "prettier --config ./.prettierrc.js --write --list-different \"src/**/*.{js,json,ts,tsx,css,md}\""
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@types/jest": "^29.5.
|
|
33
|
-
"@types/qs": "^6.9.
|
|
32
|
+
"@types/jest": "^29.5.11",
|
|
33
|
+
"@types/qs": "^6.9.11",
|
|
34
34
|
"cross-env": "^7.0.3",
|
|
35
|
-
"eslint-config-prettier": "^9.
|
|
35
|
+
"eslint-config-prettier": "^9.1.0",
|
|
36
36
|
"eslint-plugin-prettier": "^5.0.1",
|
|
37
37
|
"install-peers-cli": "^2.2.0",
|
|
38
38
|
"jest": "^29.7.0",
|
|
39
|
-
"prettier": "^3.
|
|
39
|
+
"prettier": "^3.1.1",
|
|
40
40
|
"rimraf": "^5.0.0",
|
|
41
41
|
"ts-jest": "^29.1.1",
|
|
42
|
-
"typescript": "^5.
|
|
42
|
+
"typescript": "^5.3.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"ra-core": "^4.1.0"
|
package/src/urlBuilder.ts
CHANGED
|
@@ -135,8 +135,6 @@ export const parseFilters = (
|
|
|
135
135
|
if (operation.includes('like'))
|
|
136
136
|
return `${operation}.*${value}*`;
|
|
137
137
|
if (['and', 'or'].includes(operation)) return `${value}`;
|
|
138
|
-
if (['cs', 'cd'].includes(operation))
|
|
139
|
-
return `${operation}.{${value}}`;
|
|
140
138
|
return `${operation}.${value}`;
|
|
141
139
|
})();
|
|
142
140
|
|