@naturalcycles/datastore-lib 3.26.2 → 3.27.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.
@@ -52,9 +52,6 @@ class DatastoreDB extends db_lib_1.BaseCommonDB {
52
52
  else if (process.env['GOOGLE_APPLICATION_CREDENTIALS']) {
53
53
  this.cfg.logger.log(`DatastoreDB connected via GOOGLE_APPLICATION_CREDENTIALS`);
54
54
  }
55
- if (this.cfg.useLegacyGRPC) {
56
- this.cfg.grpc = require('grpc');
57
- }
58
55
  if (this.cfg.grpc) {
59
56
  this.cfg.logger.log('!!! DatastoreDB using custom grpc !!!');
60
57
  }
@@ -15,11 +15,6 @@ export interface DatastoreDBCfg extends DatastoreOptions {
15
15
  */
16
16
  projectId?: string;
17
17
  credentials?: DatastoreCredentials;
18
- /**
19
- * @default false
20
- * set to `true` to load and use `grpc` module (legacy)
21
- */
22
- useLegacyGRPC?: boolean;
23
18
  /**
24
19
  * As described here: https://github.com/googleapis/nodejs-pubsub/issues/770#issuecomment-541226361
25
20
  * Allows to set the old native library here, e.g `grpc: require('grpc')`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/datastore-lib",
3
- "version": "3.26.2",
3
+ "version": "3.27.0",
4
4
  "description": "Opinionated library to work with Google Datastore",
5
5
  "scripts": {
6
6
  "prepare": "husky install"
@@ -9,17 +9,13 @@
9
9
  "@google-cloud/datastore": "^7.0.0",
10
10
  "@naturalcycles/db-lib": "^8.46.1",
11
11
  "@naturalcycles/js-lib": "^14.116.0",
12
- "@naturalcycles/nodejs-lib": "^12.0.0",
13
- "grpc": "^1.24.2"
12
+ "@naturalcycles/nodejs-lib": "^12.0.0"
14
13
  },
15
14
  "devDependencies": {
16
15
  "@naturalcycles/dev-lib": "^13.0.0",
17
16
  "@types/node": "^18.7.2",
18
17
  "jest": "^29.0.3"
19
18
  },
20
- "resolutions": {
21
- "long": "^4.0.0"
22
- },
23
19
  "files": [
24
20
  "dist",
25
21
  "src",
@@ -31,7 +27,7 @@
31
27
  "main": "dist/index.js",
32
28
  "types": "dist/index.d.ts",
33
29
  "engines": {
34
- "node": ">=16.10.0"
30
+ "node": ">=16.15.0"
35
31
  },
36
32
  "publishConfig": {
37
33
  "access": "public"
@@ -106,10 +106,6 @@ export class DatastoreDB extends BaseCommonDB implements CommonDB {
106
106
  this.cfg.logger.log(`DatastoreDB connected via GOOGLE_APPLICATION_CREDENTIALS`)
107
107
  }
108
108
 
109
- if (this.cfg.useLegacyGRPC) {
110
- this.cfg.grpc = require('grpc')
111
- }
112
-
113
109
  if (this.cfg.grpc) {
114
110
  this.cfg.logger.log('!!! DatastoreDB using custom grpc !!!')
115
111
  }
@@ -19,12 +19,6 @@ export interface DatastoreDBCfg extends DatastoreOptions {
19
19
 
20
20
  credentials?: DatastoreCredentials
21
21
 
22
- /**
23
- * @default false
24
- * set to `true` to load and use `grpc` module (legacy)
25
- */
26
- useLegacyGRPC?: boolean
27
-
28
22
  /**
29
23
  * As described here: https://github.com/googleapis/nodejs-pubsub/issues/770#issuecomment-541226361
30
24
  * Allows to set the old native library here, e.g `grpc: require('grpc')`