@digitraffic/common 2026.3.26-1-beta → 2026.4.9-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.
@@ -7,7 +7,7 @@ import type { ILayerVersion } from "aws-cdk-lib/aws-lambda";
7
7
  import { Architecture, Function as AwsFunction, Code, Runtime } from "aws-cdk-lib/aws-lambda";
8
8
  import { DtFunctionAlarms } from "./dt-function-alarms.js";
9
9
  import type { LambdaEnvironment } from "./lambda-configs.js";
10
- import type { DigitrafficStackLike } from "./stack.js";
10
+ import type { DigitrafficStackInterface } from "./stack.js";
11
11
  export declare class FunctionBuilder {
12
12
  private readonly _stack;
13
13
  private readonly _name;
@@ -29,16 +29,16 @@ export declare class FunctionBuilder {
29
29
  private readonly policyStatements;
30
30
  private readonly allowedActions;
31
31
  private readonly _features;
32
- constructor(stack: Stack & DigitrafficStackLike, lambdaName: string);
32
+ constructor(stack: Stack & DigitrafficStackInterface, lambdaName: string);
33
33
  /**
34
34
  * Creates a new builder with defaults, using the lambdaName as a source for the lambda implementation (dist/lambdaName/lambdaName.js).
35
35
  * Database access is given by default.
36
36
  */
37
- static create(stack: Stack & DigitrafficStackLike, lambdaName: string): FunctionBuilder;
37
+ static create(stack: Stack & DigitrafficStackInterface, lambdaName: string): FunctionBuilder;
38
38
  /**
39
39
  * Creates a new builder with defaults, but without database or secret access.
40
40
  */
41
- static plain(stack: Stack & DigitrafficStackLike, lambdaName: string): FunctionBuilder;
41
+ static plain(stack: Stack & DigitrafficStackInterface, lambdaName: string): FunctionBuilder;
42
42
  /**
43
43
  * Stack only has one lambda. Default is that it has multiple lambdas.
44
44
  */
@@ -1,6 +1,6 @@
1
1
  import type { Stack } from "aws-cdk-lib";
2
2
  import { LogGroup, RetentionDays } from "aws-cdk-lib/aws-logs";
3
- import type { DigitrafficStackLike } from "./stack.js";
3
+ import type { DigitrafficStackInterface } from "./stack.js";
4
4
  export interface CreateLambdaLogGroupParams {
5
5
  functionName: string;
6
6
  retention?: RetentionDays;
@@ -10,6 +10,6 @@ export interface CreateLambdaLogGroupParamsForStack extends CreateLambdaLogGroup
10
10
  shortName: string;
11
11
  }
12
12
  export interface CreateLambdaLogGroupParamsForDigitrafficStack extends CreateLambdaLogGroupParams {
13
- stack: Stack & DigitrafficStackLike;
13
+ stack: Stack & DigitrafficStackInterface;
14
14
  }
15
15
  export declare function createLambdaLogGroup(params: CreateLambdaLogGroupParamsForStack | CreateLambdaLogGroupParamsForDigitrafficStack): LogGroup;
@@ -6,7 +6,7 @@ import { StringParameter } from "aws-cdk-lib/aws-ssm";
6
6
  import type { Construct } from "constructs";
7
7
  import type { ModelWithReference } from "../../types/model-with-reference.js";
8
8
  import type { DocumentationPart } from "../documentation.js";
9
- import type { DigitrafficStackLike } from "./stack.js";
9
+ import type { DigitrafficStackInterface } from "./stack.js";
10
10
  export declare const PUBLIC_REST_API_CORS_CONFIG: {
11
11
  readonly defaultCorsPreflightOptions: {
12
12
  readonly allowOrigins: string[];
@@ -24,7 +24,7 @@ export declare class DigitrafficRestApi extends RestApi {
24
24
  readonly apiKeyIds: string[];
25
25
  readonly enableDocumentation: boolean;
26
26
  private readonly _stack;
27
- constructor(stack: Stack & DigitrafficStackLike, apiId: string, apiName: string, allowFromIpAddresses?: string[] | undefined, config?: Partial<RestApiProps>);
27
+ constructor(stack: Stack & DigitrafficStackInterface, apiId: string, apiName: string, allowFromIpAddresses?: string[] | undefined, config?: Partial<RestApiProps>);
28
28
  hostname(): string;
29
29
  /** Export end point and api key to Parameter store */
30
30
  exportEndpoint(): [StringParameter, StringParameter];
@@ -29,7 +29,7 @@ export interface StackConfiguration {
29
29
  };
30
30
  readonly whitelistedResources?: string[];
31
31
  }
32
- export interface DigitrafficStackLike {
32
+ export interface DigitrafficStackInterface {
33
33
  readonly configuration: StackConfiguration;
34
34
  readonly vpc?: IVpc;
35
35
  readonly lambdaDbSg?: ISecurityGroup;
@@ -40,7 +40,7 @@ export interface DigitrafficStackLike {
40
40
  getSecret(): ISecret;
41
41
  grantSecret(...lambdas: AWSFunction[]): void;
42
42
  }
43
- export declare class DigitrafficStack extends Stack implements DigitrafficStackLike {
43
+ export declare class DigitrafficStack extends Stack implements DigitrafficStackInterface {
44
44
  readonly vpc?: IVpc;
45
45
  readonly lambdaDbSg?: ISecurityGroup;
46
46
  readonly alarmTopic: ITopic;
@@ -23,6 +23,7 @@ export class NetworkStack extends Stack {
23
23
  createVpc(configuration) {
24
24
  return new Vpc(this, "DigitrafficVPC", {
25
25
  vpcName: configuration.vpcName,
26
+ restrictDefaultSecurityGroup: false,
26
27
  availabilityZones: Stack.of(this).availabilityZones.sort().slice(0, 2), // take two first azs
27
28
  enableDnsHostnames: true,
28
29
  enableDnsSupport: true,
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export type { DigitrafficStackLike } from "./aws/infra/stack/stack.js";
1
+ export type { DigitrafficStackInterface } from "./aws/infra/stack/stack.js";
2
2
  export { DigitrafficStack } from "./aws/infra/stack/stack.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitraffic/common",
3
- "version": "2026.3.26-1-beta",
3
+ "version": "2026.4.9-1",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "repository": {
@@ -108,27 +108,27 @@
108
108
  "dist/**/*.d.ts"
109
109
  ],
110
110
  "devDependencies": {
111
- "@aws-sdk/client-api-gateway": "3.1004.0",
112
- "@aws-sdk/client-s3": "3.1003.0",
113
- "@aws-sdk/client-secrets-manager": "3.1003.0",
114
- "@aws-sdk/client-sns": "3.1003.0",
115
- "@aws-sdk/lib-storage": "3.1003.0",
116
- "@biomejs/biome": "2.4.6",
111
+ "@aws-sdk/client-api-gateway": "3.1013.0",
112
+ "@aws-sdk/client-s3": "3.1013.0",
113
+ "@aws-sdk/client-secrets-manager": "3.1013.0",
114
+ "@aws-sdk/client-sns": "3.1013.0",
115
+ "@aws-sdk/lib-storage": "3.1013.0",
116
+ "@biomejs/biome": "2.4.8",
117
117
  "@date-fns/tz": "1.4.1",
118
- "@rushstack/heft": "1.2.6",
119
- "@rushstack/heft-typescript-plugin": "1.3.1",
120
- "@smithy/fetch-http-handler": "5.3.13",
121
- "@smithy/node-http-handler": "4.4.14",
122
- "@smithy/types": "4.13.0",
118
+ "@rushstack/heft": "1.2.7",
119
+ "@rushstack/heft-typescript-plugin": "1.3.2",
120
+ "@smithy/fetch-http-handler": "5.3.15",
121
+ "@smithy/node-http-handler": "4.5.0",
122
+ "@smithy/types": "4.13.1",
123
123
  "@types/aws-lambda": "8.10.161",
124
124
  "@types/etag": "1.8.4",
125
125
  "@types/geojson": "7946.0.16",
126
126
  "@types/geojson-validation": "1.0.3",
127
127
  "@types/lodash-es": "4.17.12",
128
128
  "@types/madge": "5.0.3",
129
- "@types/node": "25.3.5",
130
- "@vitest/coverage-v8": "4.0.18",
131
- "aws-cdk-lib": "2.241.0",
129
+ "@types/node": "25.5.0",
130
+ "@vitest/coverage-v8": "4.1.0",
131
+ "aws-cdk-lib": "2.244.0",
132
132
  "change-case": "5.4.4",
133
133
  "constructs": "10.5.1",
134
134
  "date-fns": "4.1.0",
@@ -136,7 +136,7 @@
136
136
  "etag": "1.8.1",
137
137
  "geojson-validation": "1.0.2",
138
138
  "ky": "1.14.3",
139
- "lefthook": "2.1.2",
139
+ "lefthook": "2.1.4",
140
140
  "lodash-es": "4.17.23",
141
141
  "madge": "8.0.0",
142
142
  "pg-native": "3.7.0",
@@ -146,19 +146,19 @@
146
146
  "sort-package-json": "3.6.1",
147
147
  "typescript": "5.9.3",
148
148
  "velocityjs": "2.1.5",
149
- "vitest": "4.0.18",
149
+ "vitest": "4.1.0",
150
150
  "zod": "4.3.6"
151
151
  },
152
152
  "peerDependencies": {
153
- "@aws-sdk/client-api-gateway": "3.1004.0",
154
- "@aws-sdk/client-s3": "3.1003.0",
155
- "@aws-sdk/client-secrets-manager": "3.1003.0",
156
- "@aws-sdk/client-sns": "3.1003.0",
157
- "@aws-sdk/lib-storage": "3.1003.0",
153
+ "@aws-sdk/client-api-gateway": "3.1013.0",
154
+ "@aws-sdk/client-s3": "3.1013.0",
155
+ "@aws-sdk/client-secrets-manager": "3.1013.0",
156
+ "@aws-sdk/client-sns": "3.1013.0",
157
+ "@aws-sdk/lib-storage": "3.1013.0",
158
158
  "@date-fns/tz": "1.4.1",
159
- "@smithy/fetch-http-handler": "5.3.13",
160
- "@smithy/node-http-handler": "4.4.14",
161
- "aws-cdk-lib": "2.241.0",
159
+ "@smithy/fetch-http-handler": "5.3.15",
160
+ "@smithy/node-http-handler": "4.5.0",
161
+ "aws-cdk-lib": "2.244.0",
162
162
  "change-case": "5.4.4",
163
163
  "constructs": "10.5.1",
164
164
  "date-fns": "4.1.0",