-
Notifications
You must be signed in to change notification settings - Fork 8
chore(build-info): move and migrate to TypeScript #581
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
Conversation
387fc57 to
cb3cb2c
Compare
| serverOs: string | null; | ||
| serverArch: string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type declarations didn't include null but the implementation could return it: https://github.com/mongodb-js/mongodb-build-info/blob/cbdfb4ad0bf4e3bfc818cf9e5197ea7345032f72/index.d.ts#L20-L21
This is technically a breaking change, which is fine as I expect to release a major version next 🤞
|
|
||
| export function getDataLake(buildInfo: unknown): { | ||
| isDataLake: boolean; | ||
| dlVersion: string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Introducing null here to match the former implementation.
This is technically a breaking change, which is fine as I expect to release a major version next 🤞
| export const COSMOSDB_BUILD_INFO = { | ||
| _t: 'BuildInfoResponse', | ||
| ok: 1, | ||
| version: '3.2.0', | ||
| gitVersion: '45d947729a0315accb6d4f15a6b06be6d9c19fe7', | ||
| targetMinOS: 'Windows 7/Windows Server 2008 R2', | ||
| modules: [], | ||
| allocator: 'tcmalloc', | ||
| javascriptEngine: 'Chakra', | ||
| sysInfo: 'deprecated', | ||
| versionArray: [3, 2, 0, 0], | ||
| bits: 64, | ||
| debug: false, | ||
| maxBsonObjectSize: 524288, | ||
| openssl: { | ||
| running: 'OpenSSL 1.0.1p-fips 9 Jul 2015', | ||
| compiled: 'OpenSSL 1.0.1p-fips 9 Jul 2015', | ||
| }, | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be deleted as it's not used in the test 🤔
cb3cb2c to
083fe4b
Compare
Description
As preparation for COMPASS-9930 I suggest moving the mongodb-build-info package into our shared devtools monorepo and migrate the package to TypeScript in the process.
Once merged, we should archive the original repo.
Open Questions
Checklist