@rest-vir/implement-service 0.15.0 → 0.16.0

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.
@@ -1,5 +1,5 @@
1
1
  import { type Overwrite } from '@augment-vir/common';
2
- import { EndpointDefinition, EndpointPathBase, ServiceDefinition, WebSocketDefinition, type GenericEndpointDefinition, type GenericWebSocketDefinition, type NoParam } from '@rest-vir/define-service';
2
+ import { type EndpointDefinition, type EndpointPathBase, type GenericEndpointDefinition, type GenericWebSocketDefinition, type NoParam, type ServiceDefinition, type WebSocketDefinition } from '@rest-vir/define-service';
3
3
  import { type ServiceLogger } from '../util/service-logger.js';
4
4
  import { type EndpointImplementation } from './implement-endpoint.js';
5
5
  import { type WebSocketImplementation } from './implement-web-socket.js';
@@ -1,8 +1,8 @@
1
- import { ErrorHttpStatusCategories, ExtractKeysWithMatchingValues, HttpMethod, HttpStatusByCategory, MaybePromise, SuccessHttpStatusCategories } from '@augment-vir/common';
2
- import { BaseSearchParams, BaseServiceEndpointsInit, EndpointDefinition, EndpointInit, EndpointPathBase, MinimalService, NoParam, ServiceDefinition, WithFinalEndpointProps, type PathParams } from '@rest-vir/define-service';
1
+ import { type ErrorHttpStatusCategories, type ExtractKeysWithMatchingValues, type HttpMethod, type HttpStatusByCategory, type MaybePromise, type SuccessHttpStatusCategories } from '@augment-vir/common';
2
+ import { type BaseSearchParams, type BaseServiceEndpointsInit, type EndpointDefinition, type EndpointInit, type EndpointPathBase, type MinimalService, type NoParam, type PathParams, type ServiceDefinition, type WithFinalEndpointProps } from '@rest-vir/define-service';
3
3
  import { type IncomingHttpHeaders, type OutgoingHttpHeaders } from 'node:http';
4
4
  import { type IsEqual, type IsNever } from 'type-fest';
5
- import { ServerRequest, type ServerResponse } from '../util/data.js';
5
+ import { type ServerRequest, type ServerResponse } from '../util/data.js';
6
6
  import { type ServiceLogger } from '../util/service-logger.js';
7
7
  /**
8
8
  * The part of {@link EndpointImplementationOutput} allowed for error responses.
@@ -1,10 +1,10 @@
1
1
  import { type KeyCount, type MaybePromise } from '@augment-vir/common';
2
- import { BaseServiceEndpointsInit, EndpointPathBase, NoParam, ServiceDefinition, type BaseServiceWebSocketsInit } from '@rest-vir/define-service';
2
+ import { type BaseServiceEndpointsInit, type BaseServiceWebSocketsInit, type EndpointPathBase, type NoParam, type ServiceDefinition } from '@rest-vir/define-service';
3
3
  import { type IsEqual, type OmitIndexSignature } from 'type-fest';
4
- import { ServiceLoggerOption, type ServiceLogger } from '../util/service-logger.js';
4
+ import { type ServiceLogger, type ServiceLoggerOption } from '../util/service-logger.js';
5
5
  import { type ImplementedEndpoint, type ImplementedWebSocket } from './generic-service-implementation.js';
6
6
  import { type EndpointImplementations } from './implement-endpoint.js';
7
- import { WebSocketImplementations } from './implement-web-socket.js';
7
+ import { type WebSocketImplementations } from './implement-web-socket.js';
8
8
  import { type ContextInit } from './service-context-init.js';
9
9
  /**
10
10
  * A user-defined endpoint error handler for service (and its endpoints) errors.
@@ -1,5 +1,5 @@
1
1
  import { type MaybePromise } from '@augment-vir/common';
2
- import { BaseSearchParams, BaseServiceWebSocketsInit, EndpointPathBase, MinimalService, NoParam, ServiceDefinition, WebSocketDefinition, WebSocketInit, WithFinalWebSocketProps } from '@rest-vir/define-service';
2
+ import { type BaseSearchParams, type BaseServiceWebSocketsInit, type EndpointPathBase, type MinimalService, type NoParam, type ServiceDefinition, type WebSocketDefinition, type WebSocketInit, type WithFinalWebSocketProps } from '@rest-vir/define-service';
3
3
  import { type IncomingHttpHeaders } from 'node:http';
4
4
  import { type IsEqual } from 'type-fest';
5
5
  import { type ServerRequest, type ServerWebSocket } from '../util/data.js';
@@ -1,9 +1,9 @@
1
- import { HttpMethod, MaybePromise, Values } from '@augment-vir/common';
1
+ import { type HttpMethod, type MaybePromise, type Values } from '@augment-vir/common';
2
2
  import { type BaseServiceEndpointsInit, type BaseServiceWebSocketsInit, type EndpointDefinition, type EndpointPathBase, type MinimalService, type NoParam, type WebSocketDefinition, type WithFinalEndpointProps, type WithFinalWebSocketProps } from '@rest-vir/define-service';
3
3
  import { type IncomingHttpHeaders } from 'node:http';
4
- import type { RequireExactlyOne } from 'type-fest';
4
+ import { type RequireExactlyOne } from 'type-fest';
5
5
  import { type ServerRequest, type ServerResponse } from '../util/data.js';
6
- import { EndpointImplementationErrorOutput, type RunningServerInfo } from './implement-endpoint.js';
6
+ import { type EndpointImplementationErrorOutput, type RunningServerInfo } from './implement-endpoint.js';
7
7
  /**
8
8
  * Output of {@link ContextInit}.
9
9
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rest-vir/implement-service",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Implement a service defined by @rest-vir/define-service.",
5
5
  "keywords": [
6
6
  "rest",
@@ -39,17 +39,17 @@
39
39
  "test:update": "npm test update"
40
40
  },
41
41
  "dependencies": {
42
- "@augment-vir/assert": "^31.14.1",
43
- "@augment-vir/common": "^31.14.1",
44
- "@rest-vir/define-service": "^0.15.0",
42
+ "@augment-vir/assert": "^31.16.0",
43
+ "@augment-vir/common": "^31.16.0",
44
+ "@rest-vir/define-service": "^0.16.0",
45
45
  "@types/ws": "^8.18.1",
46
46
  "fastify": "^5.3.2",
47
47
  "path-to-regexp": "^8.2.0",
48
- "type-fest": "^4.40.0"
48
+ "type-fest": "^4.40.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@augment-vir/test": "^31.14.1",
52
- "@types/node": "^22.14.1",
51
+ "@augment-vir/test": "^31.16.0",
52
+ "@types/node": "^22.15.3",
53
53
  "c8": "^10.1.3",
54
54
  "istanbul-smart-text-reporter": "^1.1.5",
55
55
  "markdown-code-example-inserter": "^3.0.3",