Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmd5 committed Feb 10, 2024
1 parent f5e852b commit f0b450b
Show file tree
Hide file tree
Showing 16 changed files with 1,333 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION=0.0.11-alpha
VERSION=0.0.11-alpha.2
7 changes: 4 additions & 3 deletions examples/typescript/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"browser"
],
"devDependencies": {
"@swc/core": "^1.4.0",
"@types/node": "^18.7.20",
"bebop-tools": "^3.0.3-beta.2",
"tsup": "^6.7.0",
Expand All @@ -26,8 +27,8 @@
"wait-port": "^1.0.4"
},
"dependencies": {
"@tempojs/client": "^0.0.11-alpha",
"@tempojs/node-http-router": "^0.0.11-alpha",
"bebop": "3.0.3-beta.2"
"@tempojs/client": "^0.0.11-alpha.2",
"@tempojs/node-http-router": "^0.0.11-alpha.2",
"bebop": "3.0.3-beta.3"
}
}
2 changes: 1 addition & 1 deletion examples/typescript/minimal/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
//
// bebopc version:
// 3.0.3-beta.1
// 3.0.3-beta.2
//
//
// bebopc source:
Expand Down
1,287 changes: 1,287 additions & 0 deletions examples/typescript/minimal/yarn.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tempojs",
"version": "0.0.11-alpha",
"version": "0.0.11-alpha.2",
"description": "something",
"private": true,
"workspaces": [
Expand All @@ -26,8 +26,8 @@
"vitest": "^0.30.1"
},
"dependencies": {
"@tempojs/client": "^0.0.11-alpha",
"@tempojs/common": "^0.0.11-alpha",
"@tempojs/server": "^0.0.11-alpha"
"@tempojs/client": "^0.0.11-alpha.2",
"@tempojs/common": "^0.0.11-alpha.2",
"@tempojs/server": "^0.0.11-alpha.2"
}
}
4 changes: 2 additions & 2 deletions typescript/packages/cf-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tempojs/cloudflare-worker-router",
"version": "0.0.11-alpha",
"version": "0.0.11-alpha.2",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -19,7 +19,7 @@
"author": "andrew",
"license": "",
"dependencies": {
"@tempojs/server": "^0.0.11-alpha"
"@tempojs/server": "^0.0.11-alpha.2"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20221111.1"
Expand Down
4 changes: 2 additions & 2 deletions typescript/packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tempojs/client",
"version": "0.0.11-alpha",
"version": "0.0.11-alpha.2",
"description": "xrpc client",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -16,6 +16,6 @@
"test": "vitest"
},
"dependencies": {
"@tempojs/common": "^0.0.11-alpha"
"@tempojs/common": "^0.0.11-alpha.2"
}
}
2 changes: 1 addition & 1 deletion typescript/packages/client/src/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export abstract class BaseChannel {
case 'bebop':
return method.serialize(request);
case 'json':
return TempoUtil.utf8GetBytes(method.toJSON(request));
return TempoUtil.utf8GetBytes(method.stringify(request));
default:
throw new TempoError(TempoStatusCode.UNKNOWN_CONTENT_TYPE, `invalid request content type: ${this.contentType}`);
}
Expand Down
2 changes: 1 addition & 1 deletion typescript/packages/client/src/method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface MethodInfo<TRequest extends BebopRecord, TResponse extends Bebo
* @param value - The request object to convert.
* @returns A JSON string representation of the request object.
*/
toJSON(value: TRequest): string;
stringify(value: TRequest): string;

/**
* Converts the given JSON string to a response object.
Expand Down
38 changes: 19 additions & 19 deletions typescript/packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "@tempojs/common",
"version": "0.0.11-alpha",
"description": "tempo common",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
}
},
"dependencies": {
"bebop": "^3.0.3-beta.2"
},
"scripts": {
"test": "vitest"
}
"name": "@tempojs/common",
"version": "0.0.11-alpha.2",
"description": "tempo common",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
}
},
"dependencies": {
"bebop": "^3.0.3-beta.3"
},
"scripts": {
"test": "vitest"
}
}
2 changes: 1 addition & 1 deletion typescript/packages/common/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const TempoVersion = '0.0.11-alpha';
export const TempoVersion = '0.0.11-alpha.2';
4 changes: 2 additions & 2 deletions typescript/packages/node-http/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tempojs/node-http-router",
"version": "0.0.11-alpha",
"version": "0.0.11-alpha.2",
"description": "tempo node http",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -19,6 +19,6 @@
"@types/node": "^14.14.31"
},
"dependencies": {
"@tempojs/server": "^0.0.11-alpha"
"@tempojs/server": "^0.0.11-alpha.2"
}
}
4 changes: 2 additions & 2 deletions typescript/packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tempojs/server",
"version": "0.0.11-alpha",
"version": "0.0.11-alpha.2",
"description": "tempo server",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -16,6 +16,6 @@
"test": "vitest"
},
"dependencies": {
"@tempojs/common": "^0.0.11-alpha"
"@tempojs/common": "^0.0.11-alpha.2"
}
}
2 changes: 1 addition & 1 deletion typescript/packages/server/src/method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface BebopMethod<TRequest extends BebopRecord, TResponse extends Beb
* @param value - The response data to convert to JSON.
* @returns The JSON string representation of the response data.
*/
toJSON(value: TResponse): string;
stringify(value: TResponse): string;

/**
* Converts the given JSON string to request data.
Expand Down
2 changes: 1 addition & 1 deletion typescript/packages/server/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export abstract class BaseRouter<TRequest, TEnvironment, TResponse> {
case 'bebop':
return method.serialize(response);
case 'json':
return TempoUtil.utf8GetBytes(method.toJSON(response));
return TempoUtil.utf8GetBytes(method.stringify(response));
default:
throw new TempoError(TempoStatusCode.UNKNOWN_CONTENT_TYPE, `invalid response content type: ${contentType}`);
}
Expand Down
8 changes: 4 additions & 4 deletions typescript/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,10 @@ balanced-match@^1.0.0:
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==

bebop@^3.0.3-beta.2:
version "3.0.3-beta.2"
resolved "https://registry.yarnpkg.com/bebop/-/bebop-3.0.3-beta.2.tgz#a4a5ddbc881965044fff2416180d54c9703a4f93"
integrity sha512-0iry/8PbC1t4iHcGcZKposKuXZkYxhRNmAz0yHjzkWmrZ8Ko7kDF8hUGpUuK5ulRLhbt7BV9EKKmNpYxBiSl0g==
bebop@^3.0.3-beta.3:
version "3.0.3-beta.3"
resolved "https://registry.yarnpkg.com/bebop/-/bebop-3.0.3-beta.3.tgz#29d42aba169c315840565d6504caa80690891b51"
integrity sha512-DfAU0TAk04sbSNBuat6fbMU1cI81rNiFsgVnZUS4KpbqsOqhCbYuv7KAWc5wfep4f2TWz0BIo7EgF3Q8oGWNzA==

benchmark@^2.1.4:
version "2.1.4"
Expand Down

0 comments on commit f0b450b

Please sign in to comment.