Skip to content

Commit

Permalink
chore(maintenance): remove createLogger and createTracer helpers (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
dreamorosi authored Oct 2, 2023
1 parent 701e877 commit 50aa3e7
Show file tree
Hide file tree
Showing 12 changed files with 1,572 additions and 2,134 deletions.
8 changes: 7 additions & 1 deletion .github/scripts/release_patch_package_json.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ const betaPackages = [];
let version = originalVersion;
// If the package is an alpha or beta package, update the version number to include a suffix
if (alphaPackages.includes(name)) {
version = `${version}-alpha`;
const iteration = JSON.parse(
readFileSync(resolve('..', '..', 'v2.json'), 'utf8')
).iteration;
version = `${version}-alpha.${iteration}`;
} else if (betaPackages.includes(name)) {
version = `${version}-beta`;
}
Expand All @@ -81,6 +84,9 @@ const betaPackages = [];
types,
files,
type,
scripts: {
postinstall: `echo 'WARNING: This is a pre-release version of Powertools for AWS (TypeScript) provided for evaluation only. Do not use in production.'`,
},
};

// Not all utilities have these fields, so only add them if they exist to avoid
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "1.13.1",
"version": "1.14.0",
"description": "A collection code snippets for the Powertools for AWS Lambda (TypeScript) docs",
"author": {
"name": "Amazon Web Services",
Expand Down Expand Up @@ -39,4 +39,4 @@
"axios": "^1.5.0",
"hashi-vault-js": "^0.4.14"
}
}
}
2,070 changes: 821 additions & 1,249 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions packages/logger/src/helpers.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/logger/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './helpers';
export * from './Logger';
export * from './middleware';
export * from './formatter';
Loading

0 comments on commit 50aa3e7

Please sign in to comment.