Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency typescript to v5.7.2 #2486

Merged
merged 6 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 21 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,41 @@ jobs:
- restore_cache:
keys:
# when lock file changes, use increasingly general patterns to restore cache
- yarn-packages-v2-{{ .Branch }}-{{ checksum "yarn.lock" }}
- yarn-packages-v2-{{ .Branch }}-
- yarn-packages-v2-
- yarn-packages-v3-{{ .Branch }}-{{ checksum "yarn.lock" }}
- yarn-packages-v3-{{ .Branch }}-
- yarn-packages-v3-
- run:
name: Install Dependencies
command: yarn --frozen-lockfile --cache-folder ~/.cache/yarn
command: yarn install --immutable
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-v3-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
key: yarn-packages-v2-{{ .Branch }}-{{ checksum "yarn.lock" }}
- node_modules
- .yarn/cache
- .yarn/unplugged
- persist_to_workspace:
root: ~/repo
paths:
- .eslintignore
- .eslintrc.js
- .git/*
- .npmrc
- .nycrc
- .nyc_output/*
- test/mocha.opts
- scripts/*
- .nycrc
- .yarn/releases/yarn-4.5.3.cjs
- .yarn/plugins/*
- .yarnclean
- .yarnrc.yml
- lerna.json
- node_modules/*
- packages/*
- package.json
- packages/*
- README.md
- scripts/*
- test/mocha.opts
- tsconfig.json
- lerna.json
- .eslintignore
- .eslintrc.js
- .yarnrc
- yarn.lock
build:
<<: *defaults
steps:
Expand Down
Binary file added .yarn/install-state.gz
Binary file not shown.
934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.5.3.cjs

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions .yarnclean
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# test directories
__tests__
powered-test

# asset directories
docs
doc
website
images
outputs
coverage
api

# examples
example
examples

# code coverage directories
coverage
.nyc_output

# build scripts
Makefile
Gulpfile.js
Gruntfile.js

# configs
.tern-project
.gitattributes
.editorconfig
.*ignore
.eslintrc
.jshintrc
.flowconfig
.documentup.json
.yarn-metadata.json
.*.yml
*.yml

# misc
*.gz
*.md
2 changes: 0 additions & 2 deletions .yarnrc

This file was deleted.

5 changes: 5 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
defaultSemverRangePrefix: ""

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.3.cjs
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
"license-check": "license-checker --production --start './packages/stentor/' --exclude ISC,MIT,Apache-2.0,BSD-3-Clause,BSD-2-Clause --failOn GPL-3.0",
"version-check": "syncpack list-mismatches --types dev,prod --filter 'stentor-'",
"version-check:all": "syncpack list-mismatches --types dev,prod"
}
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/stentor-channel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"sinon-chai": "3.7.0",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"@xapp/patterns": "2.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-conditional/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"isolated-vm": "5.0.3",
"mocha": "11.0.1",
"stentor-models": "1.59.144",
"typescript": "5.5.4",
"typescript": "5.7.2",
"vm2": "3.9.19"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"devDependencies": {
"@xapp/config": "0.2.3",
"stentor-models": "1.59.144",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"peerDependencies": {
"stentor-models": "1.x"
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"sinon-chai": "3.7.0",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"@xapp/patterns": "2.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-determiner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"sinon-chai": "3.7.0",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"jsonpath-plus": "10.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-guards/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"sinon-chai": "3.7.0",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"stentor-constants": "1.59.144"
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-handler-delegating/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"chai": "4.5.0",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"stentor-handler": "1.59.145",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-handler-factory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"stentor-models": "1.59.144",
"stentor-request": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"stentor-constants": "1.59.144",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-handler-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"stentor-models": "1.59.144",
"stentor-request": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"stentor-guards": "1.59.144",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"stentor-models": "1.59.144",
"stentor-request": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"@xapp/patterns": "2.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-history/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"sinon": "19.0.2",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"peerDependencies": {
"stentor-models": "1.x"
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-interaction-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"mocha": "11.0.1",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"stentor-constants": "1.59.144",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-locales/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"mocha": "11.0.1",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"stentor-utils": "1.59.144"
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"sinon-chai": "3.7.0",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"chalk": "4.1.2",
Expand Down
37 changes: 20 additions & 17 deletions packages/stentor-logger/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,27 @@ export function redact(info: TransformableInfo): TransformableInfo {
}

// Make a copy so we don't modify the original
const copy = { ...info };
const copy: TransformableInfo = { ...info };

let partial = process.env.OVAI_LOG_PII_MASK_PARTIAL === "true";
if (partial) {
console.warn(`OVAI_LOG_PII_MASK_PARTIAL is now deprecated, please update to use STENTOR_LOG_PII_MASK_PARTIAL instead.`)
}
// Override the deprecated one if the real one exists.
if (process.env.STENTOR_LOG_PII_MASK_PARTIAL) {
partial = process.env.STENTOR_LOG_PII_MASK_PARTIAL === "true";
}

let message: unknown = copy.message;

let message = copy.message;
if (typeof message === "string") {
let partial = process.env.OVAI_LOG_PII_MASK_PARTIAL === "true";
if (partial) {
console.warn(`OVAI_LOG_PII_MASK_PARTIAL is now deprecated, please update to use STENTOR_LOG_PII_MASK_PARTIAL instead.`)
}
// Override the deprecated one if the real one exists.
if (process.env.STENTOR_LOG_PII_MASK_PARTIAL) {
partial = process.env.STENTOR_LOG_PII_MASK_PARTIAL === "true";
}
message = maskEmails(message, partial);
message = maskPhoneNumbers(message, partial);

const emailsMasked: string = maskEmails(message, partial);
message = maskPhoneNumbers(emailsMasked, partial);
} else if (typeof message === "object") {
let asString = JSON.stringify(copy.message);
asString = maskEmails(asString);
asString = maskPhoneNumbers(asString);
let asString = JSON.stringify(message);
const emailsMasked = maskEmails(asString, partial);
asString = maskPhoneNumbers(emailsMasked, partial);
try {
message = JSON.parse(asString);
} catch (e) {
Expand Down Expand Up @@ -93,7 +96,7 @@ export function log(): Logger {
format.prettyPrint(),
format.splat(),
format.timestamp(),
format.printf(info => {
format.printf((info) => {

if (info.message && info.message.constructor === Object) {
// for AWS, if you pretty print then it takes up new lines in CloudWatch, which pollutes
Expand Down Expand Up @@ -128,7 +131,7 @@ export function log(): Logger {
if (isOnAWSLambda()) {
// CloudWatch automatically includes the timestamp, it isn't needed
return `${lead}|${info.message}`;
} else {
} else if (typeof info.timestamp === "string") {
// outside, just print the time mm
const time = new Date(info.timestamp).toLocaleTimeString([], {
minute: '2-digit',
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-media/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"mocha": "11.0.1",
"sinon": "19.0.2",
"stentor-models": "1.59.144",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"stentor-guards": "1.59.144",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-models/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@xapp/config": "0.2.3",
"rollup": "3.29.5",
"tslib": "2.8.1",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"scripts": {
"api": "api-extractor run --local",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"stentor-models": "1.59.144",
"stentor-storage": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"@xapp/patterns": "2.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-response/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"sinon-chai": "3.7.0",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"@xapp/patterns": "2.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"stentor-models": "1.59.144",
"stentor-request": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"stentor-constants": "1.59.144",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-service-event/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"sinon-chai": "3.7.0",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"stacktrace-parser": "0.1.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-service-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"chai-as-promised": "7.1.2",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"abort-controller": "3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-service-ovai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"mocha": "11.0.1",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"isomorphic-fetch": "3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-service-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"mocha": "11.0.1",
"stentor-models": "1.59.144",
"ts-node": "10.9.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"isomorphic-fetch": "3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/stentor-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@xapp/config": "0.2.3",
"chai": "4.5.0",
"stentor-models": "1.59.144",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"dependencies": {
"jsonpath-plus": "10.2.0",
Expand Down
Loading
Loading