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

Improve json typing #67

Merged
merged 3 commits into from
Jan 27, 2025
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: 6 additions & 0 deletions cf-eventhub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# cf-eventhub

## 0.0.18

### Patch Changes

- 1894474: Improve JSON typing

## 0.0.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion cf-eventhub/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cf-eventhub",
"type": "module",
"version": "0.0.17",
"version": "0.0.18",
"keywords": [
"cloudflare"
],
Expand Down
4 changes: 2 additions & 2 deletions cf-eventhub/src/core/type.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export { Config } from "./hub/routing";
export type { QueueMessage } from "./hub/queue";

type JSONPrimitive = string | boolean | number | null;
type JSONArray = NoInfer<JSONPrimitive | JSONObject | JSONArray>[];
type JSONPrimitive = string | boolean | number | null | undefined;
type JSONArray = readonly NoInfer<JSONPrimitive | JSONObject | JSONArray>[];
export type JSONObject = {
[key: string]: NoInfer<JSONPrimitive | JSONArray | JSONObject>;
};
Expand Down
7 changes: 7 additions & 0 deletions iac/pulumi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @cf-eventhub/pulumi

## 0.0.16

### Patch Changes

- Updated dependencies [1894474]
- [email protected]

## 0.0.15

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions iac/pulumi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@cf-eventhub/pulumi",
"main": "src/index.ts",
"type": "commonjs",
"version": "0.0.15",
"version": "0.0.16",
"keywords": [
"pulumi",
"cloudflare"
Expand All @@ -17,7 +17,7 @@
"dependencies": {
"@pulumi/cloudflare": "^5.40.0",
"@pulumi/pulumi": "^3.113.0",
"cf-eventhub": "^0.0.17"
"cf-eventhub": "^0.0.18"
},
"tsup": {
"entry": [
Expand Down
2 changes: 1 addition & 1 deletion web-console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"typed-htmx": "^0.3.1",
"typescript": "^5.6.2",
"wrangler": "^3.83.0",
"cf-eventhub": "^0.0.17"
"cf-eventhub": "^0.0.18"
},
"tsup": {
"entry": [
Expand Down
Loading