Skip to content

Commit

Permalink
Bump version v2.0.0-alpha.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mildronize committed Jan 5, 2024
1 parent a5285d0 commit 295f817
Show file tree
Hide file tree
Showing 13 changed files with 103 additions and 43 deletions.
6 changes: 3 additions & 3 deletions examples/azure-functions-minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"author": "Thada Wangthammang",
"license": "MIT",
"dependencies": {
"@nammatham/core": "2.0.0-alpha.7",
"@nammatham/express": "2.0.0-alpha.7",
"@nammatham/azure-functions": "2.0.0-alpha.7",
"@nammatham/core": "2.0.0-alpha.8",
"@nammatham/express": "2.0.0-alpha.8",
"@nammatham/azure-functions": "2.0.0-alpha.8",
"@azure/functions": "^4.1.0"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions examples/azure-functions-timer-trigger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"author": "Thada Wangthammang",
"license": "MIT",
"dependencies": {
"@nammatham/core": "2.0.0-alpha.7",
"@nammatham/express": "2.0.0-alpha.7",
"@nammatham/azure-functions": "2.0.0-alpha.7",
"@nammatham/core": "2.0.0-alpha.8",
"@nammatham/express": "2.0.0-alpha.8",
"@nammatham/azure-functions": "2.0.0-alpha.8",
"@azure/functions": "^4.1.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions examples/azure-functions-with-trpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"license": "MIT",
"dependencies": {
"@azure/functions": "^4.1.0",
"@nammatham/azure-functions": "2.0.0-alpha.7",
"@nammatham/core": "2.0.0-alpha.7",
"@nammatham/express": "2.0.0-alpha.7",
"@nammatham/trpc-azure-functions": "2.0.0-alpha.7",
"@nammatham/azure-functions": "2.0.0-alpha.8",
"@nammatham/core": "2.0.0-alpha.8",
"@nammatham/express": "2.0.0-alpha.8",
"@nammatham/trpc-azure-functions": "2.0.0-alpha.8",
"@trpc/client": "^10.45.0",
"@trpc/server": "^10.45.0",
"trpc-azure-functions-adapter": "0.0.5"
Expand Down
6 changes: 3 additions & 3 deletions examples/azure-functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"author": "Thada Wangthammang",
"license": "MIT",
"dependencies": {
"@nammatham/core": "2.0.0-alpha.7",
"@nammatham/express": "2.0.0-alpha.7",
"@nammatham/azure-functions": "2.0.0-alpha.7",
"@nammatham/core": "2.0.0-alpha.8",
"@nammatham/express": "2.0.0-alpha.8",
"@nammatham/azure-functions": "2.0.0-alpha.8",
"@azure/functions": "^4.1.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nammatham/monorepo",
"version": "2.0.0-alpha.7",
"version": "2.0.0-alpha.8",
"description": "Azure Function Nodejs Lightweight framework with Dependency Injection",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
25 changes: 20 additions & 5 deletions packages/azure-functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Type-safe Serverless Library for Azure Functions and friends
| Version | Status | Azure Functions Node.js | Branch | Build Status |
| ------- | ----------- | ----------------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| v1.x | Maintenance | v3.x | [v1.x][v1.x] | [![Build & Test](https://github.com/thaitype/nammatham/actions/workflows/test.yml/badge.svg)](https://github.com/thaitype/nammatham/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/mildronize/nammatham/branch/main/graph/badge.svg?token=Y7ZMDKFPAN)](https://codecov.io/gh/mildronize/nammatham) |
| v2.x | Alpha | v4.x | [main][main] | [Tracking v2 Roadmap](https://github.com/thaitype/nammatham/issues?q=is%3Aissue+is%3Aopen+label%3Afunc-v4) |
| v2.x | Alpha | v4.x | [main][main] | [Tracking v2 Roadmap](https://github.com/thaitype/nammatham/issues?q=is%3Aissue+is%3Aopen+label%3Av2-blocker) |

[v1.x]: https://github.com/thaitype/nammatham/tree/v1.x
[main]: https://github.com/thaitype/nammatham/tree/main
Expand All @@ -44,10 +44,10 @@ const helloFunction = func
.httpGet('hello', {
route: 'hello-world',
})
.handler(async (request, ctx) => {
ctx.context.log('HTTP trigger function processed a request.');
ctx.context.debug(`Http function processed request for url "${request.url}"`);
const name = request.query.get('name') || (await request.text()) || 'world';
.handler(async ({trigger, context}) => {
context.log('HTTP trigger function processed a request.');
context.debug(`Http function processed request for url "${trigger.url}"`);
const name = trigger.query.get('name') || (await trigger.text()) || 'world';
return { body: `Hello, ${name}!` };
});

Expand Down Expand Up @@ -108,6 +108,21 @@ Empowering TypeScript on Azure Functions with Nammatham, Azure Open Source Day @

<!-- ## What's different with Azure Functions v4 (Official Library) -->

## Local Dev Setup

```bash
# Install dependencies
pnpm install
# Before dev (Update workspace to local dependencies)
pnpm pre-local && pnpm install
# While dev
pnpm dev
# After dev before submitting PRs (Update workspace to actual dependencies), `pnpm install` for making sure lockfile is correct.
pnpm post-local && pnpm install
# Release package
pnpm release
```

## Inspiration
- [Azure Functions .NET](https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-csharp?tabs=azure-cli%2Cin-process)
- [inversify-express-utils](https://github.com/inversify/inversify-express-utils) - We use inversify as a Dependency Injection Tool.
Expand Down
4 changes: 2 additions & 2 deletions packages/azure-functions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nammatham/azure-functions",
"version": "2.0.0-alpha.7",
"version": "2.0.0-alpha.8",
"description": "Type-safe Serverless Library for Azure Functions and friends",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand All @@ -18,7 +18,7 @@
"author": "Thada Wangthammang",
"license": "MIT",
"dependencies": {
"@nammatham/core": "2.0.0-alpha.7",
"@nammatham/core": "2.0.0-alpha.8",
"@azure/functions": "^4.1.0",
"colorette": "^2.0.20",
"express": "^4.18.2",
Expand Down
25 changes: 20 additions & 5 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Type-safe Serverless Library for Azure Functions and friends
| Version | Status | Azure Functions Node.js | Branch | Build Status |
| ------- | ----------- | ----------------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| v1.x | Maintenance | v3.x | [v1.x][v1.x] | [![Build & Test](https://github.com/thaitype/nammatham/actions/workflows/test.yml/badge.svg)](https://github.com/thaitype/nammatham/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/mildronize/nammatham/branch/main/graph/badge.svg?token=Y7ZMDKFPAN)](https://codecov.io/gh/mildronize/nammatham) |
| v2.x | Alpha | v4.x | [main][main] | [Tracking v2 Roadmap](https://github.com/thaitype/nammatham/issues?q=is%3Aissue+is%3Aopen+label%3Afunc-v4) |
| v2.x | Alpha | v4.x | [main][main] | [Tracking v2 Roadmap](https://github.com/thaitype/nammatham/issues?q=is%3Aissue+is%3Aopen+label%3Av2-blocker) |

[v1.x]: https://github.com/thaitype/nammatham/tree/v1.x
[main]: https://github.com/thaitype/nammatham/tree/main
Expand All @@ -44,10 +44,10 @@ const helloFunction = func
.httpGet('hello', {
route: 'hello-world',
})
.handler(async (request, ctx) => {
ctx.context.log('HTTP trigger function processed a request.');
ctx.context.debug(`Http function processed request for url "${request.url}"`);
const name = request.query.get('name') || (await request.text()) || 'world';
.handler(async ({trigger, context}) => {
context.log('HTTP trigger function processed a request.');
context.debug(`Http function processed request for url "${trigger.url}"`);
const name = trigger.query.get('name') || (await trigger.text()) || 'world';
return { body: `Hello, ${name}!` };
});

Expand Down Expand Up @@ -108,6 +108,21 @@ Empowering TypeScript on Azure Functions with Nammatham, Azure Open Source Day @

<!-- ## What's different with Azure Functions v4 (Official Library) -->

## Local Dev Setup

```bash
# Install dependencies
pnpm install
# Before dev (Update workspace to local dependencies)
pnpm pre-local && pnpm install
# While dev
pnpm dev
# After dev before submitting PRs (Update workspace to actual dependencies), `pnpm install` for making sure lockfile is correct.
pnpm post-local && pnpm install
# Release package
pnpm release
```

## Inspiration
- [Azure Functions .NET](https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-csharp?tabs=azure-cli%2Cin-process)
- [inversify-express-utils](https://github.com/inversify/inversify-express-utils) - We use inversify as a Dependency Injection Tool.
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nammatham/core",
"version": "2.0.0-alpha.7",
"version": "2.0.0-alpha.8",
"description": "Type-safe Serverless Library for Azure Functions and friends",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand Down
25 changes: 20 additions & 5 deletions packages/express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Type-safe Serverless Library for Azure Functions and friends
| Version | Status | Azure Functions Node.js | Branch | Build Status |
| ------- | ----------- | ----------------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| v1.x | Maintenance | v3.x | [v1.x][v1.x] | [![Build & Test](https://github.com/thaitype/nammatham/actions/workflows/test.yml/badge.svg)](https://github.com/thaitype/nammatham/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/mildronize/nammatham/branch/main/graph/badge.svg?token=Y7ZMDKFPAN)](https://codecov.io/gh/mildronize/nammatham) |
| v2.x | Alpha | v4.x | [main][main] | [Tracking v2 Roadmap](https://github.com/thaitype/nammatham/issues?q=is%3Aissue+is%3Aopen+label%3Afunc-v4) |
| v2.x | Alpha | v4.x | [main][main] | [Tracking v2 Roadmap](https://github.com/thaitype/nammatham/issues?q=is%3Aissue+is%3Aopen+label%3Av2-blocker) |

[v1.x]: https://github.com/thaitype/nammatham/tree/v1.x
[main]: https://github.com/thaitype/nammatham/tree/main
Expand All @@ -44,10 +44,10 @@ const helloFunction = func
.httpGet('hello', {
route: 'hello-world',
})
.handler(async (request, ctx) => {
ctx.context.log('HTTP trigger function processed a request.');
ctx.context.debug(`Http function processed request for url "${request.url}"`);
const name = request.query.get('name') || (await request.text()) || 'world';
.handler(async ({trigger, context}) => {
context.log('HTTP trigger function processed a request.');
context.debug(`Http function processed request for url "${trigger.url}"`);
const name = trigger.query.get('name') || (await trigger.text()) || 'world';
return { body: `Hello, ${name}!` };
});

Expand Down Expand Up @@ -108,6 +108,21 @@ Empowering TypeScript on Azure Functions with Nammatham, Azure Open Source Day @

<!-- ## What's different with Azure Functions v4 (Official Library) -->

## Local Dev Setup

```bash
# Install dependencies
pnpm install
# Before dev (Update workspace to local dependencies)
pnpm pre-local && pnpm install
# While dev
pnpm dev
# After dev before submitting PRs (Update workspace to actual dependencies), `pnpm install` for making sure lockfile is correct.
pnpm post-local && pnpm install
# Release package
pnpm release
```

## Inspiration
- [Azure Functions .NET](https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-csharp?tabs=azure-cli%2Cin-process)
- [inversify-express-utils](https://github.com/inversify/inversify-express-utils) - We use inversify as a Dependency Injection Tool.
Expand Down
4 changes: 2 additions & 2 deletions packages/express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nammatham/express",
"version": "2.0.0-alpha.7",
"version": "2.0.0-alpha.8",
"description": "Type-safe Serverless Library for Azure Functions and friends",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand All @@ -18,7 +18,7 @@
"author": "Thada Wangthammang",
"license": "MIT",
"dependencies": {
"@nammatham/core": "2.0.0-alpha.7",
"@nammatham/core": "2.0.0-alpha.8",
"express": "^4.18.2",
"@types/express": "^4.17.21"
},
Expand Down
25 changes: 20 additions & 5 deletions packages/trpc-azure-functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Type-safe Serverless Library for Azure Functions and friends
| Version | Status | Azure Functions Node.js | Branch | Build Status |
| ------- | ----------- | ----------------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| v1.x | Maintenance | v3.x | [v1.x][v1.x] | [![Build & Test](https://github.com/thaitype/nammatham/actions/workflows/test.yml/badge.svg)](https://github.com/thaitype/nammatham/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/mildronize/nammatham/branch/main/graph/badge.svg?token=Y7ZMDKFPAN)](https://codecov.io/gh/mildronize/nammatham) |
| v2.x | Alpha | v4.x | [main][main] | [Tracking v2 Roadmap](https://github.com/thaitype/nammatham/issues?q=is%3Aissue+is%3Aopen+label%3Afunc-v4) |
| v2.x | Alpha | v4.x | [main][main] | [Tracking v2 Roadmap](https://github.com/thaitype/nammatham/issues?q=is%3Aissue+is%3Aopen+label%3Av2-blocker) |

[v1.x]: https://github.com/thaitype/nammatham/tree/v1.x
[main]: https://github.com/thaitype/nammatham/tree/main
Expand All @@ -44,10 +44,10 @@ const helloFunction = func
.httpGet('hello', {
route: 'hello-world',
})
.handler(async (request, ctx) => {
ctx.context.log('HTTP trigger function processed a request.');
ctx.context.debug(`Http function processed request for url "${request.url}"`);
const name = request.query.get('name') || (await request.text()) || 'world';
.handler(async ({trigger, context}) => {
context.log('HTTP trigger function processed a request.');
context.debug(`Http function processed request for url "${trigger.url}"`);
const name = trigger.query.get('name') || (await trigger.text()) || 'world';
return { body: `Hello, ${name}!` };
});

Expand Down Expand Up @@ -108,6 +108,21 @@ Empowering TypeScript on Azure Functions with Nammatham, Azure Open Source Day @

<!-- ## What's different with Azure Functions v4 (Official Library) -->

## Local Dev Setup

```bash
# Install dependencies
pnpm install
# Before dev (Update workspace to local dependencies)
pnpm pre-local && pnpm install
# While dev
pnpm dev
# After dev before submitting PRs (Update workspace to actual dependencies), `pnpm install` for making sure lockfile is correct.
pnpm post-local && pnpm install
# Release package
pnpm release
```

## Inspiration
- [Azure Functions .NET](https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-csharp?tabs=azure-cli%2Cin-process)
- [inversify-express-utils](https://github.com/inversify/inversify-express-utils) - We use inversify as a Dependency Injection Tool.
Expand Down
8 changes: 4 additions & 4 deletions packages/trpc-azure-functions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nammatham/trpc-azure-functions",
"version": "2.0.0-alpha.7",
"version": "2.0.0-alpha.8",
"description": "Type-safe Serverless Library for Azure Functions and friends",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand All @@ -19,9 +19,9 @@
"license": "MIT",
"dependencies": {
"@azure/functions": "^4.1.0",
"@nammatham/core": "2.0.0-alpha.7",
"@nammatham/azure-functions": "2.0.0-alpha.7",
"@nammatham/express": "2.0.0-alpha.7",
"@nammatham/core": "2.0.0-alpha.8",
"@nammatham/azure-functions": "2.0.0-alpha.8",
"@nammatham/express": "2.0.0-alpha.8",
"@trpc/server": "^10.45.0",
"express": "^4.18.2",
"trpc-azure-functions-adapter": "0.0.5",
Expand Down

0 comments on commit 295f817

Please sign in to comment.