@lwrjs/server 0.10.0-alpha.8 → 0.10.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,4 +1,4 @@
1
- import { RuntimeContext, RuntimeEnvironment, Headers, MiddlewareRequest, NormalizedLwrGlobalConfig } from '@lwrjs/types';
1
+ import type { RuntimeContext, RuntimeEnvironment, Headers, MiddlewareRequest, NormalizedLwrGlobalConfig } from '@lwrjs/types';
2
2
  export declare abstract class AbstractMiddlewareRequest implements MiddlewareRequest {
3
3
  isSiteGenerationRequest: boolean;
4
4
  constructor(isSiteGenerationRequest?: boolean);
@@ -1,3 +1,3 @@
1
- import { RequestHandler } from 'express';
1
+ import type { RequestHandler } from 'express';
2
2
  export default function (): RequestHandler;
3
3
  //# sourceMappingURL=compression.d.ts.map
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
- import { Response } from 'express';
3
- import { Readable } from 'stream';
4
- import { MiddlewareResponse } from '@lwrjs/types';
2
+ import type { Response } from 'express';
3
+ import type { Readable } from 'stream';
4
+ import type { MiddlewareResponse } from '@lwrjs/types';
5
5
  export default class ExpressResponse implements MiddlewareResponse {
6
6
  private res;
7
7
  private metadata;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { Application as ExpressApp } from 'express';
3
3
  import http from 'http';
4
- import { InternalAppServer, InternalAppServerOptions, MiddlewareFunction } from '@lwrjs/types';
4
+ import type { InternalAppServer, InternalAppServerOptions, MiddlewareFunction } from '@lwrjs/types';
5
5
  import AbstractInternalAppServer from '../common/abstract-internal-app-server.js';
6
6
  /**
7
7
  * Express Server Implementation (https://expressjs.com/)
@@ -1,4 +1,4 @@
1
- import Koa from 'koa';
2
- import { FsContext } from '@lwrjs/types';
1
+ import type Koa from 'koa';
2
+ import type { FsContext } from '@lwrjs/types';
3
3
  export default function createFsContext(koa: Koa, url: string, method: string | undefined, lang: string): FsContext;
4
4
  //# sourceMappingURL=fs-context.d.ts.map
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
- import { Readable } from 'stream';
4
- import http from 'http';
5
- import { FsContext, MiddlewareResponse } from '@lwrjs/types';
3
+ import type { Readable } from 'stream';
4
+ import type http from 'http';
5
+ import type { FsContext, MiddlewareResponse } from '@lwrjs/types';
6
6
  export default class FsResponse implements MiddlewareResponse {
7
7
  context: Required<FsContext>;
8
8
  constructor(context: FsContext);
@@ -2,7 +2,7 @@
2
2
  /// <reference types="node" />
3
3
  import Koa from 'koa';
4
4
  import KoaRouter, { Middleware as KoaMiddleware } from '@koa/router';
5
- import { LwrDispatcher, FsContext, InternalAppServer, InternalAppServerOptions, MiddlewareFunction } from '@lwrjs/types';
5
+ import type { LwrDispatcher, FsContext, InternalAppServer, InternalAppServerOptions, MiddlewareFunction } from '@lwrjs/types';
6
6
  import { Server as HttpServer } from 'http';
7
7
  import AbstractInternalAppServer from '../common/abstract-internal-app-server.js';
8
8
  export declare class LwrFsKoa extends Koa implements LwrDispatcher {
@@ -1,6 +1,6 @@
1
1
  import { LwrFsKoa } from './fs/fs-server.js';
2
- import { InternalAppServer, MiddlewareRequest, MiddlewareResponse, ServerTypeImpl, ServerTypes } from '@lwrjs/types';
3
- import { Request, Response } from 'express';
2
+ import type { InternalAppServer, MiddlewareRequest, MiddlewareResponse, ServerTypeImpl, ServerTypes } from '@lwrjs/types';
3
+ import type { Request, Response } from 'express';
4
4
  type ServerOptions = {
5
5
  app?: ServerTypeImpl<ServerTypes>;
6
6
  basePath?: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
- import Koa from 'koa';
2
+ import type Koa from 'koa';
3
3
  import { Readable } from 'stream';
4
- import { MiddlewareResponse } from '@lwrjs/types';
4
+ import type { MiddlewareResponse } from '@lwrjs/types';
5
5
  export default class KoaResponse implements MiddlewareResponse {
6
6
  protected ctx: Koa.Context;
7
7
  private metadata;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import Koa from 'koa';
3
3
  import http from 'http';
4
- import { InternalAppServer, InternalAppServerOptions, MiddlewareFunction } from '@lwrjs/types';
4
+ import type { InternalAppServer, InternalAppServerOptions, MiddlewareFunction } from '@lwrjs/types';
5
5
  import AbstractInternalAppServer from '../common/abstract-internal-app-server.js';
6
6
  /**
7
7
  * Koa Server Implementation (https://koajs.com/)
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.10.0-alpha.8",
7
+ "version": "0.10.0",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -34,14 +34,14 @@
34
34
  "build/**/*.d.ts"
35
35
  ],
36
36
  "devDependencies": {
37
- "@lwrjs/types": "0.10.0-alpha.8",
37
+ "@lwrjs/types": "0.10.0",
38
38
  "@types/koa-compress": "^4.0.1",
39
39
  "@types/koa__router": "^8.0.4",
40
40
  "jest-express": "^1.12.0"
41
41
  },
42
42
  "dependencies": {
43
43
  "@koa/router": "^10.0.0",
44
- "@lwrjs/shared-utils": "0.10.0-alpha.8",
44
+ "@lwrjs/shared-utils": "0.10.0",
45
45
  "@types/compression": "^1.7.2",
46
46
  "@types/express": "^4.17.17",
47
47
  "@types/koa": "^2.11.7",
@@ -57,7 +57,7 @@
57
57
  "shrink-ray-current": "^4.1.3"
58
58
  },
59
59
  "engines": {
60
- "node": ">=16.0.0 <20"
60
+ "node": ">=16.0.0"
61
61
  },
62
- "gitHead": "46bd72343e1db7c72470033320921df3a7eff18a"
62
+ "gitHead": "e6deaeef3db8aa079acefed508897eca19b3218a"
63
63
  }