Skip to content

Latest commit

History

History
1419 lines (1098 loc) 路 60.9 KB

CHANGELOG.md

File metadata and controls

1419 lines (1098 loc) 路 60.9 KB

@dataplan/pg

0.0.1-beta.22

Patch Changes

  • #2071 582bd768f Thanks @benjie! - GrafastExecutionArgs now accepts resolvedPreset and requestContext directly; passing these through additional arguments is now deprecated and support will be removed in a future revision. This affects:

    • grafast()
    • execute()
    • subscribe()
    • hookArgs()

    graphile-config has gained a middleware system which is more powerful than it's AsyncHooks system. Old hooks can be emulated through the middleware system safely since middleware is a superset of hooks' capabilities. applyHooks has been renamed to orderedApply (because it applies to more than just hooks), calling applyHooks will still work but is deprecated.

    馃毃 grafast no longer automatically reads your graphile.config.ts or similar; you must do that yourself and pass the resolvedPreset to grafast via the args. This is to aid in bundling of grafast since it should not need to read from filesystem or dynamically load modules.

    grafast no longer outputs performance warning when you set GRAPHILE_ENV=development.

    馃毃 plugin.grafast.hooks.args is now plugin.grafast.middleware.prepareArgs, and the signature has changed - you must be sure to call the next() function and ctx/resolvedPreset can be extracted directly from args:

     const plugin = {
       grafast: {
    -    hooks: {
    +    middleware: {
    -      args({ args, ctx, resolvedPreset }) {
    +      prepareArgs(next, { args }) {
    +        const { requestContext: ctx, resolvedPreset } = args;
             // ...
    +        return next();
           }
         }
       }
     }

    Many more middleware have been added; use TypeScript's autocomplete to see what's available until we have proper documentation for them.

    plugin.grafserv.hooks.* are still supported but deprecated; instead use middleware plugin.grafserv.middleware.* (note that call signatures have changed slightly, similar to the diff above):

    • hooks.init -> middleware.setPreset
    • hooks.processGraphQLRequestBody -> middleware.processGraphQLRequestBody
    • hooks.ruruHTMLParts -> middleware.ruruHTMLParts

    A few TypeScript types related to Hooks have been renamed, but their old names are still available, just deprecated. They will be removed in a future update:

    • HookObject -> FunctionalityObject
    • PluginHook -> CallbackOrDescriptor
    • PluginHookObject -> CallbackDescriptor
    • PluginHookCallback -> UnwrapCallback
  • Updated dependencies [582bd768f]:

    • graphile-config@0.0.1-beta.9
    • grafast@0.1.1-beta.11
    • @dataplan/json@0.0.1-beta.20

0.0.1-beta.21

Patch Changes

0.0.1-beta.20

Patch Changes

  • Updated dependencies [437570f97]:
    • grafast@0.1.1-beta.9
    • @dataplan/json@0.0.1-beta.18

0.0.1-beta.19

Patch Changes

  • Updated dependencies [bd5a908a4]:
    • grafast@0.1.1-beta.8
    • @dataplan/json@0.0.1-beta.17

0.0.1-beta.18

Patch Changes

0.0.1-beta.17

Patch Changes

  • #1945 9f85c614d Thanks @benjie! - Mark ExecutableStep::getDep as protected to avoid abuse.

  • #1955 6c6be29f1 Thanks @benjie! - Steps are now prevented from calling other steps' lifecycle methods. GRAPHILE_ENV is actively encouraged, and falls back to NODE_ENV.

  • #1944 6c80c44b7 Thanks @benjie! - Fix accidental double-encoding of values on their way to postgres.

  • #1958 8315e8d01 Thanks @benjie! - EXPORTABLE now accepts a third argument, nameHint, which is used to hint what variable name to use for the given value. Used this in graphile-export along with some fixes and optimizations to improve the exports further.

  • Updated dependencies [9f85c614d, 6c6be29f1, 8315e8d01]:

    • grafast@0.1.1-beta.6
    • @dataplan/json@0.0.1-beta.15

0.0.1-beta.16

Patch Changes

  • #1924 ef44c29b2 Thanks @benjie! - 馃毃 TypeScript is now configured to hide interfaces marked as @internal. This may result in a few errors where you're accessing things you oughtn't be, but also may hide some interfaces that should be exposed - please file an issue if an API you were dependent on has been removed from the TypeScript typings. If that API happens to be step.dependencies; you should first read this: https://benjie.dev/graphql/ancestors
  • Updated dependencies [63dd7ea99, d801c9778, ef44c29b2, 5de3e86eb]:
    • grafast@0.1.1-beta.5
    • @dataplan/json@0.0.1-beta.14
    • pg-sql2@5.0.0-beta.5
    • graphile-config@0.0.1-beta.7

0.0.1-beta.15

Patch Changes

0.0.1-beta.14

Patch Changes

  • Updated dependencies [0df5511ac]:
    • graphile-config@0.0.1-beta.6
    • grafast@0.1.1-beta.3
    • @dataplan/json@0.0.1-beta.12

0.0.1-beta.13

Patch Changes

  • #1817 f305c3278 Thanks @benjie! - Add support for limiting polymorphic plans (only some of them, specifically pgUnionAll() right now) to limit the types of their results; exposed via an experimental 'only' argument on fields, for example allApplications(only: [GcpApplication, AwsApplication]) would limit the type of applications returned to only be the two specified.

  • #1877 8a0cdb95f Thanks @benjie! - Move 'declare global' out of 'interfaces.ts' and into 'index.ts' or equivalent. Should make TypeScript more aware of these types.

  • #1879 dbd91fdd8 Thanks @benjie! - Move PgContextPlugin from graphile-build-pg into @dataplan/pg so it can be used after schema export without needing dependency on graphile-build-pg

  • #1884 c66c3527c Thanks @benjie! - List codecs can now have names.

  • Updated dependencies [3fdc2bce4, aeef362b5, 8a76db07f, 8a0cdb95f, 1c9f1c0ed]:

    • grafast@0.1.1-beta.2
    • graphile-config@0.0.1-beta.5
    • @dataplan/json@0.0.1-beta.11

0.0.1-beta.12

Patch Changes

  • Updated dependencies [49fcb0d58, 7aef73319]:
    • grafast@0.1.1-beta.1
    • graphile-config@0.0.1-beta.4
    • @dataplan/json@0.0.1-beta.10

0.0.1-beta.11

Patch Changes

0.0.1-beta.10

Patch Changes

  • Updated dependencies [2805edc68]:
    • pg-sql2@5.0.0-beta.4
    • grafast@0.1.1-beta.0

0.0.1-beta.9

Patch Changes

  • #1778 b2bce88da Thanks @benjie! - Enable source maps in modules where it was disabled.

  • #1770 9a84bc6dd Thanks @benjie! - Fix issues around enum tables: indicate when an enum table codec replaces a regular attribute codec, expose helpers for working with enum tables, and don't exclude enum table references when using the Relay preset.

  • Updated dependencies [4a4d26d87, b2bce88da, 861a8a306]:

    • grafast@0.1.1-beta.0
    • @dataplan/json@0.0.1-beta.9

0.0.1-beta.8

Patch Changes

0.0.1-beta.7

Patch Changes

  • Updated dependencies [3700e204f]:
    • grafast@0.0.1-beta.7
    • @dataplan/json@0.0.1-beta.7

0.0.1-beta.6

Patch Changes

  • #496 c9bfd9892 Thanks @benjie! - Update dependencies (sometimes through major versions).

  • Updated dependencies [c9bfd9892, e613b476d]:

    • @dataplan/json@0.0.1-beta.6
    • graphile-config@0.0.1-beta.2
    • grafast@0.0.1-beta.6
    • pg-sql2@5.0.0-beta.2
    • @graphile/lru@5.0.0-beta.2

0.0.1-beta.5

Patch Changes

  • #488 95e902f54 Thanks @benjie! - Don't try and inline a query when it includes an inner join (unsafe).

  • Updated dependencies [53186213a]:

    • grafast@0.0.1-beta.5
    • @dataplan/json@0.0.1-beta.5

0.0.1-beta.4

Patch Changes

  • #462 53f0488b1 Thanks @benjie! - Allow 'null' to be passed to withPgClient/withPgClientTransaction

  • #464 00d026409 Thanks @benjie! - @dataplan/pg/adaptors/pg now adds rawClient property which is the underlying Postgres client for use with pgTyped, zapatos, and other libraries that can use a raw postgres client. This is exposed via NodePostgresPgClient interface which is a subtype of PgClient.

  • Updated dependencies [f9cc88dc4]:

    • grafast@0.0.1-beta.4
    • @dataplan/json@0.0.1-beta.4

0.0.1-beta.3

Patch Changes

  • #452 d3ab4e12d Thanks @benjie! - Improve error messages with links to more details.

  • Updated dependencies [46cd08aa1]:

    • grafast@0.0.1-beta.3
    • @dataplan/json@0.0.1-beta.3

0.0.1-beta.2

Patch Changes

  • Updated dependencies [23bd3c291]:
    • grafast@0.0.1-beta.2
    • @dataplan/json@0.0.1-beta.2

0.0.1-beta.1

Patch Changes

  • cbd987385 Thanks @benjie! - Bump all packages to beta

  • Updated dependencies [cbd987385]:

    • @dataplan/json@0.0.1-beta.1
    • grafast@0.0.1-beta.1
    • graphile-config@0.0.1-beta.1
    • @graphile/lru@5.0.0-beta.1
    • pg-sql2@5.0.0-beta.1

0.0.1-alpha.17

Patch Changes

  • #441 dfefdad3c Thanks @benjie! - Change bundling techniques for grafast and @dataplan/pg

  • Updated dependencies [dfefdad3c]:

    • grafast@0.0.1-alpha.16
    • @dataplan/json@0.0.1-alpha.16

0.0.1-alpha.16

Patch Changes

  • #435 cf32f0397 Thanks @benjie! - Fix bug in listOfCodec causing wrong extensions to be used in non-deterministic manner (thanks to @jvandermey for finding the bug and helping to track it down).

  • #422 9f87a26b1 Thanks @benjie! - Comments enabled in released packages

  • Updated dependencies [ea003ca3a, 57d88b5fa, a22830b2f, 9f87a26b1]:

    • grafast@0.0.1-alpha.15
    • graphile-config@0.0.1-alpha.7
    • @dataplan/json@0.0.1-alpha.15

0.0.1-alpha.15

Patch Changes

  • Updated dependencies [d99d666fb]:
    • grafast@0.0.1-alpha.14
    • @dataplan/json@0.0.1-alpha.14

0.0.1-alpha.14

Patch Changes

0.0.1-alpha.13

Patch Changes

  • #407 9281a2d88 Thanks @benjie! - Exported version no longer uses require('../package.json') hack, instead the version number is written to a source file at versioning time. Packages now export version.

  • #408 675b7abb9 Thanks @benjie! - inspect() fallback function updated

  • #406 51414d328 Thanks @benjie! - Add support for bytea datatype using new Base64EncodedBinary scalar in GraphQL.

  • #408 bc14d488d Thanks @benjie! - When sorting, specify a concrete locale to localeCompare to ensure stable ordering across machines.

  • Updated dependencies [9281a2d88, 675b7abb9, c5050dd28, 0d1782869]:

    • grafast@0.0.1-alpha.12
    • graphile-config@0.0.1-alpha.6
    • @dataplan/json@0.0.1-alpha.12

0.0.1-alpha.12

Patch Changes

  • Updated dependencies [644938276]:
    • graphile-config@0.0.1-alpha.5
    • grafast@0.0.1-alpha.11
    • @dataplan/json@0.0.1-alpha.11

0.0.1-alpha.11

Patch Changes

  • #396 659508371 Thanks @benjie! - List and range codecs now use the underlying codec to parse values from Postgres.

  • #399 409581534 Thanks @benjie! - Change many of the dependencies to be instead (or also) peerDependencies, to avoid duplicate modules.

  • #372 4d64ac127 Thanks @benjie! - Remove pgSelectSingle.expression; use the equivalent method pgSelectSingle.select instead.

  • #396 17fe531d7 Thanks @benjie! - pgUnionAll uses a slightly more optimal SQL (where JSON isn't cast to ::text and then back to ::json)

  • #398 b7533bd4d Thanks @benjie! - Incremental delivery will no longer deliver payloads for paths that don't exist when an error is thrown in an output plan.

  • #396 56b52295c Thanks @benjie! - pgUnionAll can now specify a name, making the SQL and query plan easier to read.

  • #396 b5eb7c490 Thanks @benjie! - Cursor pagination over nullable columns should now work, although it is untested.

  • #396 7573bf374 Thanks @benjie! - Address a decent number of TODO/FIXME/etc comments in the codebase.

  • #378 95b2ab41e Thanks @benjie! - Support for nested arrays via PostgreSQL domains.

  • #398 c43802d74 Thanks @benjie! - Fix a number of issues relating to incremental delivery and iterators

  • #398 b118b8f6d Thanks @benjie! - Incremental delivery @stream now works for regular steps as well as streamable steps.

  • #396 b66d2503b Thanks @benjie! - hasNextPage (via hasMore) now uses an access plan rather than a lambda plan.

  • #396 3caaced6c Thanks @benjie! - When fetching a single row, an ORDER BY clause will no longer be added.

  • #396 9f2507ed9 Thanks @benjie! - Codecs can now (optionally) have executors associated (typically useful for record codecs); so we've eradicated runtime resource definition for columns that use composite types (or lists thereof) - all composite types accessible from attributes are now guaranteed to have a table-like resource generated in the registry.

  • Updated dependencies [409581534, b7533bd4d, 9feb769c2, 7573bf374, 2c8586b36, c43802d74, b118b8f6d, 9008c4f87, e8c81cd20]:

    • grafast@0.0.1-alpha.10
    • @dataplan/json@0.0.1-alpha.10

0.0.1-alpha.10

Patch Changes

0.0.1-alpha.9

Patch Changes

  • Updated dependencies [dd3ef599c]:
    • grafast@0.0.1-alpha.8
    • @dataplan/json@0.0.1-alpha.8

0.0.1-alpha.8

Patch Changes

0.0.1-alpha.7

Patch Changes

  • #338 ca1526b70 Thanks @benjie! - Fix startCursor/endCursor for connections using pgUnionAll steps.

  • #338 3426b0f4a Thanks @benjie! - Fix bugs in pgUnionAll connections relating to PageInfo

  • Updated dependencies [f75926f4b]:

    • grafast@0.0.1-alpha.6
    • @dataplan/json@0.0.1-alpha.6

0.0.1-alpha.6

Patch Changes

  • Updated dependencies [86e503d78, 24822d0dc]:
    • grafast@0.0.1-alpha.5
    • @dataplan/json@0.0.1-alpha.5

0.0.1-alpha.5

Patch Changes

0.0.1-alpha.4

Patch Changes

  • f34bd5a3c Thanks @benjie! - Address dependency issues.

  • Updated dependencies [45dcf3a8f]:

    • grafast@0.0.1-alpha.4
    • @dataplan/json@0.0.1-alpha.4

0.0.1-alpha.3

Patch Changes

0.0.1-alpha.2

Patch Changes

  • Updated dependencies [3df3f1726]:
    • grafast@0.0.1-alpha.2
    • @dataplan/json@0.0.1-alpha.2

0.0.1-alpha.1

Patch Changes

0.0.1-1.3

Patch Changes

  • Updated dependencies [8d270ead3]:
    • grafast@0.0.1-1.3
    • @dataplan/json@0.0.1-1.3

0.0.1-1.2

Patch Changes

  • Updated dependencies [7dcb0e008]:
    • grafast@0.0.1-1.2
    • @dataplan/json@0.0.1-1.2

0.0.1-1.1

Patch Changes

  • #279 2df36c5a1 Thanks @benjie! - description moved out of extensions to live directly on all the relevant entities.

  • #279 a73f9c709 Thanks @benjie! - PgConnectionArgFirstLastBeforeAfterPlugin is now PgFirstLastBeforeAfterArgsPlugin (because it applies to lists as well as connections). PgInsertStep/pgInsert()/PgUpdateStep/pgUpdate()/PgDeleteStep/pgDelete() are now PgInsertSingleStep/pgInsertSingle()/PgUpdateSingleStep/pgUpdateSingle()/PgDeleteSingleStep/pgDeleteSingle() (to make space to add a future bulk API if we want to). config.schema.orderByNullsLast is now config.schema.pgOrderByNullsLast for consistency (V4 preset users are unaffected). Lots of field scopes in graphile-build-pg have been updated to incorporate field into their names.

  • #270 ef42d717c Thanks @benjie! - SQL is now generated in a slightly different way, helping PostgreSQL to optimize queries that have a batch size of 1. Also removes internal mapping code as we now simply append placeholder values rather than search and replacing a symbol (eradicates queryValuesSymbol and related hacks). If you manually issue queries through PgExecutor (extremely unlikely!) then you'll want to check out PR #270 to see the differences.

  • #260 d5312e6b9 Thanks @benjie! - TypeScript v5 is now required

  • #265 22ec50e36 Thanks @benjie! - 'extensions.graphile' is now 'extensions.grafast'

  • #259 c22dcde7b Thanks @benjie! - Renamed recordType codec factory to recordCodec. recordCodec() now only accepts a single object argument. Renamed enumType codec factory to enumCodec. enumCodec() now only accepts a single object argument. Rename listOfType to listOfCodec.

    Massive overhaul of PgTypeCodec, PgTypeColumn and PgTypeColumns generics - types should be passed through much deeper now, but if you reference any of these types directly you'll need to update your code.

  • #285 bd37be707 Thanks @benjie! - Single table inheritance no longer exposes non-shared columns via condition/order, and also only exposes the relationships on the types where they are appropriate.

  • #270 f8954fb17 Thanks @benjie! - EXPLAIN ANALYZE (for SELECT) and EXPLAIN (for other operations) support added. Currently requires DEBUG="datasource:pg:PgExecutor:explain" to be set. Publish this through all the way to Ruru.

  • #260 96b0bd14e Thanks @benjie! - PgSource has been renamed to PgResource, PgTypeCodec to PgCodec, PgEnumTypeCodec to PgEnumCodec, PgTypeColumn to PgCodecAttribute (and similar for related types/interfaces). source has been replaced by resource in various of the APIs where it relates to a PgResource.

    PgSourceBuilder is no more, instead being replaced with PgResourceOptions and being built into the final PgResource via the new makeRegistryBuilder/makeRegistry functions.

    build.input no longer contains the pgSources directly, instead build.input.pgRegistry.pgResources should be used.

    The new registry system also means that various of the hooks in the gather phase have been renamed/replaced, there's a new PgRegistryPlugin plugin in the default preset. The only plugin that uses the main method in the gather phase is now PgRegistryPlugin - if you are using the main function for Postgres-related behaviors you should consider moving your logic to hooks instead.

    Plugin ordering has changed and thus the shape of the final schema is likely to change (please use lexicographicSortSchema on your before/after schemas when comparing).

    Relationships are now from a codec to a resource, rather than from resource to resource, so all the relationship inflectors (singleRelation, singleRelationBackwards, _manyRelation, manyRelationConnection, manyRelationList) now accept different parameters ({registry, codec, relationName} instead of {source, relationaName}).

    Significant type overhaul, most generic types no longer require generics to be explicitly passed in many circumstances. PgSelectStep, PgSelectSingleStep, PgInsertStep, PgUpdateStep and PgDeleteStep now all accept the resource as their single type parameter rather than accepting the 4 generics they did previously. PgClassExpressionStep now accepts just a codec and a resource as generics. PgResource and PgCodec have gained a new TName extends string generic at the very front that is used by the registry system to massively improve continuity of the types through all the various APIs.

    Fixed various issues in schema exporting, and detect more potential issues/oversights automatically.

    Fixes an RBAC bug when using superuser role for introspection.

  • #279 fbf1da26a Thanks @benjie! - listOfCodec type signature changed: all parameters after the first are now a single config object: listOfCodec(listedCodec, extensions, typeDelim, identifier) -> listOfCodec(listedCodec, { extensions, typeDelim, identifier }).

  • #270 c564825f3 Thanks @benjie! - set jit = 'off' replaced with set jit_optimize_above_cost = -1 so that JIT can still be used but heavy optimization costs are not incurred.

  • #271 261eb520b Thanks @benjie! - 馃毃 RENAME ALL THE THINGS

    The term 'source' was overloaded, and 'configs' was too vague, and 'databaseName' was misleading, and 'source' behaviours actually applied to resources, and more. So, we've renamed lots of things as part of the API stabilization work. You're probably only affected by the first 2 bullet points.

    • pgConfigs -> pgServices (also applies to related pgConfig terms such as makePgConfig -> makePgService, MakePgConfigOptions -> MakePgServiceOptions, etc) - see your graphile.config.ts or equivalent file
    • All *:source:* behaviors are now *:resource:* behaviors (use regexp /:source\b|\bsource:[a-z$]/ to find the places that need updating)
    • PgDatabaseConfiguration -> PgServiceConfiguration
    • databaseName -> serviceName (because it's not the name of the database, it's the name of the pgServices (which was pgConfigs) entry)
    • PgResourceConfig::source -> PgResourceConfig.from ('source' is overloaded, so use a more direct term)
    • PgResource::source -> PgResource.from
    • PgSelectPlanJoin::source -> PgSelectPlanJoin.from
    • helpers.pgIntrospection.getDatabase -> helpers.pgIntrospection.getService
    • helpers.pgIntrospection.getExecutorForDatabase -> helpers.pgIntrospection.getExecutorForService
  • #266 395b4a2dd Thanks @benjie! - The Grafast step class 'execute' and 'stream' methods now have a new additional first argument count which indicates how many results they must return. This means we don't need to rely on the values[0].length trick to determine how many results to return, and thus we can pass through an empty tuple to steps that have no dependencies.

  • Updated dependencies [ae304b33c, d5312e6b9, 22ec50e36, 0f4709356, f93c79b94, 53e164cbc, 395b4a2dd]:

    • grafast@0.0.1-1.1
    • @dataplan/json@0.0.1-1.1
    • pg-sql2@5.0.0-1.1
    • @graphile/lru@5.0.0-1.1

0.0.1-0.28

Patch Changes

  • #257 9e7183c02 Thanks @benjie! - Don't mangle class names, we want them for debugging.

  • #257 fce77f40e Thanks @benjie! - Maintain types through lambda/list (if you get type errors after this update, you may need to put 'readonly' in more of your types).

  • Updated dependencies [89d16c972, 8f323bdc8, 9e7183c02]:

    • grafast@0.0.1-0.23
    • pg-sql2@5.0.0-0.4
    • @dataplan/json@0.0.1-0.23

0.0.1-0.27

Patch Changes

  • Updated dependencies []:
    • grafast@0.0.1-0.22
    • @dataplan/json@0.0.1-0.22

0.0.1-0.26

Patch Changes

  • #229 13cfc7501 Thanks @benjie! - pgConfig.listen is no more; it was redundant versus PgSubscriber. Have migrated PgIntrospectionPlugin to use PgSubscriber instead.
  • Updated dependencies [f5a04cf66]:
    • grafast@0.0.1-0.21
    • @dataplan/json@0.0.1-0.21

0.0.1-0.25

Patch Changes

  • Updated dependencies [aac8732f9]:
    • grafast@0.0.1-0.20
    • @dataplan/json@0.0.1-0.20

0.0.1-0.24

Patch Changes

  • Updated dependencies [397e8bb40]:
    • grafast@0.0.1-0.19
    • @dataplan/json@0.0.1-0.19

0.0.1-0.23

Patch Changes

  • Updated dependencies [4c2b7d1ca, c8a56cdc8]:
    • grafast@0.0.1-0.18
    • @dataplan/json@0.0.1-0.18

0.0.1-0.22

Patch Changes

  • Updated dependencies [f48860d4f]:
    • grafast@0.0.1-0.17
    • @dataplan/json@0.0.1-0.17

0.0.1-0.21

Patch Changes

  • #214 7e3bfef04 Thanks @benjie! - Correctly drop null/undefined pgSettings keys

  • Updated dependencies [df89aba52]:

    • grafast@0.0.1-0.16
    • @dataplan/json@0.0.1-0.16

0.0.1-0.20

Patch Changes

  • #210 2bd4b619e Thanks @benjie! - Add extensions.pg = { databaseName, schemaName, name } to various DB-derived resources (codecs, sources, etc); this replaces the originalName temporary solution that we had previously.

  • #210 b523118fe Thanks @benjie! - Replace BaseGraphQLContext with Grafast.Context throughout.

  • Updated dependencies [b523118fe]:

    • grafast@0.0.1-0.15
    • @dataplan/json@0.0.1-0.15

0.0.1-0.19

Patch Changes

0.0.1-0.18

Patch Changes

0.0.1-0.17

Patch Changes

  • e5b664b6f - Fix "Cannot find module '../package.json'" error

  • Updated dependencies [e5b664b6f]:

    • grafast@0.0.1-0.13
    • @dataplan/json@0.0.1-0.13

0.0.1-0.16

Patch Changes

  • #197 4f5d5bec7 Thanks @benjie! - Fix importing subpaths via ESM

  • #200 fb40bd97b Thanks @benjie! - Move PgSubscriber to @dataplan/pg/adaptors/pg and automatically build it if you set pubsub: true in your makePgConfig call.

  • Updated dependencies [4f5d5bec7, 25f5a6cbf]:

    • grafast@0.0.1-0.12
    • @dataplan/json@0.0.1-0.12

0.0.1-0.15

Patch Changes

  • 0ab95d0b1 - Update sponsors.

  • #196 af9bc38c8 Thanks @benjie! - Allow passing pool directly to makePgConfig.

  • #190 652cf1073 Thanks @benjie! - 馃毃 Breaking changes around types and postgres configuration:

    • GraphileBuild.GraphileResolverContext renamed to Grafast.Context
    • GraphileConfig.GraphQLRequestContext renamed to Grafast.RequestContext
    • Grafast.PgDatabaseAdaptorOptions renaed to GraphileConfig.PgDatabaseAdaptorOptions
    • @dataplan/pg/adaptors/node-postgres is now @dataplan/pg/adaptors/pg due to the bizarre naming of PostgreSQL clients on npm - we've decided to use the module name as the unique identifier
    • makePgConfigs:
      • is now makePgConfig (singular) - so you'll need to wrap it in an array where you use it
      • no longer exported by @dataplan/pg (because it depended on pg) - instead each adaptor exposes this helper - so import from @dataplan/pg/adaptors/node-postgres
      • accepts an object parameter containing {connectionString, schemas, superuserConnectionString}, rather than multiple string parameters
    • makeNodePostgresWithPgClient -> makePgAdaptorWithPgClient
    • postgraphile CLI will now try and respect the adaptor stated in your preset when overriding connection arguments
    • Removed Grafast.RequestContext.httpRequest and instead use Grafast.RequestContext.node.req/res; all server adaptors should implement this if appropriate
  • #192 80091a8e0 Thanks @benjie! - - Conflicts in pgConfigs (e.g. multiple sources using the same 'name') now detected and output

    • Fix defaults for pgSettingsKey and withPgClientKey based on config name
    • makePgConfig now allows passing pgSettings callback and pgSettingsForIntrospection config object
    • Multiple postgres sources now works nicely with multiple makePgConfig calls
  • Updated dependencies [0ab95d0b1, 4783bdd7c, 652cf1073]:

    • @dataplan/json@0.0.1-0.11
    • grafast@0.0.1-0.11
    • pg-sql2@5.0.0-0.3

0.0.1-0.14

Patch Changes

  • Updated dependencies []:
    • grafast@0.0.1-0.10
    • @dataplan/json@0.0.1-0.10

0.0.1-0.13

Patch Changes

  • Updated dependencies [11d6be65e]:
    • grafast@0.0.1-0.9
    • @dataplan/json@0.0.1-0.9

0.0.1-0.12

Patch Changes

  • Updated dependencies [208166269]:
    • grafast@0.0.1-0.8
    • @dataplan/json@0.0.1-0.8

0.0.1-0.11

Patch Changes

  • 0e440a862 Thanks @benjie! - Add new --superuser-connection option to allow installing watch fixtures as superuser.

0.0.1-0.10

Patch Changes

  • Updated dependencies []:
    • grafast@0.0.1-0.7
    • @dataplan/json@0.0.1-0.7

0.0.1-0.9

Patch Changes

  • c4213e91d - Add pgl.getResolvedPreset() API; fix Ruru respecting graphqlPath setting; replace 'instance' with 'pgl'/'serv' as appropriate; forbid subscriptions on GET

0.0.1-0.8

Patch Changes

  • 9b296ba54 - More secure, more compatible, and lots of fixes across the monorepo

  • Updated dependencies [9b296ba54]:

    • grafast@0.0.1-0.6
    • pg-sql2@5.0.0-0.2
    • @dataplan/json@0.0.1-0.6

0.0.1-0.7

Patch Changes

  • Updated dependencies [cd37fd02a]:
    • grafast@0.0.1-0.5
    • @dataplan/json@0.0.1-0.5

0.0.1-0.6

Patch Changes

  • 768f32681 - Fix peerDependencies ranges

  • Updated dependencies [768f32681]:

    • @dataplan/json@0.0.1-0.4
    • grafast@0.0.1-0.4

0.0.1-0.5

Patch Changes

  • 9ebe3d860 - Fix issue with webpack bundling adaptor

0.0.1-0.4

Patch Changes

0.0.1-0.3

Patch Changes

0.0.1-0.2

Patch Changes

  • 25037fc15 - Fix distribution of TypeScript types

  • Updated dependencies [25037fc15]:

    • grafast@0.0.1-0.2

0.0.1-0.1

Patch Changes

0.0.1-0.0

Patch Changes

  • #125 91f2256b3 Thanks @benjie! - Initial changesets release

  • Updated dependencies [91f2256b3]:

    • @graphile/lru@5.0.0-0.1
    • grafast@0.0.1-0.0
    • pg-sql2@5.0.0-0.1