Skip to content

Commit 8a42bd0

Browse files
authored
Prepare V0.10 (#283) Rebuild without boilerplate
* Change rollup config Add eslint config files Change directory of different package types Add scripts to build project remove outdated and unecessary files Add rollup packages Changed and updated metadata in package.json Updated axios Add multi platform sh package Changed packages types path Add minifier to rollup setup add latest version typescript Added mifier to rollup setup Removed copy package.json strategy moved tests to root dir Changed dir of build Remove unecessary movie dataset Helper function for rollup config Added updated tsconfig rules New Rollup config Remove unecessary ignored file Added axios as an external ressource so that it is not added in the bundle on built Remove eslint add tslint and plugins add prettier and plugins add linting on staged content Add script to add header on typing file update building rules Add script to show size of bundled content Add dependencies of script to know size of bundled content Update yarn Add scripts that will add a header of the project on the typings file Trailing comas and styling fixes Tslint config Style fixes in rollup config Style fixes Removed unecessary settings Add jest types Updated jest config Removed no any rule while updating all types Removed axios configuration from index Replaced all axios call with wrapper call and renamed Meili to MeiliSearch Add inherit from axios wrapper Renamed Meili to MeiliSearch Added MeiliAxios wrapper Replaced axios methods with axioswrapper Created wrapper and custom error for axios Add config type Changed uid name to less conflicting name FIX: bug in axios naming Removed unecessary then Improve custom error object Add information about url in case MeiliSearch could not answer Remove whitespace Changed names of stats routes Created types for meilisearch objects Improved custom Error and fixed styling Fix style Added new Types for meilisearch objects Improve tests and types Improve tests and types Improved search example Added types to package json Remove old tests and add utilities for new tests Add new tests and changed jest config removed wrong type Removed unecessary new line in error message Changed wrong return type of delete index Remove unecessary file Changed a failing test Added env variables to dot env for the moment, will add soon to github actions and only require dotenv on developement env Improved commentary Removed uncessary path to ignore in jest config Version of dotenv in yarn lock Redid naming of styling scripts tests list indexes length Update config/jest.config.js Apply suggestions from code review Co-Authored-By: Clémentine Urquizar <[email protected]> Apply suggestions from code review Documents tests Added new update types and replaced types for a better file structure Changed document id type Add tests without valid primary key Replaced addDocuments fct with UpdateDocuments in tests that stated this Update tests/documents_tests.ts Co-Authored-By: Clémentine Urquizar <[email protected]> Update tests/documents_tests.ts Co-Authored-By: Clémentine Urquizar <[email protected]> Update tests/documents_tests.ts Co-Authored-By: Clémentine Urquizar <[email protected]> Improved parameters retrieve Tests for searches Improved types Create really small dataset example Join on comma and not comma space Tests on updates Style fix Update tests/update_tests.ts Co-Authored-By: Clémentine Urquizar <[email protected]> Added settings and global refracto Removed unecessary ignore pattern in jest config Style fixing in tests Improved types Change utils name Changed name of distinct attribute file name Change type of rankingrules in settings Test on global settings route Moved meta data in package json Added verification on fields not wanted in search response Update tests/settings_tests.ts Co-Authored-By: Clémentine Urquizar <[email protected]> Update tests/settings_tests.ts Co-Authored-By: Clémentine Urquizar <[email protected]> Remove unecessary files when pushing to npm Changed declaration file path Added types for Indexes class Moved types from meilisearch error to types file Add missing function types in declaration file Removed unecessary no magic number rule that made default values really annoying Changed name in package.json Change version in package manager Adapted changes to the v0.10 Changed Errors naming and added waitForPendingUpdate Style fixes Update tests/wait_for_pending_update_tests.ts Co-Authored-By: Clémentine Urquizar <[email protected]> Change function prototype in README Types FIX: missing import in tests Remove sleep in test and replace with waitForPendingUpdate method Remove sleep from testing utils missing coma Changed Types and file names for index. Changelogs for v0.10 Updated dependencies Changes in keys and added file to ignore Upgrade dependencies Removed tslint. Added eslint Building process is now 100% handled by rollup replaced old masterkey with new masterkey Remove tslint dependencies Remove unecessary newline Removed unecessary plugin, fixing some style, and upgrade packages Moved files to root Changed scripts in package.json due to moving of config files Added types for prettier Removed unecessary types file Types and upgrades Export all types in type file Moved errors files Fixed types error in tests Cleaned tsconfig file Removed two rules that were added there to bypass eslint Improved npmignore Updated author and missing script in postbuild * Removed dotenv * Remove unecessary file * Remove unecessary test * Improved npm ignore * Changes in readme * Updated version * Typo
1 parent af64864 commit 8a42bd0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+5878
-25815
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.eslintrc.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
},
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:@typescript-eslint/recommended',
9+
'standard-with-typescript',
10+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
11+
],
12+
parser: '@typescript-eslint/parser',
13+
parserOptions: {
14+
project: ['tsconfig.json'],
15+
sourceType: 'module',
16+
projectFolderIgnoreList: ['dist'],
17+
},
18+
plugins: ['jsdoc', '@typescript-eslint'],
19+
rules: {
20+
'jsdoc/check-alignment': 'error',
21+
'jsdoc/check-indentation': 'error',
22+
'@typescript-eslint/space-before-function-paren': 0,
23+
'@typescript-eslint/no-explicit-any': 'off',
24+
'@typescript-eslint/no-throw-literal': 'off',
25+
'@typescript-eslint/member-delimiter-style': [
26+
'error',
27+
{
28+
multiline: {
29+
delimiter: 'none', // 'none' or 'semi' or 'comma'
30+
requireLast: true,
31+
},
32+
singleline: {
33+
delimiter: 'semi', // 'semi' or 'comma'
34+
requireLast: false,
35+
},
36+
},
37+
],
38+
'comma-dangle': 'off',
39+
},
40+
}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v1
1111
- name: Docker setup
12-
run: docker run -d -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --no-analytics=true --master-key='123'
12+
run: docker run -d -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --no-analytics=true --master-key='masterKey'
1313
- name: Install dependencies
1414
run: yarn install
1515
- name: Run tests

.npmignore

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
1-
.*
2-
*.log
1+
## CI
2+
.github/
33

4-
# tools configs
5-
**/tsconfig.json
6-
tsconfig.*.json
7-
tslint.json
8-
**/webpack.config.js
9-
**/jest.config.js
10-
**/prettier.config.js
4+
## Tests
5+
examples/
6+
tests/
117

12-
# build scripts
13-
config/
8+
## Builds
149
scripts/
1510

16-
# Test files
17-
**/*.spec.js
18-
**/*.test.js
19-
**/*.test.d.ts
20-
**/*.spec.d.ts
21-
__tests__
22-
coverage
11+
# Tools config
12+
.*
13+
**/.*
14+
config/
15+
jest.config.js
16+
rollup.config.js
17+
tsconfig.*.json
18+
tsconfig.json
2319

2420
# Sources
25-
node_modules
26-
src
27-
docs
28-
examples
21+
yarn.lock
22+
node_modules/
23+
*.log
2924

3025
## this is generated by `npm pack`
3126
*.tgz

.yarnrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 15 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,15 @@
1-
# Change Log
2-
3-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4-
5-
<a name="0.0.9"></a>
6-
7-
## [0.0.9](https://github.com/qdequele/meili-api/compare/v0.0.8...v0.0.9) (2019-10-09)
8-
9-
<a name="0.0.8"></a>
10-
11-
## [0.0.8](https://github.com/qdequele/meili-api/compare/v0.0.7...v0.0.8) (2019-10-09)
12-
13-
<a name="0.0.7"></a>
14-
15-
## [0.0.7](https://github.com/qdequele/meili-api/compare/v0.0.6...v0.0.7) (2019-10-09)
16-
17-
<a name="0.0.6"></a>
18-
19-
## [0.0.6](https://github.com/qdequele/meili-api/compare/v0.0.5...v0.0.6) (2019-10-08)
20-
21-
<a name="0.0.5"></a>
22-
23-
## [0.0.5](https://github.com/qdequele/meili-api/compare/v0.0.4...v0.0.5) (2019-10-08)
24-
25-
<a name="0.0.4"></a>
26-
27-
## [0.0.4](https://github.com/qdequele/meili-api/compare/v0.0.3...v0.0.4) (2019-10-08)
28-
29-
<a name="0.0.3"></a>
30-
31-
## 0.0.3 (2019-10-08)
1+
## V0.10 (released)
2+
3+
- Build is done 100% with rollup, tsc has been removed #318. Rollup has been updated #283
4+
- Moved tests to own folder at root #283
5+
- Error handled created with two new custom errors: `MeiliSearchApiError` `MeiliSearchTimeoutError` #283 & #311 & #318
6+
- Removed linting with TSLINT and replaced with eslint #283
7+
- Improved tests #299 #301 #302
8+
- Created WaitForPendingUpdate function #311
9+
- Made module compatible with MeiliSearch v0.10 #312
10+
- Changed prototypes in README #314
11+
- `Class Indexes` has been renamed to `Class Index` #315
12+
- createIndex now returns an instance of the Index class #315 (BREAKING)
13+
- Main file renamed from index.ts to meilisearch.ts #315
14+
- Replaced all sleeps in test with waitForPendingUpdate #316
15+
- Improved types and exportation of types #318 #283

0 commit comments

Comments
 (0)