forest-express-sequelize 8.5.14 → 9.0.0-beta.1

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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [9.0.0-beta.1](https://github.com/ForestAdmin/forest-express-sequelize/compare/v8.5.14...v9.0.0-beta.1) (2022-10-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **security:** validate that smart action approvals are launched with the same parameters than the initial trigger ([#1026](https://github.com/ForestAdmin/forest-express-sequelize/issues/1026)) ([928865e](https://github.com/ForestAdmin/forest-express-sequelize/commit/928865e9299d1ef9680e9b33ce33ecd8f4c9d077))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * **security:** drop support of projects that are not using roles
12
+
13
+ Co-authored-by: Guillaume Gautreau <guillaumeg@forestadmin.com>, Morgan Perre <morganperre@gmail.com>
14
+
1
15
  ## [8.5.14](https://github.com/ForestAdmin/forest-express-sequelize/compare/v8.5.13...v8.5.14) (2022-10-25)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "forest-express-sequelize",
3
3
  "description": "Official Express/Sequelize Liana for Forest",
4
- "version": "8.5.14",
4
+ "version": "9.0.0-beta.1",
5
5
  "author": "Sandro Munda <sandro@munda.me>",
6
6
  "contributors": [
7
7
  "Arnaud Besnier <arnaudibesnier@gmail.com>",
@@ -28,7 +28,7 @@
28
28
  "@babel/runtime": "7.15.4",
29
29
  "bluebird": "2.9.25",
30
30
  "core-js": "3.6.5",
31
- "forest-express": "9.5.6",
31
+ "forest-express": "10.0.0-beta.1",
32
32
  "http-errors": "1.6.1",
33
33
  "lodash": "4.17.21",
34
34
  "moment": "2.29.4",
@@ -1,6 +1,6 @@
1
1
  import moment from 'moment';
2
2
  import Sequelize from 'sequelize';
3
- import { SchemaUtils } from 'forest-express';
3
+ import { Schemas, SchemaUtils } from 'forest-express';
4
4
  import FiltersParser from '../../src/services/filters-parser';
5
5
  import Operators from '../../src/utils/operators';
6
6
  import { NoMatchingOperatorError } from '../../src/services/errors';
@@ -227,6 +227,7 @@ describe('services > filters-parser', () => {
227
227
  const schemaWithFields = {
228
228
  fields: [{ field: 'car', reference: 'car.id' }],
229
229
  };
230
+ Schemas.schemas = { car: { fields: [{ field: 'id', type: 'Number' }] } };
230
231
  const filters = '{ "field": "car:brandName", "operator": "starts_with", "value": "Ferrari" }';
231
232
  const filtersParser = new FiltersParser(schemaWithFields, timezone, sequelizeOptions);
232
233