Skip to content

Commit 5ecddea

Browse files
committed
chore(maintenance): remove createLogger and createTracer helpers (#1722)
* chore(maintenance): bump dependencies & drop nodejs14x (#1687) * chore: add pre-release script * chore: restore deps * chore: added v2 shim * chore(maintenance): remove logger and tracer helper function * chore: remove imports * chore: fix deps & versions * tests: moved unit tests * tests: move logger tests * chore: added v2 shim * chore: added v2 shim
1 parent ef38be5 commit 5ecddea

File tree

12 files changed

+19342
-18190
lines changed

12 files changed

+19342
-18190
lines changed

Diff for: .github/scripts/release_patch_package_json.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ const betaPackages = [];
5858
let version = originalVersion;
5959
// If the package is an alpha or beta package, update the version number to include a suffix
6060
if (alphaPackages.includes(name)) {
61-
version = `${version}-alpha`;
61+
const iteration = JSON.parse(
62+
readFileSync(resolve('..', '..', 'v2.json'), 'utf8')
63+
).iteration;
64+
version = `${version}-alpha.${iteration}`;
6265
} else if (betaPackages.includes(name)) {
6366
version = `${version}-beta`;
6467
}
@@ -81,6 +84,9 @@ const betaPackages = [];
8184
types,
8285
files,
8386
type,
87+
scripts: {
88+
postinstall: `echo 'WARNING: This is a pre-release version of Powertools for AWS (TypeScript) provided for evaluation only. Do not use in production.'`,
89+
},
8490
};
8591

8692
// Not all utilities have these fields, so only add them if they exist to avoid

Diff for: docs/snippets/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docs",
3-
"version": "1.13.1",
3+
"version": "1.14.0",
44
"description": "A collection code snippets for the Powertools for AWS Lambda (TypeScript) docs",
55
"author": {
66
"name": "Amazon Web Services",
@@ -39,4 +39,4 @@
3939
"axios": "^1.6.7",
4040
"hashi-vault-js": "^0.4.14"
4141
}
42-
}
42+
}

0 commit comments

Comments
 (0)