# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [13.12.11](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.12.10...pubsweet-server@13.12.11) (2021-09-20)

**Note:** Version bump only for package pubsweet-server





## [13.12.10](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.12.9...pubsweet-server@13.12.10) (2021-06-08)

**Note:** Version bump only for package pubsweet-server





## [13.12.9](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.12.8...pubsweet-server@13.12.9) (2021-06-08)

**Note:** Version bump only for package pubsweet-server





## [13.12.8](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.12.7...pubsweet-server@13.12.8) (2021-04-13)

**Note:** Version bump only for package pubsweet-server





## [13.12.7](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.12.6...pubsweet-server@13.12.7) (2021-04-08)

**Note:** Version bump only for package pubsweet-server





## [13.12.6](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.12.5...pubsweet-server@13.12.6) (2021-04-05)

**Note:** Version bump only for package pubsweet-server





## [13.12.5](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.12.4...pubsweet-server@13.12.5) (2021-03-30)

**Note:** Version bump only for package pubsweet-server





## [13.12.4](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.12.3...pubsweet-server@13.12.4) (2021-03-29)

**Note:** Version bump only for package pubsweet-server





## [13.12.3](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.12.2...pubsweet-server@13.12.3) (2021-03-08)

**Note:** Version bump only for package pubsweet-server





## [13.12.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.12.1...pubsweet-server@13.12.2) (2021-02-25)

**Note:** Version bump only for package pubsweet-server





## [13.12.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.12.0...pubsweet-server@13.12.1) (2021-02-23)


### Bug Fixes

* **server:** remove boss.connect() and expose boss object directly ([99383f4](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/99383f415eb4c62432a68d348f3912e47c498a5e))





# [13.12.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.11.6...pubsweet-server@13.12.0) (2021-02-23)


### Features

* **server:** upgrade pg-boss to 5.2.0 ([5cc81f6](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/5cc81f6725fafdee694dd15d18638cd0fdbbb538))





## [13.11.6](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.11.5...pubsweet-server@13.11.6) (2020-12-21)

**Note:** Version bump only for package pubsweet-server





## [13.11.5](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.11.4...pubsweet-server@13.11.5) (2020-11-19)

**Note:** Version bump only for package pubsweet-server





## [13.11.4](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.11.3...pubsweet-server@13.11.4) (2020-11-18)

**Note:** Version bump only for package pubsweet-server





## [13.11.3](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.11.2...pubsweet-server@13.11.3) (2020-11-18)


### Bug Fixes

* **server:** fix apollo test dependencies ([6a26dc1](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/6a26dc13fae2b1573a804f2fd65b4d95074a2112))





## [13.11.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.11.1...pubsweet-server@13.11.2) (2020-11-16)

**Note:** Version bump only for package pubsweet-server





## [13.11.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.11.0...pubsweet-server@13.11.1) (2020-07-17)


### Bug Fixes

* **db-manage:** change namespace to fit other exports ([6779b1a](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/6779b1a92bc31fe7898a3b01d3f9a656af4164e2))
* **db-manager:** same connection for pubsub and app db ([2887389](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/2887389aceec79fc372d339788d461064d55393a))





# [13.11.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.10.1...pubsweet-server@13.11.0) (2020-05-13)


### Features

* added tests for http req and res in resolver ([934919e](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/934919eb5e3e6008e1946aa79aaa2473c7900c37))
* expose req and res when creating ApolloServer ([e68c79a](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/e68c79a4b0c9832f033d7d527ef3b4ab894972a4))





## [13.10.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.10.0...pubsweet-server@13.10.1) (2020-04-24)

**Note:** Version bump only for package pubsweet-server





# [13.10.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.9.4...pubsweet-server@13.10.0) (2020-04-06)


### Features

* **model-user:** handle password check if password hash does not exist ([55cc082](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/55cc0828de09aa223a7a4eb031341ab280c4a73d))





## [13.9.4](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.9.3...pubsweet-server@13.9.4) (2020-03-16)


### Bug Fixes

* **server:** fix loaders for multiple models per package ([8bd0926](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/8bd0926504452318a96e96e66723c17d684d57d1))





## [13.9.3](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.9.2...pubsweet-server@13.9.3) (2020-03-04)

**Note:** Version bump only for package pubsweet-server





## [13.9.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.9.1...pubsweet-server@13.9.2) (2020-02-28)

**Note:** Version bump only for package pubsweet-server





## [13.9.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.9.0...pubsweet-server@13.9.1) (2020-02-26)

**Note:** Version bump only for package pubsweet-server





# [13.9.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.8.2...pubsweet-server@13.9.0) (2020-01-29)


### Features

* **server:** enable completely custom entrypoint ([dae3175](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/dae31759cb19f9ebfac17705185daa4a5532c90a))





## [13.8.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.8.1...pubsweet-server@13.8.2) (2020-01-23)

**Note:** Version bump only for package pubsweet-server





## [13.8.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.8.0...pubsweet-server@13.8.1) (2019-12-11)

**Note:** Version bump only for package pubsweet-server





# [13.8.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.7.2...pubsweet-server@13.8.0) (2019-11-11)


### Features

* **xpub:** bring back xpub components ([fb69994](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/fb69994098b4e2dbcca75b4786ebb1335af730b9))





## [13.7.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.7.1...pubsweet-server@13.7.2) (2019-09-11)


### Bug Fixes

* **authorization:** update the error thrown by can function ([01a005b](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/01a005b))





## [13.7.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.7.0...pubsweet-server@13.7.1) (2019-09-04)

**Note:** Version bump only for package pubsweet-server





# [13.7.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.6.1...pubsweet-server@13.7.0) (2019-08-30)


### Features

* **cli:** introduce start:client and start:server ([29d7d44](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/29d7d44))





## [13.6.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.6.0...pubsweet-server@13.6.1) (2019-08-08)


### Bug Fixes

* **server:** log errors correctly if originalError empty ([1b5c78a](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/1b5c78a))





# [13.6.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.5.2...pubsweet-server@13.6.0) (2019-08-05)


### Bug Fixes

* **server:** add default loaders correctly ([3d49924](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/3d49924))
* **server:** correctly address missing records ([7c26668](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/7c26668))


### Features

* **loaders:** add dataloaders to context by default ([c4c2255](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/c4c2255))
* **pubsweet-server:** add loaders object to gql context ([b1c715a](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/b1c715a))
* use modelLoaders for model-specific loaders ([3be6bc2](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/3be6bc2))





## [13.5.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.5.1...pubsweet-server@13.5.2) (2019-07-12)

**Note:** Version bump only for package pubsweet-server





## [13.5.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.5.0...pubsweet-server@13.5.1) (2019-07-09)

**Note:** Version bump only for package pubsweet-server





# [13.5.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.4.7...pubsweet-server@13.5.0) (2019-07-03)


### Features

* use a config object with apollo's config ([5135db6](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/5135db6))





## [13.4.7](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.4.6...pubsweet-server@13.4.7) (2019-06-28)

**Note:** Version bump only for package pubsweet-server





## [13.4.6](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.4.5...pubsweet-server@13.4.6) (2019-06-24)

**Note:** Version bump only for package pubsweet-server





## [13.4.5](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.4.4...pubsweet-server@13.4.5) (2019-06-21)

**Note:** Version bump only for package pubsweet-server





## [13.4.4](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.4.3...pubsweet-server@13.4.4) (2019-06-13)

**Note:** Version bump only for package pubsweet-server





## [13.4.3](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.4.2...pubsweet-server@13.4.3) (2019-06-12)

**Note:** Version bump only for package pubsweet-server





## [13.4.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.4.1...pubsweet-server@13.4.2) (2019-05-27)

**Note:** Version bump only for package pubsweet-server





## [13.4.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.4.0...pubsweet-server@13.4.1) (2019-04-25)

**Note:** Version bump only for package pubsweet-server





# [13.4.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.3.0...pubsweet-server@13.4.0) (2019-04-18)


### Features

* **server:** upgrade integration with apollo server 2.0 ([292720d](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/292720d))





# [13.3.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.2.0...pubsweet-server@13.3.0) (2019-04-09)


### Bug Fixes

* remove some circular dependencies ([1c0cf11](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/1c0cf11))
* safeguard require ([1aab6ab](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/1aab6ab))


### Features

* **server:** add tryRequireRelative helper ([c3b3f75](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/c3b3f75))





# [13.2.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.1.0...pubsweet-server@13.2.0) (2019-03-06)


### Features

* **server:** add context and helpers to subscription context ([d755ac3](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/d755ac3))





# [13.1.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.0.2...pubsweet-server@13.1.0) (2019-03-05)


### Features

* **server:** pass app errors to clients instead of GraphQLError ([ccc9f41](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/ccc9f41))





## [13.0.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.0.1...pubsweet-server@13.0.2) (2019-02-19)

**Note:** Version bump only for package pubsweet-server





## [13.0.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@13.0.0...pubsweet-server@13.0.1) (2019-02-19)

**Note:** Version bump only for package pubsweet-server





# [13.0.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@12.0.2...pubsweet-server@13.0.0) (2019-02-01)


### Features

* remove REST endpoints ([585881b](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/585881b))
* **db-manager:** allow passing options to umzug ([9876f13](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/9876f13))
* **model-team:** add addMember, removeMember, improve fetching ([9c48f2c](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/9c48f2c))
* **models:** support for multiple models in a single component ([caed5be](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/caed5be))
* **server:** allow relation/unrelation options for update resolver ([1b5f7be](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/1b5f7be))
* **server:** expose model in connector ([ede8049](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/ede8049))
* **server:** make authorization helpers available in context ([74c665b](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/74c665b))
* **server:** where clauses, graph upserts & eager loading to connector ([e9da7a9](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/e9da7a9))
* very basic backend/working users manager ([b3c06b6](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/b3c06b6))


### BREAKING CHANGES

* This removes all previous /api endpoints, with the exception of file upload.





## [12.0.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@12.0.1...pubsweet-server@12.0.2) (2019-01-16)

**Note:** Version bump only for package pubsweet-server





## [12.0.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@12.0.0...pubsweet-server@12.0.1) (2019-01-14)

**Note:** Version bump only for package pubsweet-server





# [12.0.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@11.0.0...pubsweet-server@12.0.0) (2019-01-13)


### Features

* add [@pubsweet](https://gitlab.coko.foundation/pubsweet)/errors ([2969bf6](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/2969bf6))


### BREAKING CHANGES

* If you required errors deeply from pubsweet-server before, i.e.
`pubsweet-server/src/errors`, this will no longer work, and you need to change your require to
`@pubsweet/errors`.





# [11.0.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@10.1.4...pubsweet-server@11.0.0) (2019-01-09)


### Bug Fixes

* return originalClose result ([bec775f](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/bec775f))
* use correct paths ([e922534](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/e922534))
* various migration related fixes ([2aef24a](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/2aef24a))
* **server:** additionally protect /api/users ([78ae476](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/78ae476))
* **server:** migrate to use new User and Team models ([313b904](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/313b904))


### Code Refactoring

* remove validations from client ([da74777](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/da74777))


### Features

* **server:** migrate Collection to a model component ([8380b69](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/8380b69))
* **server:** recursively register extending components ([39fbb3e](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/39fbb3e))
* **server:** use BaseModel-based User and Team models ([8646f92](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/8646f92))
* introduce [@pubsweet](https://gitlab.coko.foundation/pubsweet)/models package ([7c1a364](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/7c1a364))
* migrate Fragment to use BaseModel ([bd4c7f9](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/bd4c7f9))


### BREAKING CHANGES

* **server:** This adds additional authorization checks for the new user creation REST endpoint.
Your authsome modes have to be updated.
* This removes the concept of validations from the client (shared with server).
Validations in general were removed with the switch to BaseModel, which uses JSON Schema and not Joi
for data validation. While the value of exposing server side validations on the client was never
realized, we might add something similar back in the future for exposing JSON Schema on the
client-side, if a clear use-case is presented.
* **server:** Collections, currently stored in a NoSQL-like entities table, are now living in
standalone collections table. Since the constraints from PostgreSQLs columns are stricter than a
JSON data field, where the collection data currently lives, no automatic migration of data is
possible - and migrations will have to be done on a app-by-app basis.
* **server:** User and Team models have moved from `entities` into standalone `users` and `teams`
tables.





## [10.1.4](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@10.1.3...pubsweet-server@10.1.4) (2018-12-12)

**Note:** Version bump only for package pubsweet-server





## [10.1.3](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@10.1.2...pubsweet-server@10.1.3) (2018-12-04)

**Note:** Version bump only for package pubsweet-server





## [10.1.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@10.1.1...pubsweet-server@10.1.2) (2018-11-30)

**Note:** Version bump only for package pubsweet-server





## [10.1.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@10.1.0...pubsweet-server@10.1.1) (2018-11-29)


### Bug Fixes

* add waait dependency ([f80dbec](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/f80dbec))





      <a name="10.1.0"></a>
# [10.1.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@10.0.3...pubsweet-server@10.1.0) (2018-11-13)


### Bug Fixes

* add a custom async server.close function ([bfc78a8](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/bfc78a8))
* close server and stop job queues on server close ([b20a837](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/b20a837))
* manage closing of startServer in tests ([e247261](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/e247261))


### Features

* initial commit for pg-boss based job queue ([6f7a0cc](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/6f7a0cc))
* start job queue when server starts ([5b363d8](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/5b363d8))
* support for a job runner in a different process ([f3c8b93](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/f3c8b93))
* working job roundtrip and test ([188f794](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/188f794))
* **server:** expand access to custom models in authsome ([6fde33a](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/6fde33a))




      <a name="10.0.3"></a>
## [10.0.3](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@10.0.2...pubsweet-server@10.0.3) (2018-11-05)


### Bug Fixes

* **server:** wait before closing pubsub database connection ([badd6e2](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/badd6e2))




<a name="10.0.2"></a>
## [10.0.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@10.0.1...pubsweet-server@10.0.2) (2018-10-17)


### Bug Fixes

* **authenticate:** remove passwordHash from login response ([39e854c](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/39e854c))
* **authentication:** filter passwordHash via authsome ([8ccc747](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/8ccc747))




<a name="10.0.1"></a>
## [10.0.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@10.0.0...pubsweet-server@10.0.1) (2018-10-08)




**Note:** Version bump only for package pubsweet-server

<a name="10.0.0"></a>
# [10.0.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@9.2.0...pubsweet-server@10.0.0) (2018-09-29)


### Features

* add global property to team ([81b2a7b](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/81b2a7b)), closes [#424](https://gitlab.coko.foundation/pubsweet/pubsweet/issues/424)


### BREAKING CHANGES

* Teams now have a built-in global property meant to distinguish between object-based
teams and global teams. Previously a global team was defined as a team missing its object, but since
that is ambiguous, i.e. an object can be missing for several reasons - a global property is much
more straight-forward. If you were already using a .global property on Team in your app, your app
will break as the GraphQL schema will conflict.




<a name="9.2.0"></a>
# [9.2.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@9.1.2...pubsweet-server@9.2.0) (2018-09-28)


### Features

* add destroy method to graphql pubsub ([0c51f41](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/0c51f41))
* use [@pubsweet](https://gitlab.coko.foundation/pubsweet)/logger for graphql errors ([2c031fe](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/2c031fe))




<a name="9.1.2"></a>
## [9.1.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@9.1.1...pubsweet-server@9.1.2) (2018-09-27)


### Bug Fixes

* **server:** get model from the component ([ce88a8c](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/ce88a8c))
* **server:** require components relatively ([b2ae124](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/b2ae124))




<a name="9.1.1"></a>
## [9.1.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@9.1.0...pubsweet-server@9.1.1) (2018-09-27)




**Note:** Version bump only for package pubsweet-server

<a name="9.1.0"></a>
# [9.1.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@9.0.0...pubsweet-server@9.1.0) (2018-09-25)


### Bug Fixes

* **server:** add missing objection dependency ([3dfdae3](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/3dfdae3))
* **server:** specify db-manager dev dependency for server ([b86a564](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/b86a564))


### Features

* **server:** add configurable token expiration ([f2eb1a8](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/f2eb1a8)), closes [#427](https://gitlab.coko.foundation/pubsweet/pubsweet/issues/427)




<a name="9.0.0"></a>
# [9.0.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@8.2.0...pubsweet-server@9.0.0) (2018-09-20)


### Features

* add base-model package for standalone data models ([fc446e8](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/fc446e8)), closes [#395](https://gitlab.coko.foundation/pubsweet/pubsweet/issues/395)


### BREAKING CHANGES

* In PubSweet server, the exported thing is no longer startServer directly, but it's
now part of the exported object. This will break applications that use the equivalent of const
startServer = require('pubsweet-server'). The new method for getting a startServer is const {
startServer } = require('pubsweet-server').




<a name="8.2.0"></a>
# [8.2.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@8.1.0...pubsweet-server@8.2.0) (2018-09-19)


### Features

* **server:** remove require-relative ([38a8f50](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/38a8f50))




<a name="8.1.0"></a>
# [8.1.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@8.0.1...pubsweet-server@8.1.0) (2018-09-04)


### Features

* **client:** add AuthorizeWithGraphQL ([57eca9a](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/57eca9a))




<a name="8.0.1"></a>
## [8.0.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@8.0.0...pubsweet-server@8.0.1) (2018-08-20)


### Bug Fixes

* **server:** use TeamInput for updateTeam mutation too ([b84b369](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/b84b369))




<a name="8.0.0"></a>
# [8.0.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@7.2.0...pubsweet-server@8.0.0) (2018-08-17)


### Bug Fixes

* **graphql:** fix bug where frontend gets bad data on subscription ([3301269](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/3301269))
* **graphql:** fix error that would crash the server on bad auth token ([058c6cd](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/058c6cd))
* **graphql:** return one pubsub only in getPubsub ([d016272](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/d016272))
* **graphql:** use same db client in pubsub connection ([f002f4a](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/f002f4a))
* **graphql:** use same version of graphql across the project ([445f204](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/445f204))
* **server:** use appropriate inputs for GraphQL mutations ([dd6d3f4](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/dd6d3f4)), closes [#418](https://gitlab.coko.foundation/pubsweet/pubsweet/issues/418)
* **server:** use the existing http server for subscriptions ([c5d1362](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/c5d1362))


### Features

* **graphql:** add subscription support to graphql ([d71b0c6](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/d71b0c6))
* **graphql:** add upload progress subscription definition ([4248ffd](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/4248ffd))
* **graphql:** enable authentication over the websocket ([98c9e6d](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/98c9e6d))
* **graphql:** get hostname from variables ([64b7c4f](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/64b7c4f))
* **graphql:** replace redis pubsub with postgres pubsub ([7c3ab7c](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/7c3ab7c))
* **graphql:** use only one pubsub object on the server ([a875e77](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/a875e77))


### BREAKING CHANGES

* **server:** Inputs are no longer strings, they are now objects.




<a name="7.2.0"></a>
# [7.2.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@7.1.2...pubsweet-server@7.2.0) (2018-07-09)


### Features

* **server:** make morgan request log format configurable ([a2a3810](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/a2a3810))




<a name="7.1.2"></a>
## [7.1.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@7.1.1...pubsweet-server@7.1.2) (2018-06-19)




**Note:** Version bump only for package pubsweet-server

<a name="7.1.1"></a>
## [7.1.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@7.1.0...pubsweet-server@7.1.1) (2018-06-01)


### Bug Fixes

* **styleguide:** add and use simple authsome mode in styleguide ([e2e0e85](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/e2e0e85))




<a name="7.1.0"></a>
# [7.1.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@7.0.1...pubsweet-server@7.1.0) (2018-05-18)


### Bug Fixes

* use one file at monorepo root ([456f49b](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/456f49b))


### Features

* migration runner ([be49be5](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/be49be5))




<a name="7.0.1"></a>
## [7.0.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@7.0.0...pubsweet-server@7.0.1) (2018-05-03)


### Bug Fixes

* **server:** update nested PATCH endpoint ([9793075](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/9793075))




<a name="7.0.0"></a>
# [7.0.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@6.1.0...pubsweet-server@7.0.0) (2018-05-03)


### Features

* add config property for graphql endpoint ([c463855](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/c463855))
* **server:** add current and update state to update authorization ([9b2b073](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/9b2b073)), closes [#393](https://gitlab.coko.foundation/pubsweet/pubsweet/issues/393)


### BREAKING CHANGES

* **server:** Authsome mode parts that deal with 'PATCH' or update operations, must now deal with
the changed API, which provides a {current:, update:} object, where 'current' represents the current
state of the object, and 'update' representes the requested update. This was added so that one can
verify e.g. that a object.status update is allowed, if the current object.status is 'editing', and
the wished update.status is 'edited'.




<a name="6.1.0"></a>
# [6.1.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@6.0.0...pubsweet-server@6.1.0) (2018-04-25)


### Features

* **server:** add sse events to team endpoints ([26a739a](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/26a739a)), closes [#390](https://gitlab.coko.foundation/pubsweet/pubsweet/issues/390)




<a name="6.0.0"></a>
# [6.0.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@5.0.0...pubsweet-server@6.0.0) (2018-04-24)


### Bug Fixes

* **server:** correct 'updated' property to 'update' ([18a6b35](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/18a6b35)), closes [#385](https://gitlab.coko.foundation/pubsweet/pubsweet/issues/385)


### Features

* **server:** implement authorization-based filtering of SSE ([a1b5cd3](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/a1b5cd3))
* **server:** simplify currentUser query response ([6432b58](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/6432b58))


### BREAKING CHANGES

* **server:** remove `token` from `currentUser` query response since it must have been provided in the request.




<a name="5.0.0"></a>
# [5.0.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@4.0.0...pubsweet-server@5.0.0) (2018-04-11)


### Bug Fixes

* **graphql:** make teamType a string ([d2005ac](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/d2005ac))
* **pubsweet-server:** typo correction ([ed88381](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/ed88381))
* **pubsweet-server:** update teams api ([6652307](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/6652307))
* **teams:** add object.team to authsome query ([79b39b5](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/79b39b5))
* **teams:** fix test authsome mode for PATCH ([f448c19](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/f448c19))


### BREAKING CHANGES

* **pubsweet-server:** The teams API endpoints now work differently in terms of filtering capabilities & in combination with Authsome, in the same way as the collections and fragments API endpoints work. See https://gitlab.coko.foundation/pubsweet/pubsweet/merge_requests/177 for more information.




<a name="4.0.0"></a>
# [4.0.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@3.0.0...pubsweet-server@4.0.0) (2018-04-03)


### Features

* **server:** remove user.teams pre-filling ([055eafe](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/055eafe))


### BREAKING CHANGES

* **server:** User.teams no longer returns an array of objects, but instead returns an array of
ids, as it's stored in the database.




<a name="3.0.0"></a>
# [3.0.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@2.0.5...pubsweet-server@3.0.0) (2018-03-30)


### Bug Fixes

* **graphql:** reorder authorization checks for creation ([25c6274](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/25c6274))
* **server:** add create property validation ([0eb3f4a](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/0eb3f4a))
* **server:** add nesting back to users list endpoint ([da01334](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/da01334))


### Features

* **server:** add permission based filtering to users api ([f440388](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/f440388))
* **server:** make team types strings ([1fee5f0](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/1fee5f0))


### BREAKING CHANGES

* **server:** Team's teamType is now a string (e.g. 'managingEditor', 'reviewer')instead of an object.




<a name="2.0.5"></a>
## [2.0.5](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@2.0.4...pubsweet-server@2.0.5) (2018-03-28)


### Bug Fixes

* set owners when creating entities via GraphQL API ([992a1c2](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/992a1c2))




<a name="2.0.4"></a>
## [2.0.4](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@2.0.3...pubsweet-server@2.0.4) (2018-03-27)




**Note:** Version bump only for package pubsweet-server

<a name="2.0.3"></a>
## [2.0.3](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@2.0.2...pubsweet-server@2.0.3) (2018-03-19)


### Bug Fixes

* **server:** cast booleans to string when filtering ([25f55c3](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/25f55c3))




<a name="2.0.2"></a>
## [2.0.2](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@2.0.1...pubsweet-server@2.0.2) (2018-03-15)




**Note:** Version bump only for package pubsweet-server

<a name="2.0.1"></a>

## [2.0.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@2.0.0...pubsweet-server@2.0.1) (2018-03-09)

### Bug Fixes

* **server:** return file url from upload mutation ([e10a10f](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/e10a10f))

<a name="2.0.0"></a>

# [2.0.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@1.1.1...pubsweet-server@2.0.0) (2018-02-23)

### Features

* **server:** GraphQL endpoint improvements ([6b2858c](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/6b2858c))
* **server:** upload handling via GraphQL ([15b92e0](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/15b92e0))
* switch to PostgreSQL ([d459299](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/d459299))

### BREAKING CHANGES

* All data is now persisted in a PostgreSQL database instead of PouchDB
* Database server must be running and have an existing database before running `pubsweet setupdb` (Docker config provided)
`pubsweet start` runs `npm start` script if found and falls back to `pubsweet server`
`pubsweet server` starts the PubSweet server (like the old `pubsweet start`)
`pubsweet-server` model API is unchanged
* **server:** introduce pubsweet-server.uploads config value to specify location of uploaded files
Split GraphQL endpoint tests into separate files
Small refactor of api helper

<a name="1.1.1"></a>

## [1.1.1](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@1.1.0...pubsweet-server@1.1.1) (2018-02-16)

**Note:** Version bump only for package pubsweet-server

<a name="1.1.0"></a>

# [1.1.0](https://gitlab.coko.foundation/pubsweet/pubsweet/compare/pubsweet-server@1.0.7...pubsweet-server@1.1.0) (2018-02-02)

### Features

* **server:** add GraphQL endpoint with basic queries ([71383e3](https://gitlab.coko.foundation/pubsweet/pubsweet/commit/71383e3)), closes [#317](https://gitlab.coko.foundation/pubsweet/pubsweet/issues/317)
