Brian C
940479bc4b
Add esm exports ( #3423 )
...
* build: add esm exports
* fix: add defaults as per arethetypeswrong report
* fix: add missing types
* lint
* Fix broken tests
* Add (failing) test for esm compat
* Begin moving files to proper extension and adding tests
* Add tests for connection-string and fix cloudflare module type and esm compat
* Add query-stream and cursor as esm exports
* Update PR copilot review
* Publish
- pg-cloudflare@1.1.2-alpha.0
- pg-connection-string@2.7.1-alpha.0
- pg-cursor@2.13.2-alpha.0
- pg-esm-test@1.0.1-alpha.0
- pg-native@3.3.1-alpha.0
- pg-pool@3.8.1-alpha.0
- pg-protocol@1.8.1-alpha.0
- pg-query-stream@4.8.2-alpha.0
- pg@8.14.2-alpha.0
* More cf compat work
* Publish
- pg-cloudflare@1.1.2-alpha.1
- pg-cursor@2.13.2-alpha.1
- pg-esm-test@1.0.1-alpha.1
- pg-pool@3.8.1-alpha.1
- pg-query-stream@4.8.2-alpha.1
- pg@8.14.2-alpha.1
* Add more cf compat and update tests
* Make tests pass - update exports for esm
* Use env vars for test connection in cf tests
* Fix lint
* Fit vitest into existing legacy framework
* Skip worker tests on node below 18
* Revert doc changes for now
* Remove legacy worker test in favor of vitest
---------
Co-authored-by: Luca Ban <mesqueeb@users.noreply.github.com>
2025-04-22 10:53:22 -05:00
Marcin K
78a14a164d
feat(): pg-query-stream typescript ( #2376 )
...
* feat(): start converting pg-query stream
* feat(): solution project, initial version of typescript-pg-query stream
* chore(): mocha with typescript
* fix(): eslint ignore query stream dist
* refactor(pg-query-stream): convert test to ts
* chore(): fixed type errors
* chore(): fix helper usage
* chore(): use ts-node compatibile with node v8
* fix(): addd es extension
* chore(): remove emitClose and added compilation for async iterators
* chore(): condition for asyc iteration test
* chore(): rename class to match ts-defs
* chore(): tests to import from src instead of dist
* chore(): remove prettier from peer deps:
* chore(): update lock file
2020-11-03 11:17:49 -06:00
Brian C
3ff91eaa32
Decouple serializing messages w/ writing them to socket ( #2155 )
...
* Move message writing to typescript lib
* Write more tests, cleanup code to some extent
* Rename package to something more representing its name
* Remove unused code
* Small tweaks based on microbenchmarks
* Rename w/o underscore
2020-04-09 12:28:19 -05:00