Skip to content

Commit ff39025

Browse files
authored
Merge branch 'main' into add_event_code
2 parents 7485b2a + 56969b9 commit ff39025

40 files changed

Lines changed: 296 additions & 438 deletions

File tree

CHANGELOG.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,47 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
and this project adheres to
88
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99

10-
## Unreleased
10+
# Unreleased
11+
12+
## 11.0.3
13+
14+
- Moved `vis` dependency to devDependencies
15+
16+
## 11.0.2
17+
18+
- Republish 11.0.1
19+
20+
## 11.0.1
21+
22+
- **Breaking:** Also remove the deprecated/unused `graphObjectBufferThreshold`
23+
on the FileSystemGraphObjectStoreParams
24+
25+
## 11.0.0
26+
27+
- **Breaking:** Change `TargetFilterKey` type to only allow composite keys.
28+
Plain string keys are no longer allowed.
29+
30+
- **Breaking:** Batch size Options removed:
31+
- Removed unused `--upload-batch-size` and `--upload-relationship-batch-size`
32+
options from CLI sync commands
33+
- Removed unused `uploadBatchSize` and `uploadRelationshipBatchSize`
34+
parameters from programmatic sync methods
35+
36+
## 10.7.1 - 2023-09-26
37+
38+
- Use batching by size as default - and the only option.
39+
40+
## 10.7.0 - 2023-09-21
41+
42+
- Changed the log level of the `Collected metric` log that is published when
43+
logger.publishMetric is called to "debug"
44+
45+
## 10.6.0 - 2023-09-21
46+
47+
- Release with 10.1.0 changes again:
48+
- 'InMemoryGraphObjectStore' no longer stores a set amount of entities or
49+
relationships, rather it works by measuring size in bytes of graph objects by
50+
default.
1151

1252
## 10.5.3 - 2023-09-18
1353

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"packages/integration-sdk-*",
55
"packages/cli"
66
],
7-
"version": "10.5.3"
7+
"version": "11.0.3"
88
}

packages/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jupiterone/cli",
3-
"version": "10.5.3",
3+
"version": "11.0.3",
44
"description": "The JupiterOne cli",
55
"main": "dist/src/index.js",
66
"types": "dist/src/index.d.ts",
@@ -24,8 +24,8 @@
2424
"test": "jest"
2525
},
2626
"dependencies": {
27-
"@jupiterone/integration-sdk-core": "^10.5.3",
28-
"@jupiterone/integration-sdk-runtime": "^10.5.3",
27+
"@jupiterone/integration-sdk-core": "^11.0.3",
28+
"@jupiterone/integration-sdk-runtime": "^11.0.3",
2929
"@lifeomic/attempt": "^3.0.3",
3030
"commander": "^5.0.0",
3131
"globby": "^11.0.1",

packages/integration-sdk-benchmark/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jupiterone/integration-sdk-benchmark",
3-
"version": "10.5.3",
3+
"version": "11.0.3",
44
"private": true,
55
"description": "SDK benchmarking scripts",
66
"main": "./src/index.js",
@@ -15,8 +15,8 @@
1515
"benchmark": "for file in ./src/benchmarks/*; do yarn prebenchmark && node $file; done"
1616
},
1717
"dependencies": {
18-
"@jupiterone/integration-sdk-core": "^10.5.3",
19-
"@jupiterone/integration-sdk-runtime": "^10.5.3",
18+
"@jupiterone/integration-sdk-core": "^11.0.3",
19+
"@jupiterone/integration-sdk-runtime": "^11.0.3",
2020
"benchmark": "^2.1.4"
2121
}
2222
}

packages/integration-sdk-cli/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jupiterone/integration-sdk-cli",
3-
"version": "10.5.3",
3+
"version": "11.0.3",
44
"description": "The SDK for developing JupiterOne integrations",
55
"main": "dist/src/index.js",
66
"types": "dist/src/index.d.ts",
@@ -25,8 +25,8 @@
2525
},
2626
"dependencies": {
2727
"@jupiterone/data-model": "^0.54.0",
28-
"@jupiterone/integration-sdk-core": "^10.5.3",
29-
"@jupiterone/integration-sdk-runtime": "^10.5.3",
28+
"@jupiterone/integration-sdk-core": "^11.0.3",
29+
"@jupiterone/integration-sdk-runtime": "^11.0.3",
3030
"chalk": "^4",
3131
"commander": "^9.4.0",
3232
"fs-extra": "^10.1.0",
@@ -40,11 +40,10 @@
4040
"plop": "^3.1.2",
4141
"runtypes": "5.1.0",
4242
"upath": "^1.2.0",
43-
"url-exists": "^1.0.3",
44-
"vis": "^4.21.0-EOL"
43+
"url-exists": "^1.0.3"
4544
},
4645
"devDependencies": {
47-
"@jupiterone/integration-sdk-private-test-utils": "^10.5.3",
46+
"@jupiterone/integration-sdk-private-test-utils": "^11.0.3",
4847
"@pollyjs/adapter-node-http": "^6.0.5",
4948
"@pollyjs/core": "^6.0.5",
5049
"@pollyjs/persister-fs": "^6.0.5",
@@ -54,6 +53,7 @@
5453
"@types/lodash": "^4.14.158",
5554
"@types/vis": "^4.21.20",
5655
"memfs": "^3.2.0",
57-
"neo-forgery": "^2.0.0"
56+
"neo-forgery": "^2.0.0",
57+
"vis": "^4.21.0-EOL"
5858
}
5959
}

packages/integration-sdk-cli/src/__tests__/options.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@ import {
99
validateSyncOptions,
1010
} from '../commands/options';
1111
import {
12-
DEFAULT_UPLOAD_BATCH_SIZE,
1312
JUPITERONE_DEV_API_BASE_URL,
1413
JUPITERONE_PROD_API_BASE_URL,
1514
} from '@jupiterone/integration-sdk-runtime';
1615

1716
const syncOptions = (values?: Partial<SyncOptions>): SyncOptions => ({
1817
source: 'integration-managed',
19-
uploadBatchSize: DEFAULT_UPLOAD_BATCH_SIZE,
20-
uploadRelationshipBatchSize: DEFAULT_UPLOAD_BATCH_SIZE,
2118
skipFinalize: false,
2219
...values,
2320
});

packages/integration-sdk-cli/src/commands/options.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
DEFAULT_UPLOAD_BATCH_SIZE,
32
getAccountFromEnvironment,
43
getApiKeyFromEnvironment,
54
JUPITERONE_DEV_API_BASE_URL,
@@ -39,8 +38,6 @@ export interface SyncOptions {
3938
source: 'integration-managed' | 'integration-external' | 'api';
4039
scope?: string | undefined;
4140
integrationInstanceId?: string | undefined;
42-
uploadBatchSize: number;
43-
uploadRelationshipBatchSize: number;
4441
skipFinalize: boolean;
4542
}
4643

@@ -69,18 +66,6 @@ export function addSyncOptionsToCommand(command: Command): Command {
6966
'integration-managed',
7067
)
7168
.option('--scope <anystring>', 'specify synchronization job scope value')
72-
.option(
73-
'-u, --upload-batch-size <number>',
74-
'specify number of entities and relationships per upload batch',
75-
(value, _previous: Number) => Number(value),
76-
DEFAULT_UPLOAD_BATCH_SIZE,
77-
)
78-
.option(
79-
'-ur, --upload-relationship-batch-size <number>',
80-
'specify number of relationships per upload batch, overrides --upload-batch-size',
81-
(value, _previous: Number) => Number(value),
82-
DEFAULT_UPLOAD_BATCH_SIZE,
83-
)
8469
.option(
8570
'--skip-finalize',
8671
'skip synchronization finalization to leave job open for additional uploads',
@@ -127,8 +112,6 @@ export function getSyncOptions(options: OptionValues): SyncOptions {
127112
source: options.source,
128113
scope: options.scope,
129114
integrationInstanceId: options.integrationInstanceId,
130-
uploadBatchSize: options.uploadBatchSize,
131-
uploadRelationshipBatchSize: options.uploadRelationshipBatchSize,
132115
skipFinalize: options.skipFinalize,
133116
};
134117
}

packages/integration-sdk-cli/src/commands/run.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ export function run(): Command {
109109
stepId,
110110
synchronizationJobContext: synchronizationContext,
111111
uploadConcurrency: DEFAULT_UPLOAD_CONCURRENCY,
112-
uploadBatchSize: options.uploadBatchSize,
113-
uploadRelationshipsBatchSize:
114-
options.uploadRelationshipBatchSize,
115112
});
116113
},
117114
},

packages/integration-sdk-cli/src/commands/visualize-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createCommand } from 'commander';
22
import { promises as fs } from 'fs';
33
import * as path from 'path';
4-
import { Edge, Node, Options } from 'vis';
4+
import type { Edge, Node, Options } from 'vis';
55

66
import {
77
RelationshipDirection,

packages/integration-sdk-cli/src/generator/template/.prettierignore.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ dist
22
coverage/
33
.j1-integration
44
.j1-integration-cache
5-
.gitleaks.yml
5+
.gitleaks.yml
6+
CHANGELOG.md

0 commit comments

Comments
 (0)