Skip to content

Latest commit

 

History

History
306 lines (148 loc) · 17.7 KB

CHANGELOG.md

File metadata and controls

306 lines (148 loc) · 17.7 KB

1.22.3 (2024-11-20)

Bug Fixes

  • handler: Response options status and statusText are optional (38a0191), closes #133

1.22.2 (2024-11-07)

Bug Fixes

  • use/koa: Use the parsed request body rather than ctx.body (#132) (9f8b1f1)

1.22.1 (2024-04-10)

Bug Fixes

  • audit/render: Omit set-cookie header and html body (#116) (1c5c744)
  • handler: Support both utf-8 and utf8 charsets (94100d6), closes #120
  • use: Set request readable encoding to utf-8 (50d3bcd), closes #118

1.22.0 (2023-08-28)

Features

  • handler: Expose parseRequestParams from the core and each of the adapters (#111) (2caae00)

1.21.0 (2023-07-17)

Bug Fixes

  • client: graphql module is not required for runtime (#102) (9049f31)

Features

1.20.0 (2023-07-08)

Bug Fixes

  • handler: Don't export makeResponse, getAcceptableMediaType or isResponse (#98) (a638cb4)
  • handler: Request params optional properties can also be null (10a6f06)

Features

  • handler: Custom request params parser (#100) (b919d7e)

1.19.0 (2023-06-05)

Bug Fixes

  • use: process global is not available in all environments and NODE_ENV doesn't necessarily depict production vs. development (d08ead3)

Features

1.18.0 (2023-04-14)

Bug Fixes

  • audits/server: Avoid auditing non well-formatted GraphQL-over-HTTP requests (#62) (d72e344)
  • audits/server: Prefer using POST (#77) (8cd7dfb)
  • handler: Stringify errors by exposing only the message (cabf8a9)

Features

  • audits: Notices section for optional recommendations (#76) (b8bdc71)
  • handler: Error formatter function (#78) (c0eaeb4)

1.17.1 (2023-03-31)

Bug Fixes

  • Add file extensions to imports/exports in ESM type definitions (d084a8d), closes #70
  • audits/server: Better "must accept UTF-8" test with emoji (#69) (a322d2c)

1.17.0 (2023-03-28)

Features

  • use/express,use/fastify,use/koa: Request context with the response (665175e), closes #66
  • use/http,use/http2: Request context with the response (e2cc0cd), closes #66

1.16.0 (2023-02-13)

Bug Fixes

  • audits/render: Clone response to allow re-reading the body (#55) (dd4f5f1)

Features

  • use: Deprecate node adapter in favor of http and http2 adapters (f5b0305)
  • use: Each adapter has an adapted HandlerOptions interface (f14a821)

1.15.0 (2023-02-12)

Features

  • audits/render: Render audit results to HTML with renderAuditResultsToHTML (#53) (da32059)
  • Bundle the audits into UMD for browser usage (a402823)
  • Server compliance audit through a website (#54) (f23a689), closes #8

1.14.0 (2023-02-09)

Features

  • handler: Add validationRules option for extending or replacing the GraphQL validation rule set (#51) (46c5309)

1.13.0 (2023-01-26)

Bug Fixes

  • audits/server: JSON parsing errors format shouldnt be audited (#47) (fae7e59)

Features

  • audits: Every audit should have a globally unique ID (#49) (8f6d4f1)

1.12.0 (2023-01-20)

Bug Fixes

  • audits/server: Check the actual content encoding instead of the indication (#41) (67778a8)
  • handler: Response maker handles errors correctly (#45) (5a10e0b)

Features

  • audits/server: Server response in failing audits (#39) (4385ecb)

1.11.0 (2023-01-04)

Features

1.10.0 (2022-12-24)

Features

  • handler: Accept a GraphQL execution rootValue (0f04fa2), closes #30

1.9.0 (2022-11-28)

Bug Fixes

  • audits/server: url option can also just be a Promise (8844aea)

Features

  • audits/server: Test that null is allowed for body parameters (#28) (2dee4ff)

1.8.0 (2022-11-21)

Features

  • audits/server: Support functions for the url option (f4d20a9), closes #24

1.7.2 (2022-11-18)

Bug Fixes

  • handler,audits/server: application/json is the default when accept is missing until watershed (#23) (050fdfe)

1.7.1 (2022-11-15)

Bug Fixes

  • audits/server: A server MAY support GET requests (#18) (9c5e8d2)
  • audits/server: Status code for mutations through GET should be between 400 and 499 (#19) (1021494)

1.7.0 (2022-11-07)

Bug Fixes

  • audits/server: Server may accept other content-type encodings (42c26f7)

Features

  • handler: Headers can be native to fetch (d459991)
  • handler: Supply context to schema option and improve typings (01c45d8)
  • use: Built-in handlers for some environments and frameworks (#13) (750e600)

1.6.1 (2022-09-12)

Bug Fixes

  • server: Accepting application/json SHOULD use status code 200 (9622ea0)
  • server: Adjust audits following the spec (2b21b08)
  • server: Audits requires 4xx shouldnt consider 5xx (59c51fa)
  • server: Audits respect legacy watershed (050c7ba)
  • server: Audits safely handle unparsable JSON in response body (f8098b6)

1.6.0 (2022-09-01)

Features

  • server: Data entry audits when accepting application/graphql-response+json (fe6f60d)

1.5.0 (2022-08-30)

Features

  • server: Audits and test function (#4) (431e513)

1.4.0 (2022-08-16)

Bug Fixes

  • handler: JSON body must be an object (f500fa7)

Features

  • handler: Request's body field may be a parser function (268a4bf)

1.3.0 (2022-08-16)

Features

  • Change GraphQL acceptable media type application/graphql+json to application/graphql-response+json (d86318a)

1.2.0 (2022-08-12)

Bug Fixes

  • handler: onSubscribe can return readonly GraphQLErrors (5ce6841)
  • handler: Allow empty query string parameter (necessary for persisted operations) (4eed1d5)
  • handler: Don't validate if onSubscribe returns execution arguments (17c8007)
  • handler: Respond with error if GraphQL execution result is iterable (d1ffdf7)

Features

  • handler: onSubscribe can return an ExecutionResult for immediate result response (0dcaf89)
  • handler: Expose getAcceptableMediaType and makeResponse for increased modularity (ae8ea29)
  • handler: Request may contain a context value (3a593f8)

Performance Improvements

  • handler: Detect non-string query parameter before parsing (4bc71ee)

1.1.0 (2022-08-05)

Bug Fixes

  • isResponse correctly asserts even if body is null (102de6d)
  • Different types for request and response headers (9e91141)
  • handler: context option can return a response (86c28d1)
  • handler: Match status text with status code (f07454d)
  • handler: More details about parse error (3306cae)

Features

  • client: url option function with request params as argument (99d9086)
  • handler: onSubscribe option can return an array of GraphQL errors (ebd91ad)
  • handler: Custom GraphQL getOperationAST option (f4a2aab)
  • handler: Custom GraphQL parse option (6ef4c57)

1.0.0 (2022-08-04)

Features