@rio-cloud/cdk-v2-constructs 7.13.4 → 7.13.5-alpha.2
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/docs/changelog.md +6 -0
- package/package.json +3 -3
- package/version.json +1 -1
- package/.gitattributes +0 -15
- package/.versionrc.json +0 -14
- package/catalog-info.yaml +0 -13
- package/esbuild.mjs +0 -48
- package/mkdocs.yaml +0 -12
- package/release-commit-check.js +0 -6
- package/scripts/publish.ts +0 -57
- package/scripts/set-package-version.ts +0 -24
- package/tsconfig.scripts.json +0 -11
package/docs/changelog.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [7.13.5-alpha.2](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv7.13.5-alpha.1&sourceBranch=refs%2Ftags%2Fv7.13.5-alpha.2) (2025-12-10)
|
|
6
|
+
|
|
7
|
+
## [7.13.5-alpha.1](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv7.13.5-alpha.0&sourceBranch=refs%2Ftags%2Fv7.13.5-alpha.1) (2025-12-10)
|
|
8
|
+
|
|
9
|
+
## [7.13.5-alpha.0](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv7.13.4&sourceBranch=refs%2Ftags%2Fv7.13.5-alpha.0) (2025-12-10)
|
|
10
|
+
|
|
5
11
|
## [7.13.4](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv7.13.3&sourceBranch=refs%2Ftags%2Fv7.13.4) (2025-12-09)
|
|
6
12
|
|
|
7
13
|
## [7.13.3](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv7.13.2&sourceBranch=refs%2Ftags%2Fv7.13.3) (2025-12-02)
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
],
|
|
16
16
|
"main": "lib/index.js",
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
|
-
"version": "7.13.
|
|
18
|
+
"version": "7.13.5-alpha.2",
|
|
19
19
|
"types": "lib/index.d.ts",
|
|
20
20
|
"stability": "stable",
|
|
21
21
|
"exports": {
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"release": "npm run release:check && npm run release:build",
|
|
71
71
|
"release:alpha": "npm run release:check && npm run release:build:alpha",
|
|
72
72
|
"release:dry-run": "npm run build && npm run docgen && npm run release:check && commit-and-tag-version -i docs/changelog.md -a --dry-run",
|
|
73
|
-
"set-package-version": "ts-node --project tsconfig.
|
|
74
|
-
"publish": "
|
|
73
|
+
"set-package-version": "ts-node --project tsconfig.dev.json scripts/set-package-version.ts",
|
|
74
|
+
"release:publish": "./scripts/publish.sh"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/jest": "29.5.13",
|
package/version.json
CHANGED
package/.gitattributes
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
|
|
2
|
-
|
|
3
|
-
*.snap linguist-generated
|
|
4
|
-
/.eslintrc.json linguist-generated
|
|
5
|
-
/.gitattributes linguist-generated
|
|
6
|
-
/.gitignore linguist-generated
|
|
7
|
-
/.npmignore linguist-generated
|
|
8
|
-
/.projen/** linguist-generated
|
|
9
|
-
/.projen/deps.json linguist-generated
|
|
10
|
-
/.projen/files.json linguist-generated
|
|
11
|
-
/.projen/tasks.json linguist-generated
|
|
12
|
-
/LICENSE linguist-generated
|
|
13
|
-
/package-lock.json linguist-generated
|
|
14
|
-
/package.json linguist-generated
|
|
15
|
-
/tsconfig.dev.json linguist-generated
|
package/.versionrc.json
DELETED
package/catalog-info.yaml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
apiVersion: backstage.io/v1alpha1
|
|
2
|
-
kind: Component
|
|
3
|
-
metadata:
|
|
4
|
-
name: cdk-v2-constructs
|
|
5
|
-
description: the
|
|
6
|
-
annotations:
|
|
7
|
-
backstage.io/techdocs-ref: dir:.
|
|
8
|
-
links:
|
|
9
|
-
- url: https://www.npmjs.com/package/@rio-cloud/cdk-v2-constructs
|
|
10
|
-
spec:
|
|
11
|
-
type: library
|
|
12
|
-
lifecycle: active-development
|
|
13
|
-
owner: rio-team-claid
|
package/esbuild.mjs
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as esbuild from 'esbuild';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const entryPoints = [
|
|
5
|
-
{
|
|
6
|
-
basePath: 'fargate/codedeploy-custom-resources',
|
|
7
|
-
fileName: 'create-deployment-on-create.ts',
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
basePath: 'fargate/codedeploy-custom-resources',
|
|
11
|
-
fileName: 'create-deployment-is-complete.ts',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
basePath: 'fargate/codedeploy-custom-resources',
|
|
15
|
-
fileName: 'run-monitoring-test-suite-runner.ts',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
basePath: 'datadogv2/secret-locator-custom-resource',
|
|
19
|
-
fileName: 'on-create.ts',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
basePath: 'datadogv2/service-catalog-custom-resource',
|
|
23
|
-
fileName: 'on-create.ts',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
basePath: 'ses/lambda',
|
|
27
|
-
fileName: 'ses-logger.ts',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
basePath: 'contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test-custom-resource',
|
|
31
|
-
fileName: 'handler.ts',
|
|
32
|
-
},
|
|
33
|
-
]
|
|
34
|
-
|
|
35
|
-
for (const handler of entryPoints) {
|
|
36
|
-
await esbuild.build({
|
|
37
|
-
entryPoints: [`src/${handler.basePath}/${handler.fileName}`],
|
|
38
|
-
bundle: true,
|
|
39
|
-
platform: 'node',
|
|
40
|
-
format: 'cjs',
|
|
41
|
-
outExtension: {
|
|
42
|
-
'.js': '.cjs',
|
|
43
|
-
},
|
|
44
|
-
outdir: `lib/${handler.basePath}`,
|
|
45
|
-
tsconfig: './tsconfig.json',
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
|
package/mkdocs.yaml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
site_name: 'RIO Kafka backup documentation'
|
|
2
|
-
|
|
3
|
-
nav:
|
|
4
|
-
- "User Guide": index.md
|
|
5
|
-
- "Developer Guide": developers-readme.md
|
|
6
|
-
- "API Docs": API.md
|
|
7
|
-
- "Changelog": changelog.md
|
|
8
|
-
- "CDK v1 Migration Guide": migration_guide.md
|
|
9
|
-
- "Contribution": contribution.md
|
|
10
|
-
|
|
11
|
-
plugins:
|
|
12
|
-
- techdocs-core
|
package/release-commit-check.js
DELETED
package/scripts/publish.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ts-node
|
|
2
|
-
import { spawnSync } from 'child_process';
|
|
3
|
-
import { readFileSync } from 'fs';
|
|
4
|
-
import path from 'path';
|
|
5
|
-
|
|
6
|
-
const PACKAGE_NAME = '@rio-cloud/cdk-v2-constructs';
|
|
7
|
-
const PACKAGE_JSON_PATH = path.resolve(__dirname, '..', 'package.json');
|
|
8
|
-
|
|
9
|
-
function run(command: string, args: string[], inheritOutput = true): number {
|
|
10
|
-
const result = spawnSync(command, args, { stdio: inheritOutput ? 'inherit' : 'ignore' });
|
|
11
|
-
if (result.error) {
|
|
12
|
-
throw result.error;
|
|
13
|
-
}
|
|
14
|
-
return result.status ?? 1;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function ensureTaggedCommit(): void {
|
|
18
|
-
const status = run('git', ['describe', '--tags', '--exact-match', 'HEAD'], false);
|
|
19
|
-
if (status !== 0) {
|
|
20
|
-
console.log('No tag found; skipping publish');
|
|
21
|
-
process.exit(0);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function getPackageVersion(): string {
|
|
26
|
-
const pkg = JSON.parse(readFileSync(PACKAGE_JSON_PATH, 'utf8')) as { version?: string };
|
|
27
|
-
if (!pkg.version) {
|
|
28
|
-
throw new Error('package.json must contain a version');
|
|
29
|
-
}
|
|
30
|
-
return pkg.version;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function ensureVersionNotPublished(version: string): void {
|
|
34
|
-
const status = run('npm', ['view', `${PACKAGE_NAME}@${version}`, 'version'], false);
|
|
35
|
-
if (status === 0) {
|
|
36
|
-
console.log(`✅ Version ${version} already exists, skipping publish`);
|
|
37
|
-
process.exit(0);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function publish(version: string): void {
|
|
42
|
-
console.log(`🚀 Publishing ${PACKAGE_NAME}@${version}`);
|
|
43
|
-
const status = run('npm', ['publish', '--access', 'public']);
|
|
44
|
-
if (status !== 0) {
|
|
45
|
-
console.error('npm publish failed. You might need to create a new token on npmjs.com');
|
|
46
|
-
process.exit(status);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function main(): void {
|
|
51
|
-
ensureTaggedCommit();
|
|
52
|
-
const version = getPackageVersion();
|
|
53
|
-
ensureVersionNotPublished(version);
|
|
54
|
-
publish(version);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
main();
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ts-node
|
|
2
|
-
import { readFileSync, writeFileSync } from 'fs';
|
|
3
|
-
import path from 'path';
|
|
4
|
-
|
|
5
|
-
const rootDir = path.resolve(__dirname, '..');
|
|
6
|
-
const versionFile = path.join(rootDir, 'version.json');
|
|
7
|
-
const packageFile = path.join(rootDir, 'package.json');
|
|
8
|
-
|
|
9
|
-
type VersionFile = {
|
|
10
|
-
version?: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
function main(): void {
|
|
14
|
-
const { version } = JSON.parse(readFileSync(versionFile, 'utf8')) as VersionFile;
|
|
15
|
-
if (!version) {
|
|
16
|
-
throw new Error('version.json must contain a version field');
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const pkg = JSON.parse(readFileSync(packageFile, 'utf8')) as Record<string, unknown>;
|
|
20
|
-
const updated = { ...pkg, version };
|
|
21
|
-
writeFileSync(packageFile, `${JSON.stringify(updated, null, 2)}\n`, 'utf8');
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
main();
|