Skip to content

Commit

Permalink
Prep 0.19.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jollytoad committed Jul 2, 2024
1 parent e8d87b0 commit a4e1f50
Show file tree
Hide file tree
Showing 23 changed files with 71 additions and 67 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ and this project adheres to

This changelog will need to be split between individual packages

## [0.19.0]

### Changed

- [@http/interceptor] rethrow an error if a valid Response is not available to
return after all error interceptors have been called
- [@http/assert] strip `assert-` from sub-modules (to align with `@std/assert`)
- Update deps to latest v1.* pre-releases of `@std` lib

## [0.18.1]

Expand Down
2 changes: 1 addition & 1 deletion _tools/packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function updatePackages(version?: string) {
}

const importAlias = `@http/${entry.name}`;
const importTarget = `jsr:@http/${entry.name}@${pkgDenoJson.version}`;
const importTarget = `jsr:@http/${entry.name}@^${pkgDenoJson.version}`;

if (rootDenoJson.imports?.[importAlias] !== importTarget) {
rootDenoJson.imports = sortByKey({
Expand Down
40 changes: 20 additions & 20 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,26 @@
]
},
"imports": {
"@http/assert": "jsr:@http/assert@0.18.0",
"@http/discovery": "jsr:@http/discovery@0.18.0",
"@http/examples": "jsr:@http/examples@0.18.0",
"@http/generate": "jsr:@http/generate@0.18.1",
"@http/host-deno-deploy": "jsr:@http/host-deno-deploy@0.18.0",
"@http/host-deno-local": "jsr:@http/host-deno-local@0.18.0",
"@http/interceptor": "jsr:@http/interceptor@0.18.0",
"@http/request": "jsr:@http/request@0.18.0",
"@http/response": "jsr:@http/response@0.18.0",
"@http/route": "jsr:@http/route@0.18.0",
"@http/route-deno": "jsr:@http/route-deno@0.18.0",
"@std/assert": "jsr:@std/assert@^0.226.0",
"@std/collections": "jsr:@std/collections@^1.0.0-rc.1",
"@std/fs": "jsr:@std/fs@^0.229.1",
"@std/http": "jsr:@std/http@^0.224.3",
"@std/media-types": "jsr:@std/media-types@^1.0.0-rc.1",
"@std/net": "jsr:@std/net@^0.224.2",
"@std/path": "jsr:@std/path@^0.225.2",
"@std/testing": "jsr:@std/testing@^0.225.0",
"@std/url": "jsr:@std/url@^0.224.0",
"@http/assert": "jsr:@http/assert@^0.19.0",
"@http/discovery": "jsr:@http/discovery@^0.19.0",
"@http/examples": "jsr:@http/examples@^0.19.0",
"@http/generate": "jsr:@http/generate@^0.19.0",
"@http/host-deno-deploy": "jsr:@http/host-deno-deploy@^0.19.0",
"@http/host-deno-local": "jsr:@http/host-deno-local@^0.19.0",
"@http/interceptor": "jsr:@http/interceptor@^0.19.0",
"@http/request": "jsr:@http/request@^0.19.0",
"@http/response": "jsr:@http/response@^0.19.0",
"@http/route": "jsr:@http/route@^0.19.0",
"@http/route-deno": "jsr:@http/route-deno@^0.19.0",
"@std/assert": "jsr:@std/assert@^1.0.0-rc.3",
"@std/collections": "jsr:@std/collections@^1.0.2",
"@std/fs": "jsr:@std/fs@^1.0.0-rc.3",
"@std/http": "jsr:@std/http@^1.0.0-rc.2",
"@std/media-types": "jsr:@std/media-types@^1.0.1",
"@std/net": "jsr:@std/net@^0.224.4",
"@std/path": "jsr:@std/path@^1.0.0-rc.3",
"@std/testing": "jsr:@std/testing@^1.0.0-rc.2",
"@std/url": "jsr:@std/url@^1.0.0-rc.2",
"$test/generate/": "./packages/generate/_test/",
"ts-poet": "npm:ts-poet@^6.9.0"
},
Expand Down
42 changes: 21 additions & 21 deletions import_map_local.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"imports": {
"@http/assert": "./packages/assert/mod.ts",
"@http/assert/assert-header": "./packages/assert/assert_header.ts",
"@http/assert/assert-ok": "./packages/assert/assert_ok.ts",
"@http/assert/assert-status": "./packages/assert/assert_status.ts",
"@http/assert/header": "./packages/assert/header.ts",
"@http/assert/ok": "./packages/assert/ok.ts",
"@http/assert/status": "./packages/assert/status.ts",
"@http/discovery/as-serializable-pattern": "./packages/discovery/as_serializable_pattern.ts",
"@http/discovery/cascading-handler-mapper": "./packages/discovery/cascading_handler_mapper.ts",
"@http/discovery/combined-route-mapper": "./packages/discovery/combined_route_mapper.ts",
Expand Down Expand Up @@ -100,24 +100,24 @@
"@http/route/lazy": "./packages/route/lazy.ts",
"@http/route/types": "./packages/route/types.ts",
"@http/route/with-fallback": "./packages/route/with_fallback.ts",
"@std/assert": "jsr:@std/assert@^0.226.0",
"@std/assert/": "jsr:/@std/assert@^0.226.0/",
"@std/collections": "jsr:@std/collections@^1.0.0-rc.1",
"@std/collections/": "jsr:/@std/collections@^1.0.0-rc.1/",
"@std/fs": "jsr:@std/fs@^0.229.1",
"@std/fs/": "jsr:/@std/fs@^0.229.1/",
"@std/http": "jsr:@std/http@^0.224.3",
"@std/http/": "jsr:/@std/http@^0.224.3/",
"@std/media-types": "jsr:@std/media-types@^1.0.0-rc.1",
"@std/media-types/": "jsr:/@std/media-types@^1.0.0-rc.1/",
"@std/net": "jsr:@std/net@^0.224.2",
"@std/net/": "jsr:/@std/net@^0.224.2/",
"@std/path": "jsr:@std/path@^0.225.2",
"@std/path/": "jsr:/@std/path@^0.225.2/",
"@std/testing": "jsr:@std/testing@^0.225.0",
"@std/testing/": "jsr:/@std/testing@^0.225.0/",
"@std/url": "jsr:@std/url@^0.224.0",
"@std/url/": "jsr:/@std/url@^0.224.0/",
"@std/assert": "jsr:@std/assert@^1.0.0-rc.3",
"@std/assert/": "jsr:/@std/assert@^1.0.0-rc.3/",
"@std/collections": "jsr:@std/collections@^1.0.2",
"@std/collections/": "jsr:/@std/collections@^1.0.2/",
"@std/fs": "jsr:@std/fs@^1.0.0-rc.3",
"@std/fs/": "jsr:/@std/fs@^1.0.0-rc.3/",
"@std/http": "jsr:@std/http@^1.0.0-rc.2",
"@std/http/": "jsr:/@std/http@^1.0.0-rc.2/",
"@std/media-types": "jsr:@std/media-types@^1.0.1",
"@std/media-types/": "jsr:/@std/media-types@^1.0.1/",
"@std/net": "jsr:@std/net@^0.224.4",
"@std/net/": "jsr:/@std/net@^0.224.4/",
"@std/path": "jsr:@std/path@^1.0.0-rc.3",
"@std/path/": "jsr:/@std/path@^1.0.0-rc.3/",
"@std/testing": "jsr:@std/testing@^1.0.0-rc.2",
"@std/testing/": "jsr:/@std/testing@^1.0.0-rc.2/",
"@std/url": "jsr:@std/url@^1.0.0-rc.2",
"@std/url/": "jsr:/@std/url@^1.0.0-rc.2/",
"$test/generate/": "./packages/generate/_test/",
"ts-poet": "npm:ts-poet@^6.9.0",
"ts-poet/": "npm:/ts-poet@^6.9.0/"
Expand Down
10 changes: 5 additions & 5 deletions packages/assert/deno.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@http/assert",
"version": "0.18.0",
"version": "0.19.0",
"exports": {
"./assert-header": "./assert_header.ts",
"./assert-ok": "./assert_ok.ts",
"./assert-status": "./assert_status.ts",
".": "./mod.ts"
"./header": "./header.ts",
".": "./mod.ts",
"./ok": "./ok.ts",
"./status": "./status.ts"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertHeader } from "./assert_header.ts";
import { assertHeader } from "./header.ts";
import { AssertionError } from "@std/assert/assertion-error";
import { assertThrows } from "@std/assert/assert-throws";
import { assertThrows } from "@std/assert/throws";

Deno.test("assertHeader() matches header with value in Headers object", () => {
const headers = new Headers({ "Stuff": "Nonsense" });
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions packages/assert/mod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./assert_ok.ts";
export * from "./assert_header.ts";
export * from "./assert_status.ts";
export * from "./ok.ts";
export * from "./header.ts";
export * from "./status.ts";
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertOk } from "./assert_ok.ts";
import { assertThrows } from "@std/assert/assert-throws";
import { assertOk } from "./ok.ts";
import { assertThrows } from "@std/assert/throws";
import { AssertionError } from "@std/assert/assertion-error";

Deno.test("assertOk() matches when response.ok is true", () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertStatus, STATUS_CODE } from "./assert_status.ts";
import { assertThrows } from "@std/assert/assert-throws";
import { assertStatus, STATUS_CODE } from "./status.ts";
import { assertThrows } from "@std/assert/throws";
import { AssertionError } from "@std/assert/assertion-error";

Deno.test("assertStatus() matches status code and text", () => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/discovery/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@http/discovery",
"version": "0.18.0",
"version": "0.19.0",
"exports": {
"./as-serializable-pattern": "./as_serializable_pattern.ts",
"./cascading-handler-mapper": "./cascading_handler_mapper.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@http/examples",
"version": "0.18.0",
"version": "0.19.0",
"exports": {
"./by-media-type": "./by_media_type.ts",
"./by-method": "./by_method.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/generate/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@http/generate",
"version": "0.18.1",
"version": "0.19.0",
"exports": {
"./code-builder": "./code_builder.ts",
"./default-handler-generator": "./default_handler_generator.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/generate/generate_routes_module.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
assertStatus,
STATUS_CODE,
type StatusCode,
} from "@http/assert/assert-status";
} from "@http/assert/status";
import { assertStringIncludes } from "@std/assert";

const fileRootUrl = import.meta.resolve("./_test/routes");
Expand Down
2 changes: 1 addition & 1 deletion packages/host-deno-deploy/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@http/host-deno-deploy",
"version": "0.18.0",
"version": "0.19.0",
"exports": {
"./init": "./init.ts",
"./types": "./types.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/host-deno-local/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@http/host-deno-local",
"version": "0.18.0",
"version": "0.19.0",
"exports": {
"./init": "./init.ts",
"./load-key-and-cert": "./load_key_and_cert.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/interceptor/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@http/interceptor",
"version": "0.18.0",
"version": "0.19.0",
"exports": {
"./catch-response": "./catch_response.ts",
"./cors": "./cors.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/request/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@http/request",
"version": "0.18.0",
"version": "0.19.0",
"exports": {
"./body-as-object": "./body_as_object.ts",
"./memoize": "./memoize.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/response/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@http/response",
"version": "0.18.0",
"version": "0.19.0",
"exports": {
"./accepted": "./accepted.ts",
"./append-headers": "./append_headers.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/route-deno/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@http/route-deno",
"version": "0.18.0",
"version": "0.19.0",
"exports": {
"./static-route": "./static_route.ts",
"./types": "./types.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/route/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@http/route",
"version": "0.18.0",
"version": "0.19.0",
"exports": {
"./as-url-pattern": "./as_url_pattern.ts",
"./by-media-type": "./by_media_type.ts",
Expand Down

0 comments on commit a4e1f50

Please sign in to comment.