@effect-app/infra 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 2.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 77a27ec: simpler middleware
8
+
3
9
  ## 2.3.0
4
10
 
5
11
  ### Minor Changes
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.serverHealth = serverHealth;
7
7
  var _http = require("effect-app/http");
8
8
  function serverHealth(version) {
9
- return _http.HttpRouter.get("/.well-known/local/server-health", _http.HttpServerResponse.unsafeJson({
9
+ return _http.HttpServerResponse.unsafeJson({
10
10
  version
11
- }).pipe(_http.HttpMiddleware.withLoggerDisabled));
11
+ }).pipe(_http.HttpMiddleware.withLoggerDisabled);
12
12
  }
13
13
  //# sourceMappingURL=health.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"health.cjs","names":["_http","require","serverHealth","version","HttpRouter","get","HttpServerResponse","unsafeJson","pipe","HttpMiddleware","withLoggerDisabled"],"sources":["../../../src/api/internal/health.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEM,SAAUC,YAAYA,CAACC,OAAe;EAC1C,OAAOC,gBAAU,CAACC,GAAG,CACnB,kCAAkC,EAClCC,wBAAkB,CAACC,UAAU,CAAC;IAAEJ;EAAO,CAAE,CAAC,CAACK,IAAI,CAACC,oBAAc,CAACC,kBAAkB,CAAC,CACnF;AACH","ignoreList":[]}
1
+ {"version":3,"file":"health.cjs","names":["_http","require","serverHealth","version","HttpServerResponse","unsafeJson","pipe","HttpMiddleware","withLoggerDisabled"],"sources":["../../../src/api/internal/health.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEM,SAAUC,YAAYA,CAACC,OAAe;EAC1C,OAAOC,wBAAkB,CAACC,UAAU,CAAC;IAAEF;EAAO,CAAE,CAAC,CAACG,IAAI,CAACC,oBAAc,CAACC,kBAAkB,CAAC;AAC3F","ignoreList":[]}
@@ -1,3 +1,3 @@
1
- import { HttpRouter } from "effect-app/http";
2
- export declare function serverHealth(version: string): <E, R>(self: HttpRouter.HttpRouter<E, R>) => HttpRouter.HttpRouter<E, R>;
1
+ import { HttpServerResponse } from "effect-app/http";
2
+ export declare function serverHealth(version: string): import("effect/Effect").Effect<HttpServerResponse.HttpServerResponse, never, never>;
3
3
  //# sourceMappingURL=health.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../../src/api/internal/health.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,UAAU,EAAsB,MAAM,iBAAiB,CAAA;AAEhF,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,4EAK3C"}
1
+ {"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../../src/api/internal/health.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEpE,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,uFAE3C"}
@@ -1,5 +1,5 @@
1
- import { HttpMiddleware, HttpRouter, HttpServerResponse } from "effect-app/http";
1
+ import { HttpMiddleware, HttpServerResponse } from "effect-app/http";
2
2
  export function serverHealth(version) {
3
- return HttpRouter.get("/.well-known/local/server-health", HttpServerResponse.unsafeJson({ version }).pipe(HttpMiddleware.withLoggerDisabled));
3
+ return HttpServerResponse.unsafeJson({ version }).pipe(HttpMiddleware.withLoggerDisabled);
4
4
  }
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhbHRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwaS9pbnRlcm5hbC9oZWFsdGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxVQUFVLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQTtBQUVoRixNQUFNLFVBQVUsWUFBWSxDQUFDLE9BQWU7SUFDMUMsT0FBTyxVQUFVLENBQUMsR0FBRyxDQUNuQixrQ0FBa0MsRUFDbEMsa0JBQWtCLENBQUMsVUFBVSxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsY0FBYyxDQUFDLGtCQUFrQixDQUFDLENBQ25GLENBQUE7QUFDSCxDQUFDIn0=
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhbHRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwaS9pbnRlcm5hbC9oZWFsdGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGlCQUFpQixDQUFBO0FBRXBFLE1BQU0sVUFBVSxZQUFZLENBQUMsT0FBZTtJQUMxQyxPQUFPLGtCQUFrQixDQUFDLFVBQVUsQ0FBQyxFQUFFLE9BQU8sRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLGNBQWMsQ0FBQyxrQkFBa0IsQ0FBQyxDQUFBO0FBQzNGLENBQUMifQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -1,8 +1,5 @@
1
- import { HttpMiddleware, HttpRouter, HttpServerResponse } from "effect-app/http"
1
+ import { HttpMiddleware, HttpServerResponse } from "effect-app/http"
2
2
 
3
3
  export function serverHealth(version: string) {
4
- return HttpRouter.get(
5
- "/.well-known/local/server-health",
6
- HttpServerResponse.unsafeJson({ version }).pipe(HttpMiddleware.withLoggerDisabled)
7
- )
4
+ return HttpServerResponse.unsafeJson({ version }).pipe(HttpMiddleware.withLoggerDisabled)
8
5
  }