Skip to content

Commit

Permalink
update package versions to use ~, update hash library
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnoble committed Nov 5, 2024
1 parent f8bcda2 commit eef12f8
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 81 deletions.
34 changes: 17 additions & 17 deletions asset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
"test": "yarn --cwd ../ test"
},
"dependencies": {
"@faker-js/faker": "^9.0.3",
"@terascope/data-mate": "^1.3.2",
"@terascope/job-components": "^1.5.3",
"@terascope/standard-asset-apis": "^1.0.2",
"@terascope/teraslice-state-storage": "^1.3.2",
"@terascope/utils": "^1.3.2",
"@types/chance": "^1.1.4",
"@types/express": "^4.17.19",
"chance": "^1.1.12",
"express": "^4.21.1",
"mocker-data-generator": "^3.0.3",
"prom-client": "^15.1.2",
"randexp": "^0.5.3",
"short-unique-id": "^5.2.0",
"timsort": "^0.3.0",
"ts-transforms": "^1.3.2",
"tslib": "^2.8.1"
"@faker-js/faker": "~9.2.0",
"@terascope/data-mate": "~1.3.2",
"@terascope/job-components": "~1.5.3",
"@terascope/standard-asset-apis": "~1.0.2",
"@terascope/teraslice-state-storage": "~1.3.2",
"@terascope/utils": "~1.3.2",
"@types/chance": "~1.1.4",
"@types/express": "~4.17.19",
"chance": "~1.1.12",
"express": "~4.21.1",
"mocker-data-generator": "~3.0.3",
"prom-client": "~15.1.2",
"randexp": "~0.5.3",
"short-unique-id": "~5.2.0",
"timsort": "~0.3.0",
"ts-transforms": "~1.3.2",
"tslib": "~2.8.1"
},
"engines": {
"node": ">=18.0.0",
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@
"test:watch": "ts-scripts test --watch asset --"
},
"devDependencies": {
"@terascope/eslint-config": "^1.1.0",
"@terascope/job-components": "^1.5.3",
"@terascope/scripts": "^1.4.2",
"@terascope/standard-asset-apis": "^1.0.2",
"@types/express": "^4.17.19",
"@types/jest": "^29.5.14",
"@types/json2csv": "^5.0.7",
"@types/node": "^22.8.4",
"@types/node-gzip": "^1.1.0",
"@types/timsort": "^0.3.0",
"eslint": "^9.14.0",
"jest": "^29.7.0",
"jest-extended": "^4.0.2",
"node-notifier": "^10.0.1",
"teraslice-test-harness": "^1.2.0",
"ts-jest": "^29.2.5",
"tslib": "^2.8.1",
"@terascope/eslint-config": "~1.1.0",
"@terascope/job-components": "~1.5.3",
"@terascope/scripts": "~1.4.2",
"@terascope/standard-asset-apis": "~1.0.2",
"@types/express": "~4.17.19",
"@types/jest": "~29.5.14",
"@types/json2csv": "~5.0.7",
"@types/node": "~22.9.0",
"@types/node-gzip": "~1.1.0",
"@types/timsort": "~0.3.0",
"eslint": "~9.14.0",
"jest": "~29.7.0",
"jest-extended": "~4.0.2",
"node-notifier": "~10.0.1",
"teraslice-test-harness": "~1.2.0",
"ts-jest": "~29.2.5",
"tslib": "~2.8.1",
"typescript": "~5.2.2"
},
"engines": {
Expand Down
17 changes: 9 additions & 8 deletions packages/standard-asset-apis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@
"test:watch": "ts-scripts test --watch . --"
},
"dependencies": {
"@sindresorhus/fnv1a": "^2.0.1",
"@terascope/utils": "^1.3.2"
"@sindresorhus/fnv1a": "~3.1.0",
"@terascope/utils": "~1.3.2"
},
"devDependencies": {
"@terascope/scripts": "^1.4.2",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
"jest-extended": "^4.0.2",
"jest-fixtures": "^0.6.0",
"ts-jest": "^29.2.5"
"@terascope/scripts": "~1.4.2",
"@types/jest": "~29.5.14",
"@types/node": "~22.9.0",
"jest": "~29.7.0",
"jest-extended": "~4.0.2",
"jest-fixtures": "~0.6.0",
"ts-jest": "~29.2.5"
},
"engines": {
"node": ">=18.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/standard-asset-apis/src/RoutedSender.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
DataEntity, pMap, getLast, isInteger, RouteSenderAPI, Logger
DataEntity, pMap, getLast,
isInteger, RouteSenderAPI, Logger
} from '@terascope/utils';
import EventEmitter, { once } from 'node:events';

Expand Down
2 changes: 1 addition & 1 deletion packages/standard-asset-apis/src/routers/HashRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class HashRouter implements I.Router {
}

lookup(record: DataEntity): string {
const bucket = fnv1a(this.getHash(record)) % this.partitions;
const bucket = Number(fnv1a(this.getHash(record))) % this.partitions;
return bucket.toString();
}
}
Expand Down
Loading

0 comments on commit eef12f8

Please sign in to comment.