Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@as-integrations/koa

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@as-integrations/koa - npm Package Versions

1.1.1

Diff

Changelog

Source

1.1.1

Patch Changes

mateogordo
published 1.1.0 •

Changelog

Source

1.1.0

Minor Changes

  • #130 c504479 Thanks @ryota-ka! - Parameterize the returned Middleware type so that this library can be used along with a context-parameterized Koa app.

    In order to utilize this feature, provide your Koa app's State and Context types as type arguments to the koaMiddleware function.

    If you use a context function (for Apollo Server), the State and Context types are positions 1 and 2 like so:

    type KoaState = { state: object };
    type KoaContext = { context: object };
    
    koaMiddleware<GraphQLContext, KoaState, KoaContext>(
      new ApolloServer<GraphQLContext>(),
      //...
      {
        context: async ({ ctx }) => ({ graphqlContext: {} }),
      },
    );
    

    If you don't use a context function, the State and Context types are positions 0 and 1 like so:

    type KoaState = { state: object };
    type KoaContext = { context: object };
    
    koaMiddleware<KoaState, KoaContext>(
      new ApolloServer<GraphQLContext>(),
      //...
    );
    
mateogordo
published 1.0.0 •

Changelog

Source

1.0.0

Major Changes

  • #117 4567c98 Thanks @trevor-scheer! - Drop support for Node.js 14, require v16+

    The only change required for users to take this update is to upgrade their Node.js version to v16+. No other breaking changes.

mateogordo
published 0.3.0 •

Changelog

Source

0.3.0

Minor Changes

  • #85 bb28b66 Thanks @laverdet! - Implement support for the @defer directive. In order to use this feature, you must be using an appropriate version of graphql. At the time of writing this, @defer is only available in v17 alpha versions of the graphql package, which is currently not officially supported. Due to peer dependencies, you must install graphql like so in order to force v17: npm i graphql@alpha --legacy-peer-deps
mateogordo
published 0.2.1 •

Changelog

Source

0.2.1

Patch Changes

mateogordo
published 0.2.0 •

Changelog

Source

0.2.0

Minor Changes

mateogordo
published 0.1.0 •

Changelog

Source

0.1.0

Minor Changes

  • #19 61106d1 Thanks @matthew-gordon! - Update Apollo Server dependencies, add explicit non-support for incremental delivery for now"
mateogordo
published 0.0.12 •

Changelog

Source

0.0.12

Patch Changes

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc