-
-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make PgServiceConfiguration.adaptor an adaptor instance, not path (#1985
- Loading branch information
Showing
14 changed files
with
187 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
"graphile-build-pg": patch | ||
"postgraphile": patch | ||
"@dataplan/pg": patch | ||
--- | ||
|
||
🚨 PostgreSQL adaptor is no longer loaded via string value; instead you must | ||
pass the adaptor instance directly. If you have | ||
`adaptor: "@dataplan/pg/adaptors/pg"` then replace it with | ||
`adaptor: await import("@dataplan/pg/adaptors/pg")`. (This shouldn't cause you | ||
issues because you _should_ be using `makePgService` to construct your | ||
`pgServices` rather than building raw objects.) | ||
|
||
🚨 If you've implemented a custom PgAdaptor, talk to Benjie about how to port | ||
it. (Should be straightforward, but no point me figuring it out if no-one has | ||
done it yet 🤷) | ||
|
||
This change improves bundle-ability by reducing the number of dynamic imports. | ||
|
||
Also: `PgAdaptorOptions` has been renamed to `PgAdaptorSettings`, so please do a | ||
global find and replace for that. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.