Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: v1 release #219

Merged
merged 6 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
module.exports = {
parser: '@typescript-eslint/parser',
ignorePatterns: [
'src/gen/**/*.ts',
'src/**/*.test.ts',
],
ignorePatterns: ['src/gen/**/*.ts', 'src/**/*.test.ts'],
env: {
node: true,
},
plugins: [
"jsdoc",
],
plugins: ['jsdoc'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
Expand All @@ -20,5 +15,16 @@ module.exports = {
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'jsdoc/tag-lines': 'off', // not documented on jsdoc plugin site, unsure how to correct.
'@typescript-eslint/no-unused-vars': [
'error',
{ args: 'all', argsIgnorePattern: '^_' },
],
'no-warning-comments': [
'error',
{
terms: ['todo', 'fixme'],
location: 'anywhere',
},
],
},
};
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
git diff --cached --quiet
- name: Check Formatting
run: yarn prettier:check
- name: Linting
run: yarn lint
- name: Build
run: yarn build
- name: Run tests
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,6 @@ typings/

lib/

contracts/
contracts/

nitric/**
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { pathsToModuleNameMapper } from 'ts-jest';
import { pathsToModuleNameMapper } from 'ts-jest/utils';
import { compilerOptions } from './tsconfig.json';

module.exports = {
Expand Down
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nitric/sdk",
"description": "Nitric NodeJS client sdk",
"nitric": "v0.33.0",
"nitric": "v1.0.0",
"author": "Nitric <https://github.com/nitrictech>",
"repository": "https://github.com/nitrictech/node-sdk",
"main": "lib/index.js",
Expand All @@ -21,26 +21,27 @@
"license:header:add": "license-check-and-add add -f ./licenseconfig.json",
"license:header:check": "license-check-and-add check -f ./licenseconfig.json",
"license:check": "licensee --production",
"download:contracts": "curl -L https://github.com/nitrictech/nitric/releases/download/${npm_package_nitric}/contracts.tgz -o contracts.tgz && tar xvzf contracts.tgz && rm contracts.tgz",
"download:contracts": "curl -L https://github.com/nitrictech/nitric/releases/download/${npm_package_nitric}/proto.tgz -o nitric.tgz && tar xvzf nitric.tgz && rm nitric.tgz",
"download:contracts:local": "rm -r ./nitric && mkdir ./nitric && cp -r $NITRIC_CORE_HOME/nitric/proto ./nitric",
"gen:proto": "yarn run download:contracts && yarn run gen:sources",
"gen:sources": "mkdir -p ./src/gen && grpc_tools_node_protoc --ts_out=service=grpc-node,mode=grpc-js:./src/gen --js_out=import_style=commonjs,binary:./src/gen --grpc_out=grpc_js:./src/gen -I ./contracts ./contracts/**/*.proto ./contracts/proto/**/*/*.proto"
"gen:sources": "mkdir -p ./src/gen && grpc_tools_node_protoc --ts_out=service=grpc-node,mode=grpc-js:./src/gen --js_out=import_style=commonjs,binary:./src/gen --grpc_out=grpc_js:./src/gen -I ./ ./nitric/proto/**/*/*.proto"
},
"contributors": [
"Jye Cusch <[email protected]>",
"Tim Holm <[email protected]>",
"David Moore <[email protected]>"
],
"dependencies": {
"@grpc/grpc-js": "1.8.1",
"@grpc/grpc-js": "1.10.0",
"@nitric/grpc-error-status": "^0.0.2",
"@opentelemetry/api": "^1.4.1",
"@opentelemetry/exporter-trace-otlp-http": "^0.36.1",
"@opentelemetry/instrumentation": "^0.36.1",
"@opentelemetry/instrumentation-grpc": "^0.36.1",
"@opentelemetry/instrumentation-http": "^0.36.1",
"@opentelemetry/resources": "^1.10.1",
"@opentelemetry/sdk-trace-node": "^1.10.1",
"@opentelemetry/semantic-conventions": "^1.10.1",
"@opentelemetry/exporter-trace-otlp-http": "^0.48.0",
"@opentelemetry/instrumentation": "^0.48.0",
"@opentelemetry/instrumentation-grpc": "^0.48.0",
"@opentelemetry/instrumentation-http": "^0.48.0",
"@opentelemetry/resources": "^1.21.0",
"@opentelemetry/sdk-trace-node": "^1.21.0",
"@opentelemetry/semantic-conventions": "^1.21.0",
"google-protobuf": "3.14.0",
"portfinder": "^1.0.32",
"tslib": "^2.1.0"
Expand All @@ -57,11 +58,12 @@
"devDependencies": {
"@types/google-protobuf": "^3.15.6",
"@types/jest": "^26.0.15",
"@types/node": "^20.11.17",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"codecov": "^3.8.3",
"eslint": "^7.24.0",
"eslint-plugin-jsdoc": "^40.1.0",
"eslint-plugin-jsdoc": "^46.9.1",
"glob-run": "^0.1.7",
"grpc-tools": "^1.11.3",
"husky": "^6.0.0",
Expand Down
82 changes: 0 additions & 82 deletions src/api/documents/v0/collection-group-ref.test.ts

This file was deleted.

115 changes: 0 additions & 115 deletions src/api/documents/v0/collection-group-ref.ts

This file was deleted.

Loading
Loading