@codedazur/cdk-next-app 0.2.3 → 0.2.5

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,23 @@
1
1
  # @codedazur/cdk-next-app
2
2
 
3
+ ## 0.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4bbe16d`](https://github.com/codedazur/toolkit/commit/4bbe16ddf6880fa33649d70f45144e8c7d7c82de) Thanks [@thijsdaniels](https://github.com/thijsdaniels)! - Props were updated to match DockerCluster.
8
+
9
+ - Updated dependencies [[`4bbe16d`](https://github.com/codedazur/toolkit/commit/4bbe16ddf6880fa33649d70f45144e8c7d7c82de)]:
10
+ - @codedazur/cdk-docker-cluster@0.6.0
11
+
12
+ ## 0.2.4
13
+
14
+ ### Patch Changes
15
+
16
+ - [`49582be`](https://github.com/codedazur/toolkit/commit/49582be94f1f39d57a359fb2ae69c303f0503871) Thanks [@thijsdaniels](https://github.com/thijsdaniels)! - Updated dependencies.
17
+
18
+ - Updated dependencies [[`49582be`](https://github.com/codedazur/toolkit/commit/49582be94f1f39d57a359fb2ae69c303f0503871)]:
19
+ - @codedazur/cdk-docker-cluster@0.5.2
20
+
3
21
  ## 0.2.3
4
22
 
5
23
  ### Patch Changes
package/README.md CHANGED
@@ -78,18 +78,23 @@ The NextApp is based on the [DockerCluster](https://github.com/codedazur/toolkit
78
78
  ```ts
79
79
  new NextApp(this, "NextApp", {
80
80
  // ...
81
- cpu: 1024,
82
- memory: 4096,
83
- tasks: 3,
81
+ service: {
82
+ cpu: 1024,
83
+ memory: 4096,
84
+ tasks: 3,
85
+ },
84
86
  });
85
87
  ```
86
88
 
87
89
  ```ts
88
90
  new NextApp(this, "NextApp", {
89
91
  // ...
90
- tasks: {
91
- minimum: 1,
92
- maximum: 5,
92
+ service: {
93
+ // ...
94
+ tasks: {
95
+ minimum: 1,
96
+ maximum: 5,
97
+ },
93
98
  },
94
99
  });
95
100
  ```
package/dist/index.d.mts CHANGED
@@ -9,7 +9,7 @@ interface NextAppProps extends DockerClusterProps {
9
9
  * for private NPM packages using a build-time secret.
10
10
  */
11
11
  declare class NextApp extends DockerCluster {
12
- constructor(scope: Construct, id: string, { port, source, ...props }: NextAppProps);
12
+ constructor(scope: Construct, id: string, { source, service: { port, ...service }, ...props }: NextAppProps);
13
13
  protected static withNpmSecret(source: NextAppProps["source"]): ContainerImage | {
14
14
  secrets: {
15
15
  npmrc: string;
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ interface NextAppProps extends DockerClusterProps {
9
9
  * for private NPM packages using a build-time secret.
10
10
  */
11
11
  declare class NextApp extends DockerCluster {
12
- constructor(scope: Construct, id: string, { port, source, ...props }: NextAppProps);
12
+ constructor(scope: Construct, id: string, { source, service: { port, ...service }, ...props }: NextAppProps);
13
13
  protected static withNpmSecret(source: NextAppProps["source"]): ContainerImage | {
14
14
  secrets: {
15
15
  npmrc: string;
package/dist/index.js CHANGED
@@ -41,10 +41,17 @@ var import_cdk_docker_cluster = require("@codedazur/cdk-docker-cluster");
41
41
  var import_aws_cdk_lib = require("aws-cdk-lib");
42
42
  var import_aws_ecs = require("aws-cdk-lib/aws-ecs");
43
43
  var NextApp = class _NextApp extends import_cdk_docker_cluster.DockerCluster {
44
- constructor(scope, id, { port = 3e3, source, ...props }) {
44
+ constructor(scope, id, {
45
+ source,
46
+ service: { port = 3e3, ...service } = {},
47
+ ...props
48
+ }) {
45
49
  super(scope, id, {
46
- port,
47
50
  source: _NextApp.withNpmSecret(source),
51
+ service: {
52
+ port,
53
+ ...service
54
+ },
48
55
  ...props
49
56
  });
50
57
  }
package/dist/index.mjs CHANGED
@@ -7,10 +7,17 @@ import {
7
7
  import { DockerBuildSecret } from "aws-cdk-lib";
8
8
  import { ContainerImage } from "aws-cdk-lib/aws-ecs";
9
9
  var NextApp = class _NextApp extends DockerCluster {
10
- constructor(scope, id, { port = 3e3, source, ...props }) {
10
+ constructor(scope, id, {
11
+ source,
12
+ service: { port = 3e3, ...service } = {},
13
+ ...props
14
+ }) {
11
15
  super(scope, id, {
12
- port,
13
16
  source: _NextApp.withNpmSecret(source),
17
+ service: {
18
+ port,
19
+ ...service
20
+ },
14
21
  ...props
15
22
  });
16
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codedazur/cdk-next-app",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "main": ".dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "constructs": ">=10"
28
28
  },
29
29
  "dependencies": {
30
- "@codedazur/cdk-docker-cluster": "^0.5.0"
30
+ "@codedazur/cdk-docker-cluster": "^0.6.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^20.14.9",