Skip to content

Commit

Permalink
Bump version v2.0.0-alpha.13
Browse files Browse the repository at this point in the history
  • Loading branch information
mildronize committed Apr 11, 2024
1 parent dd3c50b commit f2cedd1
Show file tree
Hide file tree
Showing 18 changed files with 91 additions and 96 deletions.
2 changes: 1 addition & 1 deletion examples/azure-functions-minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"author": "Thada Wangthammang",
"license": "MIT",
"dependencies": {
"nammatham": "2.0.0-alpha.12",
"nammatham": "2.0.0-alpha.13",
"@azure/functions": "^4.1.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/azure-functions-timer-trigger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"author": "Thada Wangthammang",
"license": "MIT",
"dependencies": {
"nammatham": "2.0.0-alpha.12",
"nammatham": "2.0.0-alpha.13",
"@azure/functions": "^4.1.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/azure-functions-with-inversify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@azure/functions": "^4.1.0",
"@di-extra/inversify": "^0.2.0",
"nammatham": "2.0.0-alpha.12",
"nammatham": "2.0.0-alpha.13",
"inversify": "^6.0.2",
"reflect-metadata": "^0.2.1"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/azure-functions-with-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "MIT",
"dependencies": {
"@azure/functions": "^4.1.0",
"nammatham": "2.0.0-alpha.12"
"nammatham": "2.0.0-alpha.13"
},
"devDependencies": {
"cross-env": "^7.0.3",
Expand Down
4 changes: 2 additions & 2 deletions examples/azure-functions-with-trpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"license": "MIT",
"dependencies": {
"@azure/functions": "^4.1.0",
"nammatham": "2.0.0-alpha.12",
"@nammatham/trpc-azure-functions": "2.0.0-alpha.12",
"nammatham": "2.0.0-alpha.13",
"@nammatham/trpc-azure-functions": "2.0.0-alpha.13",
"@trpc/client": "^10.45.0",
"@trpc/server": "^10.45.0",
"trpc-azure-functions-adapter": "0.0.5"
Expand Down
2 changes: 1 addition & 1 deletion examples/azure-functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"author": "Thada Wangthammang",
"license": "MIT",
"dependencies": {
"nammatham": "2.0.0-alpha.12",
"nammatham": "2.0.0-alpha.13",
"@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.12",
"version": "2.0.0-alpha.13",
"description": "Azure Function Nodejs Lightweight framework with Dependency Injection",
"scripts": {
"test": "vitest",
Expand Down
23 changes: 11 additions & 12 deletions packages/azure-functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Type-safe Serverless Library for Azure Functions and friends
>
> Note: [Nammatham v1](https://www.npmjs.com/package/nammatham) is currently in maintenance mode. no new features are actively being developed
You're reading v2 docs


| Version | Status | Azure Functions <br>Node.js Lib | Branch | Build Status |
| ------- | ----------- | ----------------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -37,31 +39,28 @@ Nammatham (นามธรรม in Thai, pronounced `/naam ma tham/`, means **a
npm install nammatham@alpha
```

You can also install independently
```bash
npm install @nammatham/core @nammatham/azure-functions @nammatham/express
```

### Example

You can see [examples](examples) or follow the minimal app getting started below:

> `initNammatham.create()` is a factory function for creating Nammatham App, it's a wrapper for Azure Functions App.
```typescript
import { initNammatham, AzureFunctionsAdapter, expressPlugin } from "nammatham";
import { initNammatham, expressPlugin } from 'nammatham';

const n = initNammatham.create(new AzureFunctionsAdapter());
const n = initNammatham.create();
const func = n.func;
const app = n.app;

const helloFunction = func
.httpGet('hello', {
route: 'hello-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}!` };
.handler(async c => {
c.context.log('HTTP trigger function processed a request.');
c.context.debug(`Http function processed request for url "${c.trigger.url}"`);
const name = c.trigger.query.get('name') || (await c.trigger.text()) || 'world';
return c.text(`Hello, ${name}!`);
});

app.addFunctions(helloFunction);
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.12",
"version": "2.0.0-alpha.13",
"description": "Type-safe Serverless Library for Azure Functions and friends",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand All @@ -21,7 +21,7 @@
"license": "MIT",
"dependencies": {
"@azure/functions": "^4.1.0",
"@nammatham/core": "2.0.0-alpha.12",
"@nammatham/core": "2.0.0-alpha.13",
"colorette": "^2.0.20",
"express": "^4.18.2",
"undici": "5.20.0",
Expand Down
23 changes: 11 additions & 12 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Type-safe Serverless Library for Azure Functions and friends
>
> Note: [Nammatham v1](https://www.npmjs.com/package/nammatham) is currently in maintenance mode. no new features are actively being developed
You're reading v2 docs


| Version | Status | Azure Functions <br>Node.js Lib | Branch | Build Status |
| ------- | ----------- | ----------------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -37,31 +39,28 @@ Nammatham (นามธรรม in Thai, pronounced `/naam ma tham/`, means **a
npm install nammatham@alpha
```

You can also install independently
```bash
npm install @nammatham/core @nammatham/azure-functions @nammatham/express
```

### Example

You can see [examples](examples) or follow the minimal app getting started below:

> `initNammatham.create()` is a factory function for creating Nammatham App, it's a wrapper for Azure Functions App.
```typescript
import { initNammatham, AzureFunctionsAdapter, expressPlugin } from "nammatham";
import { initNammatham, expressPlugin } from 'nammatham';

const n = initNammatham.create(new AzureFunctionsAdapter());
const n = initNammatham.create();
const func = n.func;
const app = n.app;

const helloFunction = func
.httpGet('hello', {
route: 'hello-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}!` };
.handler(async c => {
c.context.log('HTTP trigger function processed a request.');
c.context.debug(`Http function processed request for url "${c.trigger.url}"`);
const name = c.trigger.query.get('name') || (await c.trigger.text()) || 'world';
return c.text(`Hello, ${name}!`);
});

app.addFunctions(helloFunction);
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.12",
"version": "2.0.0-alpha.13",
"description": "Type-safe Serverless Library for Azure Functions and friends",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand Down
23 changes: 11 additions & 12 deletions packages/express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Type-safe Serverless Library for Azure Functions and friends
>
> Note: [Nammatham v1](https://www.npmjs.com/package/nammatham) is currently in maintenance mode. no new features are actively being developed
You're reading v2 docs


| Version | Status | Azure Functions <br>Node.js Lib | Branch | Build Status |
| ------- | ----------- | ----------------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -37,31 +39,28 @@ Nammatham (นามธรรม in Thai, pronounced `/naam ma tham/`, means **a
npm install nammatham@alpha
```

You can also install independently
```bash
npm install @nammatham/core @nammatham/azure-functions @nammatham/express
```

### Example

You can see [examples](examples) or follow the minimal app getting started below:

> `initNammatham.create()` is a factory function for creating Nammatham App, it's a wrapper for Azure Functions App.
```typescript
import { initNammatham, AzureFunctionsAdapter, expressPlugin } from "nammatham";
import { initNammatham, expressPlugin } from 'nammatham';

const n = initNammatham.create(new AzureFunctionsAdapter());
const n = initNammatham.create();
const func = n.func;
const app = n.app;

const helloFunction = func
.httpGet('hello', {
route: 'hello-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}!` };
.handler(async c => {
c.context.log('HTTP trigger function processed a request.');
c.context.debug(`Http function processed request for url "${c.trigger.url}"`);
const name = c.trigger.query.get('name') || (await c.trigger.text()) || 'world';
return c.text(`Hello, ${name}!`);
});

app.addFunctions(helloFunction);
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.12",
"version": "2.0.0-alpha.13",
"description": "Type-safe Serverless Library for Azure Functions and friends",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand All @@ -20,7 +20,7 @@
"author": "Thada Wangthammang",
"license": "MIT",
"dependencies": {
"@nammatham/core": "2.0.0-alpha.12",
"@nammatham/core": "2.0.0-alpha.13",
"@types/express": "^4.17.21",
"colorette": "^2.0.20",
"express": "^4.18.2"
Expand Down
23 changes: 11 additions & 12 deletions packages/main/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Type-safe Serverless Library for Azure Functions and friends
>
> Note: [Nammatham v1](https://www.npmjs.com/package/nammatham) is currently in maintenance mode. no new features are actively being developed
You're reading v2 docs


| Version | Status | Azure Functions <br>Node.js Lib | Branch | Build Status |
| ------- | ----------- | ----------------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -37,31 +39,28 @@ Nammatham (นามธรรม in Thai, pronounced `/naam ma tham/`, means **a
npm install nammatham@alpha
```

You can also install independently
```bash
npm install @nammatham/core @nammatham/azure-functions @nammatham/express
```

### Example

You can see [examples](examples) or follow the minimal app getting started below:

> `initNammatham.create()` is a factory function for creating Nammatham App, it's a wrapper for Azure Functions App.
```typescript
import { initNammatham, AzureFunctionsAdapter, expressPlugin } from "nammatham";
import { initNammatham, expressPlugin } from 'nammatham';

const n = initNammatham.create(new AzureFunctionsAdapter());
const n = initNammatham.create();
const func = n.func;
const app = n.app;

const helloFunction = func
.httpGet('hello', {
route: 'hello-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}!` };
.handler(async c => {
c.context.log('HTTP trigger function processed a request.');
c.context.debug(`Http function processed request for url "${c.trigger.url}"`);
const name = c.trigger.query.get('name') || (await c.trigger.text()) || 'world';
return c.text(`Hello, ${name}!`);
});

app.addFunctions(helloFunction);
Expand Down
8 changes: 4 additions & 4 deletions packages/main/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nammatham",
"version": "2.0.0-alpha.12",
"version": "2.0.0-alpha.13",
"description": "Type-safe Serverless Library for Azure Functions and friends",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand Down Expand Up @@ -47,9 +47,9 @@
"author": "Thada Wangthammang",
"license": "MIT",
"dependencies": {
"@nammatham/core": "2.0.0-alpha.12",
"@nammatham/azure-functions": "2.0.0-alpha.12",
"@nammatham/express": "2.0.0-alpha.12"
"@nammatham/core": "2.0.0-alpha.13",
"@nammatham/azure-functions": "2.0.0-alpha.13",
"@nammatham/express": "2.0.0-alpha.13"
},
"repository": {
"type": "git",
Expand Down
23 changes: 11 additions & 12 deletions packages/trpc-azure-functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Type-safe Serverless Library for Azure Functions and friends
>
> Note: [Nammatham v1](https://www.npmjs.com/package/nammatham) is currently in maintenance mode. no new features are actively being developed
You're reading v2 docs


| Version | Status | Azure Functions <br>Node.js Lib | Branch | Build Status |
| ------- | ----------- | ----------------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -37,31 +39,28 @@ Nammatham (นามธรรม in Thai, pronounced `/naam ma tham/`, means **a
npm install nammatham@alpha
```

You can also install independently
```bash
npm install @nammatham/core @nammatham/azure-functions @nammatham/express
```

### Example

You can see [examples](examples) or follow the minimal app getting started below:

> `initNammatham.create()` is a factory function for creating Nammatham App, it's a wrapper for Azure Functions App.
```typescript
import { initNammatham, AzureFunctionsAdapter, expressPlugin } from "nammatham";
import { initNammatham, expressPlugin } from 'nammatham';

const n = initNammatham.create(new AzureFunctionsAdapter());
const n = initNammatham.create();
const func = n.func;
const app = n.app;

const helloFunction = func
.httpGet('hello', {
route: 'hello-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}!` };
.handler(async c => {
c.context.log('HTTP trigger function processed a request.');
c.context.debug(`Http function processed request for url "${c.trigger.url}"`);
const name = c.trigger.query.get('name') || (await c.trigger.text()) || 'world';
return c.text(`Hello, ${name}!`);
});

app.addFunctions(helloFunction);
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.12",
"version": "2.0.0-alpha.13",
"description": "Type-safe Serverless Library for Azure Functions and friends",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand All @@ -21,9 +21,9 @@
"license": "MIT",
"dependencies": {
"@azure/functions": "^4.1.0",
"@nammatham/core": "2.0.0-alpha.12",
"@nammatham/azure-functions": "2.0.0-alpha.12",
"@nammatham/express": "2.0.0-alpha.12",
"@nammatham/core": "2.0.0-alpha.13",
"@nammatham/azure-functions": "2.0.0-alpha.13",
"@nammatham/express": "2.0.0-alpha.13",
"@trpc/server": "^10.45.0",
"express": "^4.18.2",
"trpc-azure-functions-adapter": "0.0.5",
Expand Down
Loading

0 comments on commit f2cedd1

Please sign in to comment.