forest-express-sequelize 8.4.7 → 8.4.8

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.
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ npx --no-install commitlint --edit "$1"
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ node ./.eslint-bin/pre-commit-hook.js
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [8.4.8](https://github.com/ForestAdmin/forest-express-sequelize/compare/v8.4.7...v8.4.8) (2021-11-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add searchFields type in the collection options ([#875](https://github.com/ForestAdmin/forest-express-sequelize/issues/875)) ([8a9a84a](https://github.com/ForestAdmin/forest-express-sequelize/commit/8a9a84a263741fc3ed1814eb954dec6ca8bb5626))
7
+
1
8
  ## [8.4.7](https://github.com/ForestAdmin/forest-express-sequelize/compare/v8.4.6...v8.4.7) (2021-10-25)
2
9
 
3
10
 
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.4.7",
4
+ "version": "8.4.8",
5
5
  "author": "Sandro Munda <sandro@munda.me>",
6
6
  "contributors": [
7
7
  "Arnaud Besnier <arnaudibesnier@gmail.com>",
@@ -57,7 +57,7 @@
57
57
  "eslint-plugin-import": "2.18.2",
58
58
  "eslint-plugin-jest": "23.0.4",
59
59
  "eslint-plugin-sonarjs": "0.5.0",
60
- "husky": "4.2.5",
60
+ "husky": "7.0.4",
61
61
  "jest": "26.6.3",
62
62
  "jest-extended": "0.11.5",
63
63
  "mysql2": "2.1.0",
@@ -76,6 +76,7 @@
76
76
  "build": "babel src --out-dir dist",
77
77
  "build:watch": "onchange 'src/**/*.js' 'node_modules/forest-express/dist/*' --no-exclude -i -- babel --source-maps inline --out-dir dist src",
78
78
  "lint": "./node_modules/eslint/bin/eslint.js .eslint-bin src test types/index.d.ts",
79
+ "prepare": "husky install",
79
80
  "test": "jest",
80
81
  "test:coverage": "jest --coverage"
81
82
  }
package/types/index.d.ts CHANGED
@@ -321,6 +321,7 @@ export interface CollectionOptions {
321
321
  fields?: SmartFieldOptions[];
322
322
  actions?: SmartActionOptions[];
323
323
  segments?: SmartSegmentOptions[];
324
+ searchFields?: string[];
324
325
  }
325
326
 
326
327
  export function collection(name: string, options: CollectionOptions): void;
package/husky.config.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- hooks: {
3
- 'pre-commit': 'node ./.eslint-bin/pre-commit-hook.js',
4
- 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
5
- },
6
- };