datastore-api 6.0.0 → 6.0.1

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.
package/package.json CHANGED
@@ -1,5 +1,71 @@
1
1
  {
2
+ "name": "datastore-api",
3
+ "version": "6.0.1",
4
+ "description": "Simplified, more consitent API for Google Cloud Datastore",
5
+ "keywords": [
6
+ "datastore",
7
+ "google cloud"
8
+ ],
9
+ "homepage": "http://github.com/mdornseif/datastore-api/",
10
+ "repository": "https://github.com/mdornseif/datastore-api",
11
+ "license": "MIT",
2
12
  "author": "Maximillian Dornseif",
13
+ "main": "dist/index.js",
14
+ "module": "dist/datastore-api2.esm.js",
15
+ "typings": "dist/index.d.ts",
16
+ "files": [
17
+ "dist",
18
+ "src"
19
+ ],
20
+ "scripts": {
21
+ "analyze": "size-limit --why",
22
+ "build": "dts build",
23
+ "doc": "typedoc src/ --exclude **/*.spec.ts --out build/docs",
24
+ "lint": "dts lint",
25
+ "size": "size-limit",
26
+ "start": "dts watch",
27
+ "test": "vitest",
28
+ "unimported": "npx unimported; npx findead src"
29
+ },
30
+ "husky": {
31
+ "hooks": {
32
+ "pre-commit": "lint-staged"
33
+ }
34
+ },
35
+ "lint-staged": {
36
+ "*{css,scss,md,markdown,json,yaml,yml,graphql,html}": "npx prettier -w",
37
+ "*{js,jsx,ts,tsx}": [
38
+ "npx prettier -w",
39
+ "npm run lint --fix"
40
+ ],
41
+ "package.json": "sort-package-json"
42
+ },
43
+ "config": {
44
+ "commitizen": {
45
+ "path": "cz-conventional-changelog"
46
+ }
47
+ },
48
+ "prettier": {
49
+ "printWidth": 110,
50
+ "semi": true,
51
+ "singleQuote": true,
52
+ "trailingComma": "es5"
53
+ },
54
+ "release": {
55
+ "branches": [
56
+ "main",
57
+ "master",
58
+ "next"
59
+ ],
60
+ "plugins": [
61
+ "@semantic-release/commit-analyzer",
62
+ "@semantic-release/release-notes-generator",
63
+ "@semantic-release/changelog",
64
+ "@semantic-release/git",
65
+ "@semantic-release/github",
66
+ "@semantic-release/npm"
67
+ ]
68
+ },
3
69
  "ava": {
4
70
  "failFast": true,
5
71
  "files": [
@@ -12,20 +78,26 @@
12
78
  }
13
79
  }
14
80
  },
15
- "config": {
16
- "commitizen": {
17
- "path": "cz-conventional-changelog"
18
- }
81
+ "nyc": {
82
+ "exclude": [
83
+ "**/*.spec.js"
84
+ ],
85
+ "extends": "@istanbuljs/nyc-config-typescript"
19
86
  },
20
87
  "dependencies": {
21
88
  "@google-cloud/datastore": ">=7.0.0",
22
89
  "assertate-debug": "^2.4.2",
23
90
  "prom-client": ">=14.0.0"
24
91
  },
25
- "description": "Simplified, more consitent API for Google Cloud Datastore",
26
92
  "devDependencies": {
27
93
  "@google-cloud/promisify": "^3.0.1",
28
94
  "@istanbuljs/nyc-config-typescript": "^1.0.1",
95
+ "@semantic-release/changelog": "^6.0.3",
96
+ "@semantic-release/commit-analyzer": "^11.1.0",
97
+ "@semantic-release/git": "^10.0.1",
98
+ "@semantic-release/github": "^9.2.6",
99
+ "@semantic-release/npm": "^11.0.2",
100
+ "@semantic-release/release-notes-generator": "^12.1.0",
29
101
  "@size-limit/preset-small-lib": "^8.2.6",
30
102
  "@tsconfig/recommended": "^1.0.2",
31
103
  "@types/debug": "^4.1.8",
@@ -55,6 +127,7 @@
55
127
  "nyc": "^15.1.0",
56
128
  "open-cli": "7.2.0",
57
129
  "prettier": "^3.2.2",
130
+ "semantic-release": "^23.0.0",
58
131
  "size-limit": "^8.2.6",
59
132
  "sort-package-json": "^2.5.0",
60
133
  "standard-version": "^9.0.0",
@@ -65,69 +138,10 @@
65
138
  "typescript": "<5.1.0",
66
139
  "vitest": "^0.32.2"
67
140
  },
68
- "engines": {
69
- "node": ">=16"
70
- },
71
- "files": [
72
- "dist",
73
- "src"
74
- ],
75
- "homepage": "http://github.com/mdornseif/datastore-api/",
76
- "husky": {
77
- "hooks": {
78
- "pre-commit": "lint-staged"
79
- }
80
- },
81
- "keywords": [
82
- "datastore",
83
- "google cloud"
84
- ],
85
- "license": "MIT",
86
- "lint-staged": {
87
- "*{css,scss,md,markdown,json,yaml,yml,graphql,html}": "npx prettier -w",
88
- "*{js,jsx,ts,tsx}": [
89
- "npx prettier -w",
90
- "npm run lint --fix"
91
- ],
92
- "package.json": "sort-package-json"
93
- },
94
- "main": "dist/index.js",
95
- "module": "dist/datastore-api2.esm.js",
96
- "name": "datastore-api",
97
- "nyc": {
98
- "exclude": [
99
- "**/*.spec.js"
100
- ],
101
- "extends": "@istanbuljs/nyc-config-typescript"
102
- },
103
141
  "peerDependencies": {
104
142
  "debug": ">=4.0.0"
105
143
  },
106
- "prettier": {
107
- "printWidth": 110,
108
- "semi": true,
109
- "singleQuote": true,
110
- "trailingComma": "es5"
111
- },
112
- "release": {
113
- "branches": [
114
- "main",
115
- "master",
116
- "next"
117
- ]
118
- },
119
- "repository": "https://github.com/mdornseif/datastore-api",
120
- "scripts": {
121
- "analyze": "size-limit --why",
122
- "build": "dts build",
123
- "doc": "typedoc src/ --exclude **/*.spec.ts --out build/docs",
124
- "lint": "dts lint",
125
- "size": "size-limit",
126
- "start": "dts watch",
127
- "test": "vitest",
128
- "unimported": "npx unimported; npx findead src",
129
- "version": "standard-version"
130
- },
131
- "typings": "dist/index.d.ts",
132
- "version": "6.0.0"
144
+ "engines": {
145
+ "node": ">=16"
146
+ }
133
147
  }
@@ -38,6 +38,9 @@ const debug = Debug('ds:api');
38
38
  /** @ignore */
39
39
  const transactionAsyncLocalStorage = new AsyncLocalStorage();
40
40
 
41
+ // for HMR
42
+ promClient.register.removeSingleMetric('dstore_requests_seconds')
43
+ promClient.register.removeSingleMetric('dstore_failures_total')
41
44
  /** @ignore */
42
45
  const metricHistogram = new promClient.Histogram({
43
46
  name: 'dstore_requests_seconds',