Skip to content

Commit 97a3ae0

Browse files
authored
Update hypersync-sdk to 6.0.0 [XS]
2 parents 52fe846 + 8489140 commit 97a3ae0

6 files changed

Lines changed: 79 additions & 14 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ To get started with the Hypersync SDK hop on over to the [SDK documentation](doc
88

99
## Release Notes
1010

11+
### 6.0.0
12+
13+
- Bumped version to 6 to match hypersync-models package. All packages versions will be kept in sync from now on.
14+
- **Breaking:** Updated to Node.js 22
15+
- **Breaking:** Updated to `@hyperproof/hypersync-models` 6.0.0 and `@hyperproof/integration-sdk` 6.0.0
16+
- Replaced `hyperproofUser` with `organization` object of type `ILocalizable` that can be used for date localization
17+
- Added `ServiceDataIterator` class for iterative data fetching with support for dataset and criteria-sourced iteration
18+
- Added `sort` option to sort data after all pages are collected
19+
- Enhanced `JsonProofProvider` with iterator support for generating proofs from iterable data
20+
- Improved `JsonCriteriaProvider` with saved criteria settings and search input handling
21+
- Enhanced `RestDataSourceBase` with improved pagination and error handling
22+
- Added `continueOnError` support in data set lookups
23+
- Plus other bug fixes and performance enhancements
24+
1125
### 3.2.0
1226

1327
- Integrate latest Integration SDK which contains reliability improvements and bug fixes.

doc/001-getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The Hyperproof CLI is needed to publish and manage your custom Hypersyncs:
2222

2323
Finally, we recommend cloning the [Hypersync SDK Samples GitHub repository](https://github.com/Hyperproof/hypersync-sdk-samples). This is a public repository available on GitHub.com.
2424

25-
- The samples repository contains several complete Hypersync apps that can be used to bring data from an external service into Hyperproof. Using the Hypersync SDK you can customize these samples to meet your needs. The hypersync-sdk-samples repository contains samples for MySQL, Zoho and other services. Your will find the these Hypersync apps in the `/apps` directory.
25+
- The samples repository contains several complete Hypersync apps that can be used to bring data from an external service into Hyperproof. Using the Hypersync SDK you can customize these samples to meet your needs. The hypersync-sdk-samples repository contains samples for MySQL, Zoho and other services. You will find these Hypersync apps in the `/apps` directory.
2626

2727
- The samples repository also includes a handful of templates to get you started building your own Hypersyncs from scatch. Templates can be found in the `/templates` directory. See the `README.md` files in each template directory for more information on using the templates.
2828

doc/007-criteria.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class MyCriteriaProvider implements ICriteriaProvider{
7070
tokenContext: TokenContext,
7171
pages: ICriteriaPage[]
7272
): Promise<ICriteriaMetadata> {
73-
// TODO: Generate an ICriteriaMetdata instance containing the metadata for
73+
// TODO: Generate an ICriteriaMetadata instance containing the metadata for
7474
// the fields the user needs to configure, as well as defaults for the Hypersync
7575
// name, frequency of execution, and versioning behavior.
7676
}

doc/migration.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,56 @@
11
# Hypersync SDK Migration Guide
22

3+
## Version 6
4+
5+
### Package versions
6+
7+
Update package.json imports to the following versions:
8+
9+
```json
10+
"dependencies": {
11+
"@hyperproof/hypersync-models": "^6.0.0",
12+
"@hyperproof/hypersync-sdk": "^6.0.0",
13+
"@hyperproof/integration-sdk": "^6.0.0"
14+
}
15+
```
16+
17+
Update the package.json devDependencies accordingly:
18+
19+
```json
20+
"devDependencies": {
21+
"@types/node": "22.10.10"
22+
}
23+
```
24+
25+
Due to specific type dependencies, the types.node package needs to be updated to a specific version. Note there is no wildcard caret ^ in the version number.
26+
27+
If your code imported classes, types, interfaces, or enums from one of the other packages, those imports need to be updated after making this change.
28+
29+
### IP address allowlist change (US Only)
30+
31+
New internal infrastructure for custom apps running version ^6.0.0 of the hypersync-sdk will cause the outgoing API calls to come from a new IP address. If you had previously added a Hyperproof address to your private server's allowlist, you may need to add additional addresses for your custom app to continue to function. See the "Integrations" IP Address for your instance of Hyperproof: https://docs.hyperproof.io/admin/en/get-to-know-hyperproof/hp-instances.html
32+
33+
### OAuth callback change (US Only)
34+
35+
For the same reason as the IP address change, a new callback URL is required for all custom apps using oauth. Previous addresses are formatted according to the following template:
36+
37+
```
38+
https://api.us-west-1.fusebit.hyperproof.app/v1/run/sub-f63bb714ec30473e/org-{orgId}/{customAppId}/callback
39+
```
40+
41+
The new URL template is:
42+
43+
```
44+
https://hpip.hyperproof.app/v1/run/hpprod/org-{orgId}/{customAppId}/callback
45+
```
46+
47+
It is a known issue that Hypersync SDK version 1.2.4 generates incomplete, only relative URLs. Use the following base URLs for your Hyperproof instance:
48+
49+
- Hyperproof US: `https://hpip.hyperproof.app/v1/run/hpprod`
50+
- Hyperproof EU: `https://hpip.hyperproof.eu/v1/run/hpprodeu`
51+
52+
Update your oauth client's callback URL with this new value.
53+
354
## Version 2.X to Version 3.0
455

556
Version 3.0 of the Hypersync SDK includes a number of new capabilities that

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hyperproof/hypersync-sdk",
3-
"version": "6.0.0-beta.1",
3+
"version": "6.0.0",
44
"description": "Hypersync SDK",
55
"license": "MIT",
66
"repository": {
@@ -17,8 +17,8 @@
1717
"node": "^22.0.0"
1818
},
1919
"dependencies": {
20-
"@hyperproof/hypersync-models": "6.0.0-beta.1",
21-
"@hyperproof/integration-sdk": "6.0.0-beta.1",
20+
"@hyperproof/hypersync-models": "6.0.0",
21+
"@hyperproof/integration-sdk": "6.0.0",
2222
"@js-joda/core": "3.2.0",
2323
"@js-joda/timezone": "2.5.0",
2424
"abort-controller": "3.0.0",

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@
6060
resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz#4a2868d75d6d6963e423bcf90b7fd1be343409d3"
6161
integrity sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==
6262

63-
"@hyperproof/hypersync-models@6.0.0-beta.1":
64-
version "6.0.0-beta.1"
65-
resolved "https://registry.yarnpkg.com/@hyperproof/hypersync-models/-/hypersync-models-6.0.0-beta.1.tgz#ddbcd9b40c18db7d01ac2c8f945a05ab250f4114"
66-
integrity sha512-uTGEQaUbVJyXaIteKXv6wVa+/zrtD9Jfc7Pmu8q4MGr0WgpBOMZd8pIwK41l3rNzWbWTMewOCV028iv4pXpfAw==
63+
"@hyperproof/hypersync-models@6.0.0":
64+
version "6.0.0"
65+
resolved "https://registry.yarnpkg.com/@hyperproof/hypersync-models/-/hypersync-models-6.0.0.tgz#0422cb514ceec71be0b2d3ccab01fc2b1bf891da"
66+
integrity sha512-gLLvb+5wypfTym1x67FG7EPwP1eYgoc3i6vGS0/r1RMclQdogQ9FNSMyzP0/fOv8VYdfU14YHY2xspdQimxA3w==
6767

68-
"@hyperproof/integration-sdk@6.0.0-beta.1":
69-
version "6.0.0-beta.1"
70-
resolved "https://registry.yarnpkg.com/@hyperproof/integration-sdk/-/integration-sdk-6.0.0-beta.1.tgz#c6aebdf9353f589852fa73c3b01296e0376c6e74"
71-
integrity sha512-GVRo3C0GFF1LL3drQN8GFKZVhapN0kgKLZaVaxxMdO8O6+gh+VTQhN60iGMWMx1DTC4OErJ9JJNHuImYd7yszQ==
68+
"@hyperproof/integration-sdk@6.0.0":
69+
version "6.0.0"
70+
resolved "https://registry.yarnpkg.com/@hyperproof/integration-sdk/-/integration-sdk-6.0.0.tgz#de642ccd512c77041e3020f7d0fab67902ed09d2"
71+
integrity sha512-LQ7U/iH9MrXYj5e1kWhP0hsLp9RzdHEADDrHE6TGBYj/UVfI2yk3E9eG43Fo4rmV0ZjhvVGSbgYVh50NvNTQCg==
7272
dependencies:
73-
"@hyperproof/hypersync-models" "6.0.0-beta.1"
73+
"@hyperproof/hypersync-models" "6.0.0"
7474
"@js-joda/core" "3.2.0"
7575
"@pollyjs/adapter-node-http" "6.0.6"
7676
"@pollyjs/core" "6.0.6"

0 commit comments

Comments
 (0)