Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baileympearson/explicit-resource-management-demo
https://github.com/baileympearson/explicit-resource-management-demo
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/baileympearson/explicit-resource-management-demo
- Owner: baileympearson
- Created: 2024-07-09T18:04:16.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T20:08:26.000Z (6 months ago)
- Last Synced: 2024-07-10T23:19:29.149Z (6 months ago)
- Language: TypeScript
- Size: 1.95 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
This package contains a number of examples of explicit resource management with the driver.
mongodb-6.8.0.tgz contains a POC implementation of explicit resource management in the driver and is
used throughout this repo.## installing dependencies
1. make sure you have `npx` installed
2. `npx lerna exec npm i`## running each example
#### all together
`npx lerna exec npm run run --stream --concurrency 1`
#### one at a time
`npx lerna exec npm run run --scope @test/`
## breakdown of packages
`latest-node-types` contains an example using tslib helpers, explicit resource management, latest Typescript and latest node types
`oldest-node-types` uses latest TS, tslib, explicit resource management with an old version of node types
`no-resource-management-enabled` uses TS 4.5, no tslib, no explicit resource management and the updated driver to demonstrate
that the driver's changes don't break compatibility