Skip to content

Commit f740ba2

Browse files
committed
feat: add sdk methods for v3 api and update dependencies
1. Add sdk method for newer v3 api endpoints 2. Update dependencies, including sdk-core. 3. Linter fixes BREAKING CHANGE: Minimum supported nodejs version The minimum supported version of nodejs is now v14. Signed-off-by: Subin Shekhar <[email protected]>
1 parent 27af8a7 commit f740ba2

21 files changed

+22225
-8697
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ test/resources/auth.js
1010
# ignore emitted js
1111
**/*v*.js
1212
!test/**/*.js
13+
!examples/**/*.js
1314
lib/*.js
1415
scripts/typedoc/

.eslintrc.js

+51-21
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,54 @@
11
module.exports = {
2-
"env": {
3-
"node": true
4-
},
5-
"plugins": [
6-
"node",
7-
"prettier",
2+
'root': true,
3+
'overrides': [
4+
{
5+
'env': {
6+
'node': true,
7+
},
8+
'files': ['**/*.js', '**/*.jsx'],
9+
'plugins': ['node', 'jest', 'prettier'],
10+
'extends': ['airbnb-base', 'plugin:jest/recommended', 'plugin:jest/style', 'prettier'],
11+
'rules': {
12+
'camelcase': 'off',
13+
'import/extensions': 'off',
14+
'no-template-curly-in-string': 'off',
15+
'no-underscore-dangle': 'off',
16+
'prefer-const': 'error',
17+
'prettier/prettier': 'error',
18+
},
19+
},
20+
{
21+
'files': ['*.test.js', '*.test.jsx'],
22+
'rules': {
23+
'jest/expect-expect': 'off',
24+
'jest/no-conditional-expect': 'off',
25+
'jest/no-done-callback': 'off',
26+
'jest/no-standalone-expect': 'off',
27+
'jest/no-try-expect': 'off',
28+
'no-unused-vars': 'off',
29+
},
30+
},
31+
{
32+
'files': ['**/*.ts', '**/*.tsx'],
33+
'env': {
34+
'node': true,
35+
},
36+
'extends': ['airbnb-typescript/base', 'prettier'],
37+
'parser': '@typescript-eslint/parser',
38+
'parserOptions': {
39+
'project': 'tsconfig.json',
40+
'sourceType': 'module',
41+
},
42+
'plugins': ['eslint-plugin-jsdoc', 'eslint-plugin-import', '@typescript-eslint', 'prettier'],
43+
'rules': {
44+
'@typescript-eslint/naming-convention': 'off',
45+
'@typescript-eslint/no-unused-vars': 'off',
46+
'max-len': 'off',
47+
'no-param-reassign': 'off',
48+
'no-underscore-dangle': 'off',
49+
'prettier/prettier': 'error',
50+
'spaced-comment': ['error', 'always', { 'exceptions': ['*'] }],
51+
},
52+
},
853
],
9-
"extends": [
10-
"eslint:recommended",
11-
"google",
12-
"plugin:node/recommended",
13-
"prettier",
14-
],
15-
"rules": {
16-
"prettier/prettier": ["error", {"singleQuote": true, "printWidth": 100}],
17-
"prefer-const": "error",
18-
"prefer-rest-params": "off", // https://github.com/mysticatea/eslint-plugin-node/issues/63
19-
// The rest of these override rules that are enabled by one of the configs we extend but not compatible with current codebase
20-
// todo: fix issues and then remove overrides here
21-
"valid-jsdoc": "off", // too many issues; drowns out everything else
22-
"camelcase": "off", // todo: determine if we should keep this off globally, or disable it on a per-line basis
23-
}
2454
};

.prettierrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
2-
trailingComma: "es5",
2+
semi: true,
3+
trailingComma: 'es5',
34
singleQuote: true,
45
printWidth: 100,
56
quoteProps: 'preserve',

.releaserc

+21-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
{
2-
"branch": "master",
3-
"verifyConditions": ["@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/git"],
4-
"prepare": ["@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/git"],
2+
"debug": true,
3+
"branches": [
4+
"main"
5+
],
6+
"verifyConditions": [
7+
"@semantic-release/changelog",
8+
"@semantic-release/npm",
9+
"@semantic-release/git"
10+
],
11+
"prepare": [
12+
"@semantic-release/changelog",
13+
"@semantic-release/npm",
14+
"@semantic-release/git"
15+
],
516
"publish": [
6-
["@semantic-release/npm", {
7-
"pkgRoot": "dist"
8-
}],
17+
[
18+
"@semantic-release/npm",
19+
{
20+
"pkgRoot": "dist"
21+
}
22+
],
923
{
1024
"path": "@semantic-release/github"
1125
}
1226
]
13-
}
27+
}

.travis.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ language: node_js
33
sudo: false
44

55
node_js:
6-
- 12
76
- 14
7+
- 16
88

9-
script:
9+
before_install:
10+
- npm i -g npm@8
1011
- npm --version
12+
13+
script:
1114
- npm run build
12-
- npm run test-unit-travis || travis_terminate 1
15+
- npm run test-travis || travis_terminate 1
1316
- npm run lint
1417
- npm run check-packages
1518

16-
after_success:
17-
- npm run report-coverage
18-
1919
deploy:
2020
- provider: script
2121
skip_cleanup: true
2222
script: npx semantic-release
2323
on:
24-
node: 12
24+
node: 14
2525
branch: master

0 commit comments

Comments
 (0)