Skip to content

Commit 74f2890

Browse files
authored
feat: Make client compatible to latest EventSourcingDB version. (#194)
* feat: Make client compatible to latest EventSourcingDB version. * chore: Add keywords for npm. * chore: Use author instead of contributors. * chore: Remove pseudo-sample code. * chore: Remove unneeded unit tests. * chore: Further clean up. * Update ESDB version. * Fix TypeScript issues. * Implement more tests. * Change description of package. * Fix description. * Add tests for readEvents. * Completely switch to fetch. * Fix linter issues. * Add more tests. * Make most things run. * Implement AbortSignal support. * Implement all missing tests, fix aborting async iterators.
1 parent e7072b0 commit 74f2890

File tree

119 files changed

+2644
-7315
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+2644
-7315
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ updates:
1717
prefix-development: chore
1818

1919
- package-ecosystem: docker
20-
directory: "/test/shared/docker/eventsourcingdb"
20+
directory: "/test/docker"
2121
schedule:
2222
interval: weekly
2323
open-pull-requests-limit: 10

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# eventsourcingdb
22

3-
eventsourcingdb is the official client for EventSourcingDB.
3+
The official JavaScript client SDK for EventSourcingDB.

biome.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"enabled": true,
3838
"rules": {
3939
"all": true,
40+
"complexity": {
41+
"noExcessiveCognitiveComplexity": "off"
42+
},
4043
"correctness": {
4144
"noNodejsModules": "off"
4245
},

package-lock.json

Lines changed: 515 additions & 2038 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,47 @@
11
{
22
"name": "eventsourcingdb",
33
"version": "0.9.1",
4-
"description": "eventsourcingdb is the official client for EventSourcingDB.",
5-
"contributors": [
6-
{
7-
"name": "the native web GmbH",
8-
"email": "[email protected]"
9-
}
10-
],
4+
"description": "The official JavaScript client SDK for EventSourcingDB.",
5+
"author": {
6+
"name": "the native web GmbH",
7+
"email": "[email protected]"
8+
},
119
"exports": {
1210
".": {
1311
"import": "./dist/index.mjs",
1412
"require": "./dist/index.js"
1513
}
1614
},
1715
"types": "./dist/index.d.ts",
18-
"dependencies": {
19-
"axios": "1.8.4",
20-
"http-status-codes": "2.3.0",
21-
"stream-to-async-iterator": "1.0.0"
22-
},
2316
"devDependencies": {
2417
"@biomejs/biome": "1.9.4",
25-
"@types/express": "5.0.1",
2618
"@types/node": "22.14.0",
27-
"@types/shelljs": "0.8.15",
28-
"express": "5.1.0",
29-
"shelljs": "0.9.2",
19+
"get-port": "7.1.0",
3020
"tsup": "8.4.0",
3121
"tsx": "4.19.3",
3222
"typescript": "5.8.3"
3323
},
3424
"scripts": {
35-
"analyze": "npx biome check .",
25+
"analyze": "npx biome check --error-on-warnings .",
3626
"build": "npx tsc --noEmit && npx tsup --clean --dts --format cjs,esm --minify --out-dir=./dist/ ./src/index.ts",
3727
"format": "npx biome format --write .",
3828
"qa": "npm run analyze && npm run test",
3929
"test": "npm run test:unit && npm run test:integration",
40-
"test:unit": "node --test --import tsx \"./test/unit/**/*.ts\"",
41-
"test:integration": "node --test --import tsx \"./test/integration/**/*.ts\""
30+
"test:unit": "node --test --import tsx \"./src/**/*.test.ts\"",
31+
"test:integration": "node --test --import tsx \"./test/**/*.test.ts\""
4232
},
4333
"repository": {
4434
"type": "git",
4535
"url": "git://github.com/thenativeweb/eventsourcingdb-client-javascript.git"
4636
},
47-
"license": "MIT"
37+
"license": "MIT",
38+
"keywords": [
39+
"eventsourcingdb",
40+
"esdb",
41+
"event",
42+
"events",
43+
"event sourcing",
44+
"event store",
45+
"cqrs"
46+
]
4847
}

src/Bound.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
type BoundType = 'inclusive' | 'exclusive';
2+
3+
interface Bound {
4+
id: string;
5+
type: BoundType;
6+
}
7+
8+
export type { BoundType, Bound };

0 commit comments

Comments
 (0)