changelogs.md


coding-blocks/jsonapi-server

Repository  -  API  -  Source

5.6.0

March 16, 2018
  • 2018-03-16 - handlers using ES6 classes

5.4.5

February 6, 2018
  • 2018-02-06 - Typescript definitions
  • 2018-02-05 - DEFAULT for autoincrement fixed
  • 2018-01-30 - if resource with id not present, return 404

5.4.2

January 30, 2018
  • 2018-01-30 - bubble up handlesSort and handlesFilter to root handler
  • 2018-01-30 - pr-311 fix pagniation in resource relations

5.4.0

January 27, 2018
  • 2018-01-27 - pr-275 handlesSort & handlesFilter support
  • 2018-01-27 - pr-277 run validation within setImmediate (async)
  • 2018-01-27 - pr-274 expose express req res to handlers
  • 2018-01-27 - pr-367 fix crud operation detection
  • 2018-01-27 - pr-366 add bodyParserOptions

5.3.0

January 27, 2018
  • 2018-01-27 - updated joi to v13
  • 2018-01-27 - let user state foreign key type

5.1.1

December 18, 2017
  • 2017-11-03 - [pr-335] generateId flag
  • 2017-11-03 - [pr-332] return error when not validated

5.1.0

November 3, 2017
  • 2017-11-03 - [pr-311] add pagination count to relations

5.0.0

November 3, 2017
  • 2017-11-03 - use node >= 8

. . . . . . . . . . . . F O R K . . . . . . . . . . . . .

4.1.2

December 11, 2017
  • 2017-12-11 - Fix broken response test resource to enable integration with data store handlers.

4.1.1

November 15, 2017
  • 2017-11-15 - Downgrade Joi to a version supported by Node.js v6.
  • 2017-11-15 - Force engine-strict=true when running npm.

4.1.0

November 14, 2017
  • 2017-11-14 - New configuration option to disable automatic id generation.
  • 2017-11-14 - Update GraphQL dependencies to latest versions.
  • 2017-11-14 - Remove yarn lockfile.

4.0.0

November 3, 2017
  • 2017-11-03 - Return error when a response item does not validate.

4.1.1

November 3, 2017
  • 2017-11-03 - use latest graphql and joi

4.1.0

November 3, 2017
  • 2017-11-03 - Show error of validation in response

4.0.0

November 3, 2017
  • 2017-11-03 - Remove Node.js 4 support.

3.2.2

October 21, 2017
  • 2017-10-21 - Report coverage with Coveralls.
  • 2017-10-21 - Modernise script.

3.2.1

September 23, 2017
  • 2017-09-23 - Fix packaging.

3.2.0

September 19, 2017
  • 2017-09-19 - Node.js 8 support.

3.1.0

September 14, 2017

2.0

September 14, 2017
  • 2017-09-14 - Correct sorting of date properties.
  • 2017-09-14 - Fix bug when trying to detect arrays during Joi validation.
  • 2017-09-14 - Fix bug for some requests with both include and fields.

3.0.3

July 14, 2017

3.0.2

July 14, 2017

3.0.1

July 14, 2017
  • 2017-07-14 - Update dependencies.

3.0.0

June 1, 2017

4.5.0

June 1, 2017
  • 2017-06-01 - Fix GraphQL updates
  • 2017-02-06 - Ability to skip graphiql modelling

2.3.2

February 6, 2017
  • 2017-02-06 - Fix bug when filtering with comma separated list
  • 2017-02-06 - Ability to skip graphiql modelling

2.3.1

January 5, 2017
  • 2017-01-05 - Fix bug when calculating the pagination offsets for last page
  • 2017-01-05 - Improve contributing doc

2.3.0

December 15, 2016
  • 2016-12-15 - Validate resource schema before starting the server

2.2.1

December 8, 2016
  • 2016-12-08 - Prefer client generated ID's for newly created resources
  • 2016-12-08 - ChainHandler supports .close()
  • 2016-12-08 - Better documentation around handler.close
  • 2016-12-08 - Bug fix when calling server.close with a custom router

2.2.0

November 7, 2016
  • 2016-11-07 - Adding polymorphic relationships
  • 2016-11-07 - Correctly handle validation errors when including non-existant resources
  • 2016-11-07 - Added Array Joi type for GraphQL

2.1.0

September 29, 2016
  • 2016-09-29 - Enable injection of an Express Router

2.0.2

September 29, 2016
  • 2016-09-29 - Better Joi to GraphQL type conversion

2.0.1

September 29, 2016
  • 2016-09-29 - Adding use-strict to all files

2.0.0

September 29, 2016
  • 2016-09-28 - Bumped all dependencies to latest
  • 2016-09-28 - Removed hiphens from list of allowed characters in names
  • 2016-09-28 - Converted to ES6
  • 2016-09-28 - Converted to eslint:standard
  • 2016-09-28 - Enabled GraphQL

1.17.0

September 20, 2016
  • 2016-09-20 - Remove metrics listeners on server.close()
  • 2016-09-20 - Dynamic swagger.json based on handler capabilities
  • 2016-09-20 - Dynamic metadata in body of responses
  • 2016-09-20 - Comma separated filter values
  • 2016-09-20 - Option to override base urls in links

1.16.1

September 8, 2016
  • 2016-09-08 - Improving ChainHandler for synchronous functions
  • 2016-09-08 - Improving ChainHandler for 'after' functions

1.16.0

September 8, 2016
  • 2016-09-07 - Accept initilize with a 'z'
  • 2016-09-07 - Implemented new ChainHandler
  • 2016-08-07 - Additional validation when defining primary relationships

1.15.4

July 6, 2016
  • 2016-07-06 - Prevent express from appending the charset to the content-type header

1.15.3

July 6, 2016
  • 2016-07-06 - Provide text error to help debug HTTP 415s

1.15.2

July 6, 2016
  • 2016-07-06 - CORS headers are now applier further up the middleware chain

1.15.1

July 5, 2016
  • 2016-07-05 - Fixed bug when deleting singular relationships via deep urls
  • 2016-07-05 - Added warning messages to test suite to warn when handlers don't filter

1.15.0

June 28, 2016
  • 2016-06-28 - Scrap sub-millisecond accuracy on metrics

1.14.0

June 27, 2016
  • 2016-06-27 - Enabled application metrics

1.13.0

June 22, 2016
  • 2016-06-22 - Fixed bug when setting singular relationships via deep urls
  • 2016-06-22 - Enable access to expressJS instance

1.12.0

June 9, 2016
  • 2016-06-09 - MemoryHandler clones all objects

1.11.0

June 2, 2016
  • 2016-06-02 - Error when interacting with broken resources
  • 2016-06-02 - Unable to patch relationships on resources with required attributes

1.10.0

May 31, 2016
  • 2016-05-31 - Export module version so data stores can check for a minimum required version

1.9.0

May 27, 2016
  • 2016-05-27 - Make parsed and validated filter available in request for handlers

1.8.0

May 24, 2016
  • 2016-05-24 - HTTPS support

1.7.0

May 24, 2016
  • 2016-05-24 - Resolves swagger validation errors
  • 2016-05-24 - Generated swagger doc adheres to required() fields

1.6.0

May 16, 2016
  • 2016-05-16 - Enable authentication errors
  • 2016-05-16 - Avoid the HTTP stack for inclusions
  • 2016-05-16 - Fix crash when opt-ing out of resource operations

1.5.0

May 5, 2016
  • 2016-05-05 - Allow overriding debug output functions
  • 2016-04-27 - Static code analysis with Flow and JSCPD

1.4.0

April 22, 2016
  • 2016-04-22 - Return all validation errors

1.3.3

February 16, 2016
  • 2016-02-16 - Filtering falsy boolean values

1.3.2

February 16, 2016
  • 2016-02-16 - Correctly filter by non-string attributes

1.3.1

February 10, 2016
  • 2016-02-10 - Correctly handle missing to-one related resources

1.3.0

January 25, 2016
  • 2016-01-25 - Aggressive cache-expiry headers by default

1.2.0

January 21, 2016
  • 2016-01-21 - Set better default CORS headers

1.1.0

January 11, 2016
  • 2016-01-11 - Error hard and fast when incorrectly defining foreign relations
  • 2016-01-11 - Updating dependencies
  • 2016-01-11 - Sanitise input + output with Joi
  • 2016-01-11 - Big documentation improvements

1.0.5

December 31, 2015
  • 2015-12-31 - Set Location header correctly when creating resources

1.0.4

December 30, 2015
  • 2015-12-30 - Enable path-less API

1.0.3

December 17, 2015
  • 2015-12-17 - Filter won't match undefined properties anymore
  • 2015-12-17 - Don't pass on content-length HTTP headers on inclusion requests

1.0.2

December 11, 2015
  • 2015-12-11 - Test harness improvements

1.0.1

December 10, 2015
  • 2015-12-10 - Correcting v8-profiler dependency

1.0.0

December 10, 2015
  • 2015-12-10 - Inclusion bug fixes
  • 2015-12-10 - Use filter[] instead of relationships[]
  • 2015-12-10 - Move to lodash
  • 2015-12-10 - CPU profiling
  • 2015-12-08 - Pagination support
  • 2015-12-07 - Efficient inclusions
  • 2015-12-05 - Tooling improvements
  • 2015-12-03 - Top level jsonapi blocks

0.16.0

November 25, 2015
  • 2015-11-25 - Validation around handlers behaviour
  • 2015-11-25 - Debugging functionality
  • 2015-11-25 - Automatic Swagger Generation

0.15.2

November 19, 2015
  • 2015-11-19 - Validate filter params before handing over to resourceHandler.search

0.15.1

November 18, 2015
  • 2015-11-18 - Updated documentation

0.15.0

November 18, 2015
  • 2015-11-18 - Rename MockHandler to MemoryHandler

0.14.0

November 17, 2015
  • 2015-11-17 - Handlers are now objects instead of modules

0.13.1

November 17, 2015
  • 2015-11-17 - Additional error handling for foreign relation lookup

0.13.0

November 12, 2015
  • 2015-11-12 - Handlers readiness check

0.12.2

November 11, 2015
  • 2015-11-11 - Blacklist some HTTP headers we dont want to pass onwards

0.12.1

November 11, 2015
  • 2015-11-11 - Correctly build related URLs when using HTTPS

0.12.0

November 10, 2015
  • 2015-11-10 - Additional error detail on 403 and 404
  • 2015-11-10 - Additional error handling for foreign relation lookup
  • 2015-11-09 - Creating resources gives a 201 CREATED
  • 2015-11-09 - Pass around headers on inclusion requests
  • 2015-11-09 - Ignore non-js routes within the example app

0.11.0

November 6, 2015
  • 2015-11-06 - Improve resource-update validation

0.10.0

November 5, 2015
  • 2015-09-27 - Always respond with absolute URLs

0.9.0

September 27, 2015
  • 2015-09-27 - Improve validation when updating a relationship
  • 2015-09-25 - Stricter handling of HTTP Content-Type headers
  • 2015-09-25 - Stricter handling of HTTP Accept headers
  • 2015-09-25 - Validate attribute names
  • 2015-09-25 - Enable basic authentication
  • 2015-09-25 - Updating dependencies
  • 2015-09-25 - Adding cookies to Request objects
  • 2015-09-25 - Enabling meta blocks on Resources and Relations

0.8.0

July 13, 2015
  • 2015-07-13 - Updating dependencies to latest stable releases
  • 2015-07-13 - Split out documentation into more manageable chunks
  • 2015-07-12 - Split out Joi modifications into separate file
  • 2015-07-12 - Split postProcessing into smaller modules

0.7.0

July 12, 2015
  • 2015-07-11 - Code Complexity tool via npm-run-complexity
  • 2015-07-08 - Added additional info to relation metadata
  • 2015-07-06 - Handle 404s and allow logging for uncaught exceptions
  • 2015-07-05 - Allow user to implement their own error logging
  • 2015-07-03 - Separating out route handlers into separate files
  • 2015-07-03 - Refactoring handlers to improve readability
  • 2015-06-29 - Initial release