Skip to content

Commit 88d8724

Browse files
arturwojnaroskardudycz
authored andcommitted
Merge remote-tracking branch 'upstream/main' into feat/subscriptions
2 parents 13afb1e + 50572c7 commit 88d8724

File tree

108 files changed

+4762
-2558
lines changed

Some content is hidden

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

108 files changed

+4762
-2558
lines changed

.github/workflows/build_and_test.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,10 @@ jobs:
5858
- name: Test Vitest
5959
run: npm run test:vitest
6060

61-
# - name: Pack Emmett Shims locally to tar file
62-
# shell: bash
63-
# run: echo "PACKAGE_FILENAME_SHIMS=$(npm pack --json --pack-destination './e2e/esmCompatibility' -w @event-driven-io/emmett-shims | jq -r '.[] | .filename')" >> $GITHUB_ENV
64-
6561
- name: Pack Emmett locally to tar file
6662
shell: bash
6763
run: echo "PACKAGE_FILENAME=$(npm pack --json --pack-destination './e2e/esmCompatibility' -w @event-driven-io/emmett | jq -r '.[] | .filename')" >> $GITHUB_ENV
6864

69-
# - name: Use Emmett shims in the compatibility test project
70-
# working-directory: ./src/e2e/esmCompatibility
71-
# run: npm install ${{ env.PACKAGE_FILENAME_SHIMS }}
72-
7365
- name: Use Emmett in the compatibility test project
7466
working-directory: ./src/e2e/esmCompatibility
7567
run: npm install ${{ env.PACKAGE_FILENAME }}
@@ -88,10 +80,6 @@ jobs:
8880
echo "No errors found, proceeding..."
8981
fi
9082
91-
# - name: Use Emmett shims in the browser compatibility test project
92-
# working-directory: ./src/e2e/browser
93-
# run: npm install ../esmCompatibility/${{ env.PACKAGE_FILENAME_SHIMS }}
94-
9583
- name: Use Emmett in the browser compatibility test project
9684
working-directory: ./src/e2e/browser
9785
run: npm install ../esmCompatibility/${{ env.PACKAGE_FILENAME }}

samples/webApi/expressjs-with-mongodb/src/shoppingCarts/api.e2e.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void describe('ShoppingCart E2E', () => {
3232
let given: ApiE2ESpecification;
3333

3434
before(async () => {
35-
mongodb = await new MongoDBContainer().start();
35+
mongodb = await new MongoDBContainer('mongo:6.0.1').start();
3636
const connectionString = mongodb.getConnectionString();
3737

3838
readStore = new MongoClient(connectionString, {

samples/webApi/expressjs-with-mongodb/src/shoppingCarts/getDetails/index.int.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void describe('Shopping Cart Short Details Projection', () => {
2020
const now = new Date();
2121

2222
before(async () => {
23-
mongodb = await new MongoDBContainer().start();
23+
mongodb = await new MongoDBContainer('mongo:6.0.1').start();
2424
connectionString = mongodb.getConnectionString();
2525

2626
given = MongoDBInlineProjectionSpec.for({

samples/webApi/expressjs-with-mongodb/src/shoppingCarts/getShortInfo/index.int.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void describe('Shopping Cart Short Info Projection', () => {
2323
const now = new Date();
2424

2525
before(async () => {
26-
mongodb = await new MongoDBContainer().start();
26+
mongodb = await new MongoDBContainer('mongo:6.0.1').start();
2727
connectionString = mongodb.getConnectionString();
2828

2929
given = MongoDBInlineProjectionSpec.for({

src/docs/getting-started.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ Emmett provides the _getApplication_ method that sets up the recommended configu
230230

231231
1. **JSON and Url Encoding middlewares** set up needed for WebApi request processing,
232232
2. **Problem details middleware.** Why reinvent the wheel if there's now an industry standard for handling error responses? See [RFC 9457 - Problem Details for HTTP APIs](https://www.rfc-editor.org/rfc/rfc9457.html)) - we're implementing it for you out of the box. We've also set up a basic error-to-status mapping convention. For instance, for Emmett built-in error types:
233-
234233
- `ValidationError` to `400`,
235234
- `IllegalStateError` to `403`,
236235
- `NotFoundError` to `404`,

src/docs/snippets/quickStart/package-lock.json

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

src/docs/snippets/quickStart/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"typescript": "^5.8.2"
1515
},
1616
"dependencies": {
17-
"@event-driven-io/emmett": "^0.34.0"
17+
"@event-driven-io/emmett": "^0.39.1"
1818
}
1919
}

src/e2e/browser/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
{
99
"imports": {
1010
"uuid": "https://cdn.jsdelivr.net/npm/uuid@10.0.0/+esm",
11-
"web-streams-polyfill": "https://unpkg.com/web-streams-polyfill/dist/ponyfill.mjs",
1211
"async-retry": "https://esm.sh/async-retry",
1312
"@event-driven-io/emmett": "./node_modules/@event-driven-io/emmett/dist/index.js"
1413
}

src/e2e/bun/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"typescript": "^5.0.0"
1010
},
1111
"dependencies": {
12-
"@event-driven-io/emmett": "^0.21.0"
12+
"@event-driven-io/emmett": "^0.21.0",
13+
"web-streams-polyfill": "^4.0.0"
1314
}
1415
}

0 commit comments

Comments
 (0)