clarifai-web-grpc 1.1.8 → 2.0.0

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.
Files changed (69) hide show
  1. package/.github/workflows/ci.yml +0 -6
  2. package/CHANGELOG.md +12 -10
  3. package/package.json +4 -28
  4. package/.husky/pre-commit +0 -4
  5. package/.mocharc.yml +0 -5
  6. package/dist/cjs/google/api/annotations_pb.d.ts +0 -1
  7. package/dist/cjs/google/api/annotations_pb.js +0 -32
  8. package/dist/cjs/google/api/http_pb.d.ts +0 -1
  9. package/dist/cjs/google/api/http_pb.js +0 -813
  10. package/dist/cjs/index.d.ts +0 -5
  11. package/dist/cjs/index.js +0 -11
  12. package/dist/cjs/proto/clarifai/api/resources_pb.d.ts +0 -1
  13. package/dist/cjs/proto/clarifai/api/resources_pb.js +0 -32957
  14. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  15. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.js +0 -908
  16. package/dist/cjs/proto/clarifai/api/service_pb.d.ts +0 -1
  17. package/dist/cjs/proto/clarifai/api/service_pb.js +0 -38791
  18. package/dist/cjs/proto/clarifai/api/status/status_code_pb.d.ts +0 -1
  19. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +0 -312
  20. package/dist/cjs/proto/clarifai/api/status/status_pb.d.ts +0 -1
  21. package/dist/cjs/proto/clarifai/api/status/status_pb.js +0 -473
  22. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.d.ts +0 -1
  23. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +0 -52
  24. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -1
  25. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +0 -521
  26. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.d.ts +0 -1
  27. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +0 -294
  28. package/dist/cjs/proto/clarifai/auth/types/types_pb.d.ts +0 -1
  29. package/dist/cjs/proto/clarifai/auth/types/types_pb.js +0 -26
  30. package/dist/cjs/proto/clarifai/auth/util/extension_pb.d.ts +0 -1
  31. package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +0 -80
  32. package/dist/cjs/resources.d.ts +0 -12
  33. package/dist/cjs/resources.js +0 -47
  34. package/dist/cjs/service.d.ts +0 -1
  35. package/dist/cjs/service.js +0 -13
  36. package/dist/esm/google/api/annotations_pb.d.ts +0 -1
  37. package/dist/esm/google/api/annotations_pb.js +0 -32
  38. package/dist/esm/google/api/http_pb.d.ts +0 -1
  39. package/dist/esm/google/api/http_pb.js +0 -813
  40. package/dist/esm/index.d.ts +0 -5
  41. package/dist/esm/index.js +0 -7
  42. package/dist/esm/proto/clarifai/api/resources_pb.d.ts +0 -1
  43. package/dist/esm/proto/clarifai/api/resources_pb.js +0 -32957
  44. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  45. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.js +0 -904
  46. package/dist/esm/proto/clarifai/api/service_pb.d.ts +0 -1
  47. package/dist/esm/proto/clarifai/api/service_pb.js +0 -38791
  48. package/dist/esm/proto/clarifai/api/status/status_code_pb.d.ts +0 -1
  49. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +0 -312
  50. package/dist/esm/proto/clarifai/api/status/status_pb.d.ts +0 -1
  51. package/dist/esm/proto/clarifai/api/status/status_pb.js +0 -473
  52. package/dist/esm/proto/clarifai/api/utils/extensions_pb.d.ts +0 -1
  53. package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +0 -52
  54. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -1
  55. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +0 -521
  56. package/dist/esm/proto/clarifai/auth/scope/scope_pb.d.ts +0 -1
  57. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +0 -294
  58. package/dist/esm/proto/clarifai/auth/types/types_pb.d.ts +0 -1
  59. package/dist/esm/proto/clarifai/auth/types/types_pb.js +0 -26
  60. package/dist/esm/proto/clarifai/auth/util/extension_pb.d.ts +0 -1
  61. package/dist/esm/proto/clarifai/auth/util/extension_pb.js +0 -80
  62. package/dist/esm/resources.d.ts +0 -12
  63. package/dist/esm/resources.js +0 -11
  64. package/dist/esm/service.d.ts +0 -1
  65. package/dist/esm/service.js +0 -1
  66. package/tests/basic.test.ts +0 -41
  67. package/tests/helpers.test.ts +0 -47
  68. package/tsconfig.cjs.json +0 -7
  69. package/tsconfig.json +0 -25
@@ -18,12 +18,6 @@ jobs:
18
18
  node-version: 16
19
19
  - name: Install deps
20
20
  run: yarn install
21
- - name: Lint code
22
- run: yarn lint
23
- - name: Build package
24
- run: yarn build
25
- - name: Run tests
26
- run: yarn test
27
21
 
28
22
  release:
29
23
  needs: build
package/CHANGELOG.md CHANGED
@@ -1,13 +1,15 @@
1
- ## [1.1.8](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.1.7...v1.1.8) (2022-02-04)
1
+ # [2.0.0](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.1.8...v2.0.0) (2022-02-04)
2
2
 
3
3
 
4
- ### Reverts
4
+ ### Bug Fixes
5
5
 
6
- * Revert "fix: move stuff to src, split dist/esm to lib for easier entry references" ([4b45e0a](https://github.com/Clarifai/clarifai-web-grpc/commit/4b45e0afd0085c289a8b61ec130f3e5bbf8a7375))
7
- * Revert "fix: fix the paths in the lint cmd" ([146aa24](https://github.com/Clarifai/clarifai-web-grpc/commit/146aa24d1469b1bd24db427e3c1ce808715c3ce9))
8
- * Revert "fix: improve exports" ([8d4afaa](https://github.com/Clarifai/clarifai-web-grpc/commit/8d4afaa4270b3cfe8f1d42376611f4cb2285e417))
9
- * Revert "fix: remove CJS and clean up package resolution" ([3275dc3](https://github.com/Clarifai/clarifai-web-grpc/commit/3275dc3e3089a196358dd8ba30f3f8380cb5624f))
10
- * Revert "fix: fix typesVersions filesystem shimming" ([fa4bc4f](https://github.com/Clarifai/clarifai-web-grpc/commit/fa4bc4f5a48766abe51ad193118803b95d808225))
11
- * Revert "fix: make it a module" ([4900de9](https://github.com/Clarifai/clarifai-web-grpc/commit/4900de9f5ef2a6ba40ead5fe3d177744963a685d))
12
- * Revert "fix: ci process" ([253f652](https://github.com/Clarifai/clarifai-web-grpc/commit/253f652c43cb603d63f00b6bd9156b2c6cbe2d53))
13
- * Revert "fix: use eslint. change re-export syntax to appease typescript compiler" ([aa2f82b](https://github.com/Clarifai/clarifai-web-grpc/commit/aa2f82b8cbfb61a2c1622c9edd82b9479d68083b))
6
+ * ci process ([3aee02d](https://github.com/Clarifai/clarifai-web-grpc/commit/3aee02d17bd05efc00fd645c62a6971e22fb2418))
7
+
8
+
9
+ * fix(package)!: cleanse the package ([100e142](https://github.com/Clarifai/clarifai-web-grpc/commit/100e142a34254933439f08224557d6c23162effb))
10
+
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ * Consumers must now import the fully qualified
15
+ package names.
package/package.json CHANGED
@@ -1,42 +1,18 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "1.1.8",
3
+ "version": "2.0.0",
4
4
  "description": "The official Clarifai gRPC-web client",
5
- "main": "dist/cjs/index.js",
6
- "module": "dist/esm/index.js",
7
- "types": "dist/esm/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/esm/index.js",
11
- "require": "./dist/cjs/index.js"
12
- },
13
- "./resources": {
14
- "import": "./dist/esm/resources.js",
15
- "require": "./dist/cjs/resources.js"
16
- },
17
- "./service": {
18
- "import": "./dist/esm/service.js",
19
- "require": "./dist/cjs/service.js"
20
- }
21
- },
5
+ "type": "module",
22
6
  "repository": "https://github.com/Clarifai/clarifai-web-grpc",
23
7
  "author": "Clarifai Inc.",
24
8
  "license": "Apache-2.0",
25
9
  "keywords": [],
26
10
  "scripts": {
27
- "test": "mocha",
28
- "lint": "eslint index.ts resources.ts service.ts",
29
- "clean": "rm -rf dist clarifai-web-grpc-*.tgz",
30
- "typecheck": "tsc --pretty --noEmit",
31
- "build:cjs": "tsc -b tsconfig.cjs.json",
32
- "build:esm": "tsc -b",
33
- "build": "yarn build:esm && yarn build:cjs",
34
- "prepack": "yarn clean && yarn build",
35
11
  "release": "semantic-release",
36
12
  "prepare": "husky install"
37
13
  },
38
14
  "dependencies": {
39
- "google-protobuf": "~3.14.0",
15
+ "google-protobuf": "^3.19.4",
40
16
  "grpc-web": "~1.0.5"
41
17
  },
42
18
  "devDependencies": {
@@ -44,7 +20,7 @@
44
20
  "@commitlint/config-conventional": "^16.0.0",
45
21
  "@semantic-release/changelog": "^6.0.1",
46
22
  "@types/chai": "^4.3.0",
47
- "@types/google-protobuf": "~3.7.0",
23
+ "@types/google-protobuf": "^3.15.5",
48
24
  "@types/mocha": "^9.0.0",
49
25
  "@types/node": "~10.17.0",
50
26
  "@typescript-eslint/eslint-plugin": "^5.10.1",
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- yarn test
package/.mocharc.yml DELETED
@@ -1,5 +0,0 @@
1
- color: true
2
- extension:
3
- - ts
4
- require: ts-node/register
5
- spec: tests/**/*.test.ts
@@ -1 +0,0 @@
1
- export {};
@@ -1,32 +0,0 @@
1
- "use strict";
2
- // source: google/api/annotations.proto
3
- /**
4
- * @fileoverview
5
- * @enhanceable
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
- var jspb = require('google-protobuf');
14
- var goog = jspb;
15
- var global = Function('return this')();
16
- var google_api_http_pb = require('../../google/api/http_pb.js');
17
- goog.object.extend(proto, google_api_http_pb);
18
- var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
19
- goog.object.extend(proto, google_protobuf_descriptor_pb);
20
- goog.exportSymbol('proto.google.api.http', null, global);
21
- /**
22
- * A tuple of {field number, class constructor} for the extension
23
- * field named `http`.
24
- * @type {!jspb.ExtensionFieldInfo<!proto.google.api.HttpRule>}
25
- */
26
- proto.google.api.http = new jspb.ExtensionFieldInfo(72295728, { http: 0 }, google_api_http_pb.HttpRule,
27
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (google_api_http_pb.HttpRule.toObject), 0);
28
- google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo(proto.google.api.http, jspb.BinaryReader.prototype.readMessage, jspb.BinaryWriter.prototype.writeMessage, google_api_http_pb.HttpRule.serializeBinaryToWriter, google_api_http_pb.HttpRule.deserializeBinaryFromReader, false);
29
- // This registers the extension field with the extended class, so that
30
- // toObject() will function correctly.
31
- google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http;
32
- goog.object.extend(exports, proto.google.api);
@@ -1 +0,0 @@
1
- export {};