harperdb 4.7.0-alpha.2 → 4.7.0-alpha.3
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/README.md +1 -1
- package/bin/harperdb.js +48 -51
- package/bin/lite.js +48 -51
- package/components/status/ComponentStatus.d.ts +1 -1
- package/components/status/ComponentStatusRegistry.d.ts +1 -1
- package/components/status/crossThread.d.ts +1 -1
- package/components/status/index.d.ts +3 -3
- package/launchServiceScripts/launchNatsIngestService.js +48 -51
- package/launchServiceScripts/launchNatsReplyService.js +48 -51
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +48 -51
- package/npm-shrinkwrap.json +23 -23
- package/package.json +1 -1
- package/resources/RequestTarget.d.ts +1 -1
- package/resources/Resource.d.ts +1 -1
- package/resources/ResourceInterface.d.ts +7 -7
- package/resources/usageLicensing.d.ts +13 -8
- package/server/jobs/jobProcess.js +48 -51
- package/server/replication/replicator.d.ts +2 -2
- package/server/status/index.d.ts +2 -2
- package/server/threads/threadServer.js +48 -51
- package/studio/build-local/asset-manifest.json +2 -2
- package/studio/build-local/index.html +1 -1
- package/studio/build-local/static/js/{main.b93998e3.js → main.eedb02ca.js} +2 -2
- package/utility/hdbTerms.d.ts +3 -0
- package/utility/scripts/restartHdb.js +48 -51
- package/validation/usageLicensing.d.ts +7 -0
- /package/studio/build-local/static/js/{main.b93998e3.js.LICENSE.txt → main.eedb02ca.js.LICENSE.txt} +0 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harperdb",
|
|
3
|
-
"version": "4.7.0-alpha.
|
|
3
|
+
"version": "4.7.0-alpha.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "harperdb",
|
|
9
|
-
"version": "4.7.0-alpha.
|
|
9
|
+
"version": "4.7.0-alpha.3",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "SEE LICENSE IN LICENSE",
|
|
12
12
|
"dependencies": {
|
|
@@ -933,9 +933,9 @@
|
|
|
933
933
|
}
|
|
934
934
|
},
|
|
935
935
|
"node_modules/@aws-sdk/util-locate-window": {
|
|
936
|
-
"version": "3.
|
|
937
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.
|
|
938
|
-
"integrity": "sha512-
|
|
936
|
+
"version": "3.873.0",
|
|
937
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.873.0.tgz",
|
|
938
|
+
"integrity": "sha512-xcVhZF6svjM5Rj89T1WzkjQmrTF6dpR2UvIHPMTnSZoNe6CixejPZ6f0JJ2kAhO8H+dUHwNBlsUgOTIKiK/Syg==",
|
|
939
939
|
"license": "Apache-2.0",
|
|
940
940
|
"dependencies": {
|
|
941
941
|
"tslib": "^2.6.2"
|
|
@@ -1379,9 +1379,9 @@
|
|
|
1379
1379
|
}
|
|
1380
1380
|
},
|
|
1381
1381
|
"node_modules/@isaacs/cliui/node_modules/ansi-regex": {
|
|
1382
|
-
"version": "6.
|
|
1383
|
-
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.
|
|
1384
|
-
"integrity": "sha512-
|
|
1382
|
+
"version": "6.2.0",
|
|
1383
|
+
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.0.tgz",
|
|
1384
|
+
"integrity": "sha512-TKY5pyBkHyADOPYlRT9Lx6F544mPl0vS5Ew7BJ45hA08Q+t3GjbueLliBWN3sMICk6+y7HdyxSzC4bWS8baBdg==",
|
|
1385
1385
|
"license": "MIT",
|
|
1386
1386
|
"engines": {
|
|
1387
1387
|
"node": ">=12"
|
|
@@ -3349,9 +3349,9 @@
|
|
|
3349
3349
|
"optional": true
|
|
3350
3350
|
},
|
|
3351
3351
|
"node_modules/bare-fs": {
|
|
3352
|
-
"version": "4.2.
|
|
3353
|
-
"resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.2.
|
|
3354
|
-
"integrity": "sha512-
|
|
3352
|
+
"version": "4.2.1",
|
|
3353
|
+
"resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.2.1.tgz",
|
|
3354
|
+
"integrity": "sha512-mELROzV0IhqilFgsl1gyp48pnZsaV9xhQapHLDsvn4d4ZTfbFhcghQezl7FTEDNBcGqLUnNI3lUlm6ecrLWdFA==",
|
|
3355
3355
|
"license": "Apache-2.0",
|
|
3356
3356
|
"optional": true,
|
|
3357
3357
|
"dependencies": {
|
|
@@ -3372,9 +3372,9 @@
|
|
|
3372
3372
|
}
|
|
3373
3373
|
},
|
|
3374
3374
|
"node_modules/bare-os": {
|
|
3375
|
-
"version": "3.6.
|
|
3376
|
-
"resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.6.
|
|
3377
|
-
"integrity": "sha512-
|
|
3375
|
+
"version": "3.6.2",
|
|
3376
|
+
"resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.6.2.tgz",
|
|
3377
|
+
"integrity": "sha512-T+V1+1srU2qYNBmJCXZkUY5vQ0B4FSlL3QDROnKQYOqeiQR8UbjNHlPa+TIbM4cuidiN9GaTaOZgSEgsvPbh5A==",
|
|
3378
3378
|
"license": "Apache-2.0",
|
|
3379
3379
|
"optional": true,
|
|
3380
3380
|
"engines": {
|
|
@@ -5934,9 +5934,9 @@
|
|
|
5934
5934
|
}
|
|
5935
5935
|
},
|
|
5936
5936
|
"node_modules/log-symbols/node_modules/chalk": {
|
|
5937
|
-
"version": "5.
|
|
5938
|
-
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.
|
|
5939
|
-
"integrity": "sha512-
|
|
5937
|
+
"version": "5.6.0",
|
|
5938
|
+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.0.tgz",
|
|
5939
|
+
"integrity": "sha512-46QrSQFyVSEyYAgQ22hQ+zDa60YHA4fBstHmtSApj1Y5vKtG27fWowW03jCk5KcbXEWPZUIR894aARCA/G1kfQ==",
|
|
5940
5940
|
"license": "MIT",
|
|
5941
5941
|
"engines": {
|
|
5942
5942
|
"node": "^12.17.0 || ^14.13 || >=16.0.0"
|
|
@@ -6635,9 +6635,9 @@
|
|
|
6635
6635
|
}
|
|
6636
6636
|
},
|
|
6637
6637
|
"node_modules/ora/node_modules/ansi-regex": {
|
|
6638
|
-
"version": "6.
|
|
6639
|
-
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.
|
|
6640
|
-
"integrity": "sha512-
|
|
6638
|
+
"version": "6.2.0",
|
|
6639
|
+
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.0.tgz",
|
|
6640
|
+
"integrity": "sha512-TKY5pyBkHyADOPYlRT9Lx6F544mPl0vS5Ew7BJ45hA08Q+t3GjbueLliBWN3sMICk6+y7HdyxSzC4bWS8baBdg==",
|
|
6641
6641
|
"license": "MIT",
|
|
6642
6642
|
"engines": {
|
|
6643
6643
|
"node": ">=12"
|
|
@@ -6647,9 +6647,9 @@
|
|
|
6647
6647
|
}
|
|
6648
6648
|
},
|
|
6649
6649
|
"node_modules/ora/node_modules/chalk": {
|
|
6650
|
-
"version": "5.
|
|
6651
|
-
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.
|
|
6652
|
-
"integrity": "sha512-
|
|
6650
|
+
"version": "5.6.0",
|
|
6651
|
+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.0.tgz",
|
|
6652
|
+
"integrity": "sha512-46QrSQFyVSEyYAgQ22hQ+zDa60YHA4fBstHmtSApj1Y5vKtG27fWowW03jCk5KcbXEWPZUIR894aARCA/G1kfQ==",
|
|
6653
6653
|
"license": "MIT",
|
|
6654
6654
|
"engines": {
|
|
6655
6655
|
"node": "^12.17.0 || ^14.13 || >=16.0.0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harperdb",
|
|
3
|
-
"version": "4.7.0-alpha.
|
|
3
|
+
"version": "4.7.0-alpha.3",
|
|
4
4
|
"description": "HarperDB is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"database",
|
package/resources/Resource.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResourceInterface, SubscriptionRequest, Id, Context, Query, SourceContext } from './ResourceInterface.ts';
|
|
2
|
-
import { Transaction } from './DatabaseTransaction.ts';
|
|
2
|
+
import { type Transaction } from './DatabaseTransaction.ts';
|
|
3
3
|
import { IterableEventQueue } from './IterableEventQueue.ts';
|
|
4
4
|
import { AsyncLocalStorage } from 'async_hooks';
|
|
5
5
|
import { RequestTarget } from './RequestTarget.ts';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DatabaseTransaction } from './DatabaseTransaction.ts';
|
|
2
|
-
import { OperationFunctionName } from '../server/serverHelpers/serverUtilities.ts';
|
|
2
|
+
import type { OperationFunctionName } from '../server/serverHelpers/serverUtilities.ts';
|
|
3
3
|
import { RequestTarget } from './RequestTarget.ts';
|
|
4
|
-
import { Entry } from './RecordEncoder.ts';
|
|
4
|
+
import type { Entry } from './RecordEncoder.ts';
|
|
5
5
|
export interface ResourceInterface<Key = any, Record = any> {
|
|
6
6
|
get?(id: Id): Promise<Record>;
|
|
7
7
|
get?(query: RequestTargetOrId): Promise<AsyncIterable<Record>>;
|
|
@@ -76,20 +76,20 @@ export interface SourceContext<TRequestContext = Context> {
|
|
|
76
76
|
lastModified?: number;
|
|
77
77
|
}
|
|
78
78
|
export type Operator = 'and' | 'or';
|
|
79
|
-
type
|
|
79
|
+
type Comparator = 'equals' | 'contains' | 'starts_with' | 'ends_with' | 'greater_than' | 'greater_than_equal' | 'less_than' | 'less_than_equal' | 'between';
|
|
80
80
|
export interface DirectCondition {
|
|
81
81
|
attribute?: string;
|
|
82
82
|
search_attribute?: string;
|
|
83
|
-
comparator?:
|
|
84
|
-
search_type?:
|
|
83
|
+
comparator?: Comparator;
|
|
84
|
+
search_type?: Comparator;
|
|
85
85
|
value?: any;
|
|
86
86
|
search_value?: any;
|
|
87
87
|
}
|
|
88
88
|
interface ConditionGroup {
|
|
89
|
-
conditions
|
|
89
|
+
conditions?: Conditions;
|
|
90
90
|
operator?: Operator;
|
|
91
91
|
}
|
|
92
|
-
export type Condition = DirectCondition
|
|
92
|
+
export type Condition = DirectCondition & ConditionGroup;
|
|
93
93
|
export type Conditions = Condition[];
|
|
94
94
|
export interface Sort {
|
|
95
95
|
attribute: string;
|
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
import { ValidatedLicense } from '../validation/usageLicensing.ts';
|
|
1
|
+
import { type ValidatedLicense } from '../validation/usageLicensing.ts';
|
|
2
2
|
interface InstallLicenseRequest {
|
|
3
3
|
operation: 'install_usage_license';
|
|
4
4
|
license: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function installUsageLicenseOp(req: InstallLicenseRequest): Promise<string>;
|
|
7
|
+
export declare function installUsageLicense(license: string): Promise<void>;
|
|
7
8
|
interface UsageLicense extends ValidatedLicense {
|
|
8
|
-
usedReads
|
|
9
|
-
usedReadBytes
|
|
10
|
-
usedWrites
|
|
11
|
-
usedWriteBytes
|
|
12
|
-
usedRealTimeMessages
|
|
13
|
-
usedRealTimeBytes
|
|
14
|
-
usedCpuTime
|
|
9
|
+
usedReads?: number;
|
|
10
|
+
usedReadBytes?: number;
|
|
11
|
+
usedWrites?: number;
|
|
12
|
+
usedWriteBytes?: number;
|
|
13
|
+
usedRealTimeMessages?: number;
|
|
14
|
+
usedRealTimeBytes?: number;
|
|
15
|
+
usedCpuTime?: number;
|
|
16
|
+
usedStorage?: number;
|
|
15
17
|
}
|
|
16
18
|
interface UsageLicenseRecord extends UsageLicense {
|
|
17
19
|
addTo: (field: string, value: number) => void;
|
|
18
20
|
}
|
|
21
|
+
export declare function isActiveLicense(license: UsageLicense): boolean;
|
|
22
|
+
export declare function recordUsage(analytics: any): Promise<void>;
|
|
19
23
|
interface GetUsageLicensesReq {
|
|
20
24
|
operation: 'get_usage_licenses';
|
|
21
25
|
}
|
|
22
26
|
export declare function getUsageLicensesOp(req: GetUsageLicensesReq): AsyncIterable<UsageLicenseRecord>;
|
|
27
|
+
export declare function getUsageLicenses(): AsyncIterable<UsageLicenseRecord>;
|
|
23
28
|
export {};
|