Skip to content

Commit 7d4eea0

Browse files
sajovsajovSascha Jovanoski
authored
V3.0.0 pre.1 (#17)
* ts pre v3 init * mocha in progress * task: client test * task: test delete * task: remove lib * task: test delete * task: tests * task: refactor client * test * refactor client * refactor: client * refactor: client * task: schema * fix schema seed * fix schema seed * fix schema seed * fix schema seed * clean test * clean test * fix _find * test * working adapter tests * cleanup * fix tests * add additional test * add add / delete core * fix: $filter * clenup test * fix type and linting issues * fix type and linting issues * task: cleanup * update dependencies * add travis * update travis * task: remove test from build * task: remove unused function * task: cleanup test * task: update feathers dependencies * task add example * fix: ts config * task: remove duplicate test * task: add coverage * task: add more tests * task: cleanup query methods * task: cleanup response parser methods * test: prepare group test * task: add github actions * task: add github actions * task: cleanup workflow action * task: cleanup workflow action * task: add coveralls to workflow action * task: cleanup workflow action * task: cleanup workflow action * task: workflow action remove getting started * task: add build * task: add build * task: remove solr install script * task: remove example * task: remove example * task: remove example * task: add test for native atomic update * task: add test for native atomic update * task: add missing test * task: add missing test * task: update readme * Update README.md * task: add solr special tests * remove console * task: add mode tests * task: format * task: full test coverage * task: fix ts config * task: publish next 3.0.5 * task: update README * task: update README * task: update README * task: update README * FIX: requestOptions as optional * Update package.json * Update node.js.yml * Update ci.yml * chore: fix typo * chore: add parser tests * chore: update readme * chore: add example * chore: update readme * add test * chor: refactor actions setup * chor: refactor actions setup add coverage * chor: refactor actions setup add coverage * chor: refactor actions setup cleanup gitignore * chor: refactor actions setup add queryParser test * chor: upgrade to 5.0.0-pre.33 * chor: upgrade to 5.0.0-pre.33 * add test * chor: rename files * chor: rename files and methods * chor: rename files and methods * chor: remove console.log * chor: upgrade dependencies * chor: add test * chor: refactor exported interface * chor: refactor exported interface * chor: edit tests * chor: refactor filterQuery * chor: refactor filterQuery * chor: fix select * chor: refactor filterQuery * chor: refactor responseHandler * chor: refactor deleteQuery * chor: refactor patch * chor: fix test * chor: fix test * chor: dinal refactor of queryHandler * chore: remove console.log * chore: cleanup filterResolver * chore: dependency update * chore: cleanup declarations * chore: refactor patch method * chore: update eslintrc * chore: cleanups * chore: remove util method * chore: cleanup patch * chore: fix atomic patch * chore: cleanup tests * cleanup * chore: cleanup * chore: refactored convertOperators * chore: refactored convertOperators * chore: refactored convertOperators * chore: fix format * chore: improve filterQuery * task: update dev dependencies * chore: cleanup * chore: cleanup * chore: cleanup managed-schema * chore: cleanup adapter * chore: cleanup convertOperators * chore: cleanup operatorResolver * chore: improve utils * chore: disbale console log * chore: add debug * 3.0.8 * 3.0.8 * task: remove debug * task: 3.0.10 * task: reduce default limit * task: cleanups * task: cleanups * task: cleanups * task: cleanups * task: cleanups * task: cleanups * task: cleanups * task: upgrade 5.0.0-pre.34 * task: upgrade 5.0.0-pre.35 * task: upgrade 5.0.0-pre.35 * 3.0.11-rc1.0 * task: upgrade 5.0.0-pre.35 * task: upgrade 5.0.0-pre.35 * 3.0.11-next.0 * task: upgrade 5.0.0-pre.35 * 3.0.11-next.1 * feat: add logger option * 3.0.11-next.2 * task: upgrade 5.0.0-pre.36 * 3.0.11-next.3 * task: upgrade dependencies * task: fix $and queries, add addinatl tests * 3.0.11-next.4 * task: refactor resolver $limit * task: refactor resolver _patch method * task: update dependencies * task: update scripts * task: update .npmignore --------- Co-authored-by: sajov <[email protected]> Co-authored-by: Sascha Jovanoski <[email protected]>
1 parent a783891 commit 7d4eea0

File tree

95 files changed

+20795
-5293
lines changed

Some content is hidden

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

95 files changed

+20795
-5293
lines changed

.coveralls.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.js

Lines changed: 148 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,149 @@
11
module.exports = {
2-
"env": {
3-
"commonjs": true,
4-
"es6": true,
5-
"node": true
6-
},
7-
"extends": "eslint:recommended",
8-
"globals": {
9-
"Atomics": "readonly",
10-
"SharedArrayBuffer": "readonly"
11-
},
12-
"parserOptions": {
13-
"ecmaVersion": 2018
14-
},
15-
"rules": {
16-
}
17-
};
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"mocha": true,
6+
"node": true
7+
},
8+
"extends": [
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
11+
],
12+
"parser": "@typescript-eslint/parser",
13+
"parserOptions": {
14+
"project": "tsconfig.json",
15+
"sourceType": "module"
16+
},
17+
"plugins": [
18+
"eslint-plugin-import",
19+
"eslint-plugin-prefer-arrow",
20+
"@typescript-eslint"
21+
],
22+
"rules": {
23+
"prefer-rest-params": "off",
24+
"prefer-spread": "off",
25+
"@typescript-eslint/no-unsafe-member-access": "off",
26+
"@typescript-eslint/no-unsafe-assignment": "off",
27+
"@typescript-eslint/no-unsafe-argument": "off",
28+
"@typescript-eslint/no-unsafe-member-access": "off",
29+
"@typescript-eslint/no-unsafe-call": "off",
30+
"@typescript-eslint/no-unsafe-return": "off",
31+
"@typescript-eslint/no-floating-promises": "off",
32+
"@typescript-eslint/restrict-template-expressions": "off",
33+
"@typescript-eslint/explicit-module-boundary-types": "off",
34+
"@typescript-eslint/require-await": "off",
35+
"@typescript-eslint/ban-ts-comment": "off",
36+
"@typescript-eslint/unbound-method": "off",
37+
"@typescript-eslint/no-this-alias": "off",
38+
"@typescript-eslint/prefer-regexp-exec": "off",
39+
"@typescript-eslint/no-misused-promises": "off",
40+
"@typescript-eslint/restrict-plus-operands": "off",
41+
// ----
42+
"@typescript-eslint/adjacent-overload-signatures": "error",
43+
"@typescript-eslint/array-type": [
44+
"error",
45+
{
46+
"default": "array"
47+
}
48+
],
49+
"@typescript-eslint/ban-types": "off",
50+
"@typescript-eslint/consistent-type-assertions": "error",
51+
"@typescript-eslint/dot-notation": "error",
52+
"@typescript-eslint/explicit-member-accessibility": [
53+
"error",
54+
{
55+
"accessibility": "no-public"
56+
}
57+
],
58+
"@typescript-eslint/naming-convention": "off",
59+
"@typescript-eslint/no-empty-function": "off",
60+
"@typescript-eslint/no-empty-interface": "error",
61+
"@typescript-eslint/no-explicit-any": "off",
62+
"@typescript-eslint/no-misused-new": "error",
63+
"@typescript-eslint/no-namespace": "error",
64+
"@typescript-eslint/no-parameter-properties": "off",
65+
"@typescript-eslint/no-unused-expressions": "error",
66+
"@typescript-eslint/no-use-before-define": "off",
67+
"@typescript-eslint/no-var-requires": "error",
68+
"@typescript-eslint/prefer-for-of": "error",
69+
"@typescript-eslint/prefer-function-type": "error",
70+
"@typescript-eslint/prefer-namespace-keyword": "error",
71+
"@typescript-eslint/quotes": [
72+
"error",
73+
"single"
74+
],
75+
"@typescript-eslint/triple-slash-reference": [
76+
"error",
77+
{
78+
"path": "always",
79+
"types": "prefer-import",
80+
"lib": "always"
81+
}
82+
],
83+
"@typescript-eslint/unified-signatures": "error",
84+
"arrow-parens": [
85+
"off",
86+
"always"
87+
],
88+
"comma-dangle": "error",
89+
"complexity": "off",
90+
"constructor-super": "error",
91+
"eqeqeq": [
92+
"error",
93+
"smart"
94+
],
95+
"guard-for-in": "error",
96+
"id-blacklist": "off",
97+
"id-match": "off",
98+
"import/order": "off",
99+
// "jsdoc/check-alignment": "error",
100+
// "jsdoc/check-indentation": "error",
101+
// "jsdoc/newline-after-description": "error",
102+
"max-classes-per-file": "off",
103+
"max-len": "off",
104+
"new-parens": "error",
105+
"no-bitwise": "error",
106+
"no-caller": "error",
107+
"no-cond-assign": "error",
108+
"no-console": "error",
109+
"no-debugger": "error",
110+
"no-empty": "off",
111+
"no-eval": "error",
112+
"no-fallthrough": "off",
113+
"no-invalid-this": "off",
114+
"no-new-wrappers": "error",
115+
"no-shadow": [
116+
"off",
117+
{
118+
"hoist": "all"
119+
}
120+
],
121+
"no-throw-literal": "error",
122+
"no-trailing-spaces": "error",
123+
"no-undef-init": "error",
124+
"no-underscore-dangle": "off",
125+
"no-unsafe-finally": "error",
126+
"no-unused-labels": "error",
127+
"no-var": "error",
128+
"object-shorthand": "error",
129+
"one-var": [
130+
"error",
131+
"never"
132+
],
133+
"prefer-arrow/prefer-arrow-functions": "off",
134+
"prefer-const": "error",
135+
"radix": "error",
136+
"space-before-function-paren": 0,
137+
"spaced-comment": [
138+
"error",
139+
"always",
140+
{
141+
"markers": [
142+
"/"
143+
]
144+
}
145+
],
146+
"use-isnan": "error",
147+
"valid-typeof": "off"
148+
}
149+
};

.github/workflows/ci.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/nodejs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on: [push,pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
services:
11+
solr:
12+
image: solr:7.7.3
13+
ports:
14+
- 8983:8983
15+
options: >-
16+
--health-cmd "curl --fail http://0.0.0.0:8983/solr/admin/cores || exit 1"
17+
--health-interval 10s
18+
--health-timeout 5s
19+
--health-retries 5
20+
21+
strategy:
22+
matrix:
23+
node-version: [18.x]
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- run: npm install
32+
- run: npm run coverage
33+
env:
34+
CI: true

.gitignore

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.DS_Store
2-
.vscode
2+
33
# Logs
44
logs
55
*.log
@@ -25,13 +25,19 @@ build/Release
2525
# Commenting this out is preferred by some people, see
2626
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
2727
node_modules
28+
.nyc_output
2829

2930
# Users Environment Variables
3031
.lock-wscript
3132

32-
# The compiled/babelified modules
33-
# lib/
34-
example/data/mage
35-
example/public/img
36-
example/public/docs
37-
.clinic
33+
# IDEs
34+
.idea
35+
36+
# Distributables
37+
dist/
38+
.nyc_output/
39+
.cache
40+
.mocha-puppeteer
41+
42+
# TypeScript compiled files
43+
lib

.istanbul.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.mocharc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"timeout": 20000,
3+
"require": [
4+
"ts-node/register",
5+
"source-map-support/register"
6+
],
7+
"reporterNO": "Dot",
8+
"extension": ".test.ts",
9+
"exit": true
10+
}

.npmignore

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
.editorconfig
2-
.jshintrc
3-
.travis.yml
4-
.istanbul.yml
5-
.babelrc
1+
example/solr*/
2+
src/
63
.idea/
74
.vscode/
5+
.editorconfig
6+
.eslintrc.js
7+
.gitignore
8+
.mocharc.json
9+
.npmignore
10+
.nycrc
11+
.prettierrc
12+
tsconfig.json
813
test/
914
coverage/
1015
.github/

.nycrc

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"verbose": false,
3+
"tempDirectory": "./coverage/.tmp",
4+
"semistandard": {
5+
"env": [
6+
"mocha"
7+
]
8+
},
9+
"extension": [
10+
".ts",
11+
".tsx",
12+
".js"
13+
],
14+
"exclude": [
15+
"**/test/*",
16+
"**/dist/*",
17+
"**/*.dist.js",
18+
"**/_templates/*",
19+
"**/tests/*",
20+
"**/adapter-tests/*"
21+
],
22+
"print": "detail",
23+
"reporter": [
24+
"html",
25+
"text",
26+
"text-summary",
27+
"lcov"
28+
],
29+
"watermarks": {
30+
"statements": [
31+
70,
32+
90
33+
],
34+
"lines": [
35+
70,
36+
90
37+
],
38+
"functions": [
39+
70,
40+
90
41+
],
42+
"branches": [
43+
70,
44+
90
45+
]
46+
}
47+
}

0 commit comments

Comments
 (0)