Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumped Node version in CI, Updated ESDB version #32

Merged
merged 3 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/samples_decider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
# selected operation systems to run CI
os: [ubuntu-latest] #, windows-latest, macos-latest]
# selected node version to run CI
node-version: [18.x]
node-version: [20.10.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/samples_eventsVersioning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
# selected operation systems to run CI
os: [ubuntu-latest] #, windows-latest, macos-latest]
# selected node version to run CI
node-version: [18.x]
node-version: [20.10.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/samples_foundations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
# selected operation systems to run CI
os: [ubuntu-latest]
# selected node version to run CI
node-version: [16.x, 18.x]
node-version: [20.10.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/samples_from_crud_to_event_sourcing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
# selected operation systems to run CI
os: [ubuntu-latest]
# selected node version to run CI
node-version: [16.x, 18.x]
node-version: [20.10.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/samples_hotelManagement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
# selected operation systems to run CI
os: [ubuntu-latest] #, windows-latest, macos-latest]
# selected node version to run CI
node-version: [18.x]
node-version: [20.10.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/samples_optimisticConcurrency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
# selected operation systems to run CI
os: [ubuntu-latest] #, windows-latest, macos-latest]
# selected node version to run CI
node-version: [16.x, 18.x]
node-version: [20.10.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/samples_simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
# selected operation systems to run CI
os: [ubuntu-latest]
# selected node version to run CI
node-version: [16.x, 18.x]
node-version: [20.10.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
Expand All @@ -53,7 +53,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# setup Docker buld action
- name: Set up Docker Buildx
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/samples_snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
# selected operation systems to run CI
os: [ubuntu-latest] #, windows-latest, macos-latest]
# selected node version to run CI
node-version: [16.x, 18.x]
node-version: [20.10.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/samples_unpeelingOnion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
# selected operation systems to run CI
os: [ubuntu-latest] #, windows-latest, macos-latest]
# selected node version to run CI
node-version: [16.x, 18.x]
node-version: [20.10.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/samples_webinar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
# selected operation systems to run CI
os: [ubuntu-latest] #, windows-latest, macos-latest]
# selected node version to run CI
node-version: [16.x, 18.x]
node-version: [20.10.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ jobs:
# selected operation systems to run CI
os: [ubuntu-latest] #, windows-latest, macos-latest]
# selected node version to run CI
node-version: [18.x]
node-version: [20.10.x]

steps:
- name: Check Out Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Start containers
run: docker-compose -f "docker-compose.yml" up -d

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
Expand Down
1 change: 1 addition & 0 deletions samples/closingTheBooks/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
1 change: 1 addition & 0 deletions samples/closingTheBooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "6.0.0",
"description": "Samples of Event Sourcing in JavaScript and TypeScript",
"scripts": {
"setup": "cat .nvmrc | nvm install; nvm use",
"build": "npm run build:ts",
"build:ts": "tsc",
"build:ts:watch": "tsc --watch",
Expand Down
1 change: 1 addition & 0 deletions samples/decider/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
2 changes: 1 addition & 1 deletion samples/decider/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
eventstoredb:
image: eventstore/eventstore:22.10.0-buster-slim
# use this image if you're running ARM-based proc like Apple M1
# image: eventstore/eventstore:22.10.0-alpha-arm64v8
# image: eventstore/eventstore:23.10.0-alpha-arm64v8
environment:
- EVENTSTORE_CLUSTER_SIZE=1
- EVENTSTORE_RUN_PROJECTIONS=All
Expand Down
1 change: 1 addition & 0 deletions samples/decider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "Samples of Event Sourcing in JavaScript and TypeScript",
"scripts": {
"setup": "cat .nvmrc | nvm install; nvm use",
"build": "run-s lint build:ts",
"build:ts": "tsc",
"build:ts:watch": "tsc --watch",
Expand Down
1 change: 1 addition & 0 deletions samples/eventsVersioning/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
4 changes: 2 additions & 2 deletions samples/eventsVersioning/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ services:
# EventStoreDB
#######################################################
eventstoredb:
image: eventstore/eventstore:22.10.1-buster-slim
image: eventstore/eventstore:23.10.0-bookworm-slim
# use this image if you're running ARM-based proc like Apple M1
# image: eventstore/eventstore:22.10.0-alpha-arm64v8
# image: eventstore/eventstore:23.10.0-alpha-arm64v8
environment:
- EVENTSTORE_CLUSTER_SIZE=1
- EVENTSTORE_RUN_PROJECTIONS=All
Expand Down
1 change: 1 addition & 0 deletions samples/eventsVersioning/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "Samples of Event Sourcing in JavaScript and TypeScript",
"scripts": {
"setup": "cat .nvmrc | nvm install; nvm use",
"build": "run-s lint build:ts",
"build:ts": "tsc",
"build:ts:watch": "tsc --watch",
Expand Down
1 change: 1 addition & 0 deletions samples/foundations/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
1 change: 1 addition & 0 deletions samples/foundations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Samples of Event Sourcing in JavaScript and TypeScript",
"main": "index.js",
"scripts": {
"setup": "cat .nvmrc | nvm install; nvm use",
"build:ts": "tsc",
"dev:start": "nodemon src/index.ts",
"test": "npm run test:unit",
Expand Down
1 change: 1 addition & 0 deletions samples/from_crud_to_eventsourcing/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
1 change: 1 addition & 0 deletions samples/from_crud_to_eventsourcing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "Samples of migrating from CRUD to Event Sourcing",
"scripts": {
"setup": "cat .nvmrc | nvm install; nvm use",
"build": "run-s lint build:ts",
"build:ts": "tsc",
"build:ts:watch": "tsc --watch",
Expand Down
1 change: 1 addition & 0 deletions samples/hotelManagement/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
4 changes: 2 additions & 2 deletions samples/hotelManagement/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ services:
# EventStoreDB
#######################################################
eventstoredb:
image: eventstore/eventstore:22.10.1-buster-slim
image: eventstore/eventstore:23.10.0-bookworm-slim
# use this image if you're running ARM-based proc like Apple M1
# image: eventstore/eventstore:22.10.0-alpha-arm64v8
# image: eventstore/eventstore:23.10.0-alpha-arm64v8
environment:
- EVENTSTORE_CLUSTER_SIZE=1
- EVENTSTORE_RUN_PROJECTIONS=All
Expand Down
1 change: 1 addition & 0 deletions samples/hotelManagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "Samples of Event Sourcing in JavaScript and TypeScript",
"scripts": {
"setup": "cat .nvmrc | nvm install; nvm use",
"build": "run-s lint build:ts",
"build:ts": "tsc",
"build:ts:watch": "tsc --watch",
Expand Down
1 change: 1 addition & 0 deletions samples/optimisticConcurrency/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
1 change: 1 addition & 0 deletions samples/optimisticConcurrency/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "6.0.0",
"description": "Samples of Event Sourcing in JavaScript and TypeScript",
"scripts": {
"setup": "cat .nvmrc | nvm install; nvm use",
"build": "run-s lint build:ts",
"build:ts": "tsc",
"build:ts:watch": "tsc --watch",
Expand Down
1 change: 1 addition & 0 deletions samples/simple/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
1 change: 1 addition & 0 deletions samples/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Samples of Event Sourcing in JavaScript and TypeScript",
"main": "index.js",
"scripts": {
"setup": "cat .nvmrc | nvm install; nvm use",
"build:ts": "tsc",
"dev:start": "nodemon src/index.ts",
"test": "npm run test:unit && npm run test:api",
Expand Down
1 change: 1 addition & 0 deletions samples/snapshots/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
1 change: 1 addition & 0 deletions samples/snapshots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Samples of Event Sourcing in JavaScript and TypeScript",
"main": "index.js",
"scripts": {
"setup": "cat .nvmrc | nvm install; nvm use",
"build": "npm run build:ts",
"build:ts": "tsc",
"build:ts:watch": "tsc --watch",
Expand Down
1 change: 1 addition & 0 deletions samples/unpeelingOnion/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
3 changes: 1 addition & 2 deletions samples/unpeelingOnion/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"editor.formatOnSave": true,

"editor.codeActionsOnSave": {
// For ESLint
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},

"editor.tabSize": 2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandHandler } from '#core/commands';
import { EventBus } from '#core/events';
import { ShoppingCartRepository } from 'src/onion/ecommerce/infrastructure/shoppingCarts/shoppingCartRepository';
import { ShoppingCartRepository } from '../../../infrastructure/shoppingCarts/shoppingCartRepository';
import { AddProductItemToShoppingCart } from '../commands/shoppingCarts/addProductItemToShoppingCart';
import { ShoppingCartMapper } from '../mappers/shoppingCartMapper';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandHandler } from '#core/commands';
import { EventBus } from '#core/events';
import { ShoppingCartRepository } from 'src/onion/ecommerce/infrastructure/shoppingCarts/shoppingCartRepository';
import { ShoppingCartRepository } from '../../../infrastructure/shoppingCarts/shoppingCartRepository';
import { ConfirmShoppingCart } from '../commands/shoppingCarts/confirmShoppingCart';
import { ShoppingCartMapper } from '../mappers/shoppingCartMapper';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CommandHandler } from '#core/commands';
import { OpenShoppingCart } from '../commands/shoppingCarts/openShoppingCart';
import { ShoppingCart } from 'src/onion/ecommerce/domain/shoppingCarts';
import { ShoppingCartRepository } from 'src/onion/ecommerce/infrastructure/shoppingCarts/shoppingCartRepository';
import { ShoppingCart } from '../../../domain/shoppingCarts';
import { ShoppingCartRepository } from '../../../infrastructure/shoppingCarts/shoppingCartRepository';
import { ShoppingCartMapper } from '../mappers/shoppingCartMapper';
import { EventBus } from '#core/events';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandHandler } from '#core/commands';
import { EventBus } from '#core/events';
import { ShoppingCartRepository } from 'src/onion/ecommerce/infrastructure/shoppingCarts/shoppingCartRepository';
import { ShoppingCartRepository } from '../../../infrastructure/shoppingCarts/shoppingCartRepository';
import { RemoveProductItemFromShoppingCart } from '../commands/shoppingCarts/removeProductItemFromShoppingCart';
import { ShoppingCartMapper } from '../mappers/shoppingCartMapper';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '#core/commands';
import { ProductItem } from 'src/onion/ecommerce/common/shoppingCarts/productItem';
import { ProductItem } from '../../../../common/shoppingCarts/productItem';

export class AddProductItemToShoppingCart extends Command {
constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '#core/commands';
import { ProductItem } from 'src/onion/ecommerce/common/shoppingCarts/productItem';
import { ProductItem } from '../../../../common/shoppingCarts/productItem';

export class RemoveProductItemFromShoppingCart extends Command {
constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { MongoClient } from 'mongodb';
import { registerCommandHandler } from '#core/commands';
import { registerQueryHandler } from '#core/queries';
import { OpenShoppingCart } from 'src/onion/ecommerce/application/shoppingCarts/commands/shoppingCarts/openShoppingCart';
import { GetShoppingCartById } from 'src/onion/ecommerce/application/shoppingCarts/queries/getShoppingCartById';
import { AddProductItemToShoppingCart } from 'src/onion/ecommerce/application/shoppingCarts/commands/shoppingCarts/addProductItemToShoppingCart';
import { OpenShoppingCart } from '../shoppingCarts/commands/shoppingCarts/openShoppingCart';
import { GetShoppingCartById } from '../shoppingCarts/queries/getShoppingCartById';
import { AddProductItemToShoppingCart } from '../shoppingCarts/commands/shoppingCarts/addProductItemToShoppingCart';
import { RemoveProductItemFromShoppingCart } from './commands/shoppingCarts/removeProductItemFromShoppingCart';
import { ShoppingCartMapper } from './mappers/shoppingCartMapper';
import { OpenShoppingCartHandler } from './commandHandlers/openShoppingCartHandler';
import { AddProductItemToShoppingCartHandler } from './commandHandlers/addProductToShoppingCartHandler';
import { RemoveProductItemFromShoppingCartHandler } from './commandHandlers/removeProductFromShoppingCartHandler';
import { GetShoppingCartByIdHandler } from './queryHandlers/getShoppingCartByIdQueryHandler';
import { MongoDBShoppingCartRepository } from 'src/onion/ecommerce/infrastructure/shoppingCarts/shoppingCartRepository';
import { MongoDBShoppingCartRepository } from '../../infrastructure/shoppingCarts/shoppingCartRepository';
import { ConfirmShoppingCart } from './commands/shoppingCarts/confirmShoppingCart';
import { ConfirmShoppingCartHandler } from './commandHandlers/confirmShoppingCart';
import { GetCustomerShoppingHistory } from './queries/getCustomerShoppingHistory';
Expand Down
Loading
Loading