Brian Carlson
9ec9e5f58d
Publish
...
- pg-cloudflare@1.2.0
- pg-connection-string@2.8.0
- pg-cursor@2.14.0
- pg-esm-test@1.1.0
- pg-native@3.4.0
- pg-pool@3.9.0
- pg-protocol@1.9.0
- pg-query-stream@4.9.0
- pg@8.15.0
2025-04-22 10:55:24 -05:00
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
Alex Anderson
9b510373a6
eslint: enable recommended ruleset ( #3263 )
2025-04-12 08:17:33 +00:00
Brendan Irvine-Broque
5c846ca06e
Clarify usage and update readme ( #3114 )
...
refs https://github.com/Ethan-Arrowood/socket/pull/17
@petebacondarwin @brianc — publishing `pg-cloudflare` as a separate package seems to be really helpful to people. Ex:
https://github.com/sidorares/node-mysql2/pull/2289/files#diff-e56fabfb5e90fd8f6265cfbe84f3701a85261d884e198bf61de34958cee4864aR12
Added some docs to clarify usage, and cross link to the Node.js implementation of the Socket API.
Co-authored-by: Brian Carlson <brian.m.carlson@gmail.com>
2024-06-04 11:49:30 -05:00
Brian Carlson
eaafac36dc
Publish
...
- pg-cloudflare@1.1.1
- pg-connection-string@2.6.1
- pg-cursor@2.10.1
- pg-pool@3.6.1
- pg-query-stream@4.5.1
- pg@8.11.1
2023-06-26 11:36:32 -05:00
Pete Bacon Darwin
0dfd955be5
fix: ensure that pg-cloudflare can be used with bundlers that don't know about Cloudflare sockets ( #2978 )
...
By implementing package.json `exports` we can avoid processing the Cloudflare
specific code, which contains `import ... from "cloudflare:sockets"`, in bundlers such
as Webpack.
If you are bundling for a Worker environment using Webpack then you need to add the
`workerd` condition and ignore `cloudflare:sockets` imports:
**webpack.config.js**
```js
resolve: { conditionNames: ["require", "node", "workerd"] },
plugins: [
new webpack.IgnorePlugin({
resourceRegExp: /^cloudflare:sockets$/,
}),
],
```
2023-05-31 11:25:56 -05:00
Brian Carlson
14b840e96e
Publish
...
- pg-cloudflare@1.1.0
- pg-connection-string@2.6.0
- pg-cursor@2.10.0
- pg-query-stream@4.5.0
- pg@8.11.0
2023-05-15 10:36:31 -05:00
Pete Bacon Darwin
07553428e9
Add Cloudflare Worker compatible socket
2023-05-15 07:29:07 +01:00