Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
To find the state of this project's repository at the time of any of these versions, check out the tags.
CHANGELOG.md 52.10 KiB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

4.3.0 (2024-12-13)

Features

  • graphql: export race from graphql shield (fc3cfcc)

Bug Fixes

  • server: do not throw error if subscriptions db is not defined in config (4adf2a1)

4.2.0 (2024-11-29)

Features

  • fileStorage: allow aws s3 connection without key secret pair (a703310)

4.1.1 (2024-11-19)

Bug Fixes

  • db: fix object destructure for fallback db values (67c7c31)

4.1.0 (2024-11-19)

Features

  • db: allow passing an encoded ca certificate through envornment variables (c44ac0b)
  • db: allow subscriptions to connect to a different db (17803a0)

Bug Fixes

  • db: correctly read allow self signed certificates variable (45f189c)

4.0.2 (2024-10-31)

Bug Fixes

  • api: return Int when deleting users in bulk (1b7a2aa)

4.0.1 (2024-10-21)

Bug Fixes

  • server: do not print user emails in the logs (8b1cde9)

4.0.0 (2024-10-21)

Bug Fixes

  • server: fix wrong function call in notify email (fc4b006)

4.0.0-beta.7 (2024-09-24)

Features

  • allow globs to be ignored by nodemon (a1a07ac)

4.0.0-beta.6 (2024-08-30)

Bug Fixes

  • server: fix helmet cross origin resource policy (f42d235)

4.0.0-beta.5 (2024-08-29)

Bug Fixes

  • graphql: fix when graphql upload express is called (71495b7)

4.0.0-beta.4 (2024-08-29)

Bug Fixes

  • graphql: make sure gql errors are logged (b24aab0)

4.0.0-beta.3 (2024-08-29)

Bug Fixes

  • server: fix serving of static assets from the server (a95ccd3)

4.0.0-beta.2 (2024-08-29)

Bug Fixes

  • graphql: do not initialize graphql test server on index import (0af6155)
  • graphql: fix pubsub noop error method (8a6f13c)
  • graphql: fix useGraphql not being true by default for pubsub (fe060d8)

4.0.0-beta.1 (2024-08-29)

Features

  • models: trigger subscription when user is updated (9531ad9)

4.0.0-beta.0 (2024-08-29)

BREAKING CHANGES

  • s3 protocol, host, port is now url
  • server: drop hardcoded POSTGRES_ALLOW_SELF_SIGNED_CERTIFICATES reference
  • models: deleting a chat channel now deletes its messages too
  • graphql: Renamed types TeamsResponse and ChatChannelResponse to Teams and ChatChannels respectively.
  • graphql: Renamed sendMessage, editMessage and deleteMessage to senChatMessage, editChatMessage and deleteChatMessage respectively. UpdateUserInput id is now not nullable.
  • graphql: renamed gql chatChannels where to filter
  • graphql: renamed gql users options to users pagination
  • graphql: renamed UserQueryParams to UserFilter
  • graphql: gql user id param and user result are not nullable
  • graphql: gql totalCount is now not nullable
  • graphql: make teamMember id and user in gql not-nullable
  • graphql: drop getGlobalTeams, getObjectTeams, rename TeamWhereInput to TeamFilter
  • models: chat threads renamed to chat channels, chat message chatThreadId renamed to chatChannelId
  • models: graphql UpdateInput has been renamed to UpdateUserInput. identityId has been dropped from UpdateInput.
  • models: deleteByIds does not return ids but number of rows now
  • models: delete identities on user deletion
  • ctx.user is renamed to ctx.userId
  • server: renamed pubsub to subscriptionManager
  • server: allow unauthenticated subscriptions
  • rename filestorage deletefiles to delete
  • drop connectToFileStorage and rename fileStorage to FileStorage
  • models: modelTypes is now modelJsonSchemaTypes
  • models: all nullable model types now have a default of null
  • password reset token expiry now has default value (24 hours)
  • drop exporting startServer
  • drop extending typedefs and resolvers through config
  • drop upload to disk endpoints
  • drop serveClient option
  • drop automatically serving _build and static folders
  • db manager: drop createTables script
  • drop extending the express app
  • changed teams config structure
  • dropped password-reset.token-length
  • config.password-reset renamed to config.passwordReset
  • drop extending apollo through config
  • dropped pubsweet from config
  • dropped pubsweet-server from config
  • db manager: drop DATABASE_URL environment variable

Features

  • add helpful error message for pubsweet config changes (c82b1da)
  • add job manager and job definitions config (bfa6b22)
  • add messages for removed keys (52d0880)
  • add meta table and constraints on migration files (6d906bc)
  • add onStartup hook for custom init scripts (3c43420)
  • add write to temp util (e4ccbde)
  • allow config to define mount point for static folders (85fe5b5)
  • check for db connection at startup (d28c24f)
  • cli: add circular command (5242ba2)
  • cli: add start command (c06e2f3)
  • cli: add start-dev command (24b9821)
  • cli: expand migrate command functionality (633d485)
  • db manager: drop DATABASE_URL environment variable (4f52e20)
  • db manager: remove create tables script (6decbef)
  • define static folders to serve through config (41f9b26)
  • drop app.locals and @pubsweet/models (35a424b)
  • drop authsome (8dab3e5)
  • drop entities table via core migrations (8e33a50)
  • dropped connectors (fdd0d8e)
  • dropped password reset token length config option (38f4a11)
  • export withFilter for subscriptions (fbea60d)
  • expose graphql test server for api testing (870ea1b)
  • expose standardized temp folder path (eb68bc8)
  • expose temp folder utility functions (7593192)
  • fileStorage: allow file storage connection config to be overriden through createfile and deletefile (a37f2ea)
  • graphql: rename chat channels where to filter and add api tests (df46d65)
  • graphql: rename chat message mutations and add docs for all mutations (19adcd0)
  • graphql: rename users options to pagination (33c3e79)
  • graphql: simplify type naming for teams and chat channels (dff3adb)
  • graphql: update team graphql api (ebd04d5)
  • graphql: user query params is now user filter (347b780)
  • improve config validations (662f16a)
  • install pgcrypto via core migrations (f3f710d)
  • make all config pubsweet keys top-level (53dcc94)
  • make all config pubsweet-server keys top-level (ff81563)
  • make file storage a singleton class (64ed7c3)
  • make teams configs arrays (c89bf90)
  • models: base model delete by ids returns number of affected rows (14c688e)
  • models: delete chat messages on chat channel delete cascade (dfe071c)
  • models: delete identities on cascade when user delete happens (467ef39)
  • models: export models directly from coko server (fa9b8d1)
  • models: rename chat threads to chat channels (e6f7649)
  • models: rename exported modelTypes to modelJsonSchemaTypes (53c6d01)
  • models: rename UpdateInput to UpdateUserInput (2676458)
  • models: skip full size image migration if file storage is not used at all (a9f447f)
  • only update migrate checkpoint if it has changed (7b8a576)
  • remove config option to serve client (b098a4b)
  • remove config.apollo from configuration (70e26ac)
  • remove option to extend the express app (2039f87)
  • remove option to extend typedefs and resolvers through config (c42abad)
  • remove start server export (57cbc86)
  • remove upload to disk endpoints and uploads config (c71eb55)
  • rename ctx.user in graphql to ctx.userId (ea7da11)
  • rename filestorage deleteFiles to delete (8c876b9)
  • rename password reset config to camelcase (6255f95)
  • server: add option to add custom shutdown scripts (e5bca73)
  • server: do not throw error when subscriptions do not provide an auth token (5b485db)
  • server: expose subscription manager instead of pubsub and make less verbose (b046ca1)
  • server: make mailer fall back on ethereal if not in prod and overridable (997ad99)
  • server: record last successful migrate run (f704050)
  • server: remove hardcoded POSTGRES_ALLOW_SELF_SIGNED_CERTIFICATES reference, let app handle it (c95bcef)
  • server: seed global teams at server startup (2bab536)
  • server: upgrade to apollo server v4 (5a1e103)
  • simplify s3 url config (cd5b1c2)
  • upgrade aws-sdk to v3 (fae0125)

Bug Fixes

  • add useJobQueue to list of removed config keys (56e9139)

  • cli: fix circular command not exiting (285e44a)

  • fix graphql cors (4f0adde)

  • fix optional missing keys crashing (797ec71)

  • graphql: fix isAdmin shield permission (06c7970)

  • graphql: make sure totalCount cannot be null (6c51caa)

  • graphql: make user query result and id param not nullable (2a9f174)

  • graphql: set not nullable values on members and add type docs for teams (9c58861)

  • server: fix startServer imports (7ecc1e8)

  • server: make sure nodemon restarts for non-js files (8154927)

  • models: upgrade knex and objection (d4e0b2a)

  • upgrade faker (6b4b708)

3.13.2 (2024-08-27)

Bug Fixes

  • models: make team member status nullable (b91df44)

3.13.1 (2024-05-14)

Bug Fixes

  • server: fix bug where server crashes if teams are not defined (62d20ff)

3.13.0 (2024-04-29)

Features

  • expose isEnvVariableTrue helper function (2ac0bac)

Bug Fixes

  • db-manager: fix immutability issue of db config so that it can be extended (d75713b)

3.12.0 (2024-04-29)

Features

  • db-manager: add POSTGRES_ALLOW_SELF_SIGNED_CERTIFICATES env variable (5589a8e)

Bug Fixes

  • switch s3 healthcheck to using headBucket for compatibility with do (d732d75)

3.11.0 (2024-04-18)

Features

  • db-manager: expose create tables command (3611f59)

3.10.1 (2024-02-22)

Bug Fixes

  • make coko-server cli work (7f480ad)

3.10.1-alpha.0 (2024-02-22)

Bug Fixes

  • fix cli path in package.json (df06372)

3.10.0 (2024-02-16)

Features

  • expose migrate as a function (ebdd3dc)

3.9.1 (2024-02-13)

3.9.0 (2024-02-01)

Features

  • add activity log service (697038f)

Bug Fixes

  • server: andle oauth refresh token having 0 as its expiration value (14cd7f3)
  • server: fix identity-tokens circular dependency (8beb1df)
  • server: handle access token becoming invalid before expiration (89fedbd)

3.8.2-beta.1 (2024-01-30)

Bug Fixes

  • server: fix pubsubmanager imports (3f1bb6a)

3.8.2-beta.0 (2024-01-30)

Bug Fixes

  • fix jobs circular dependency (897834f)

3.8.1 (2024-01-23)

Bug Fixes

  • server: allow files without mimetype to be uploaded (cca8846)

3.8.0 (2023-12-22)

Features

  • add new env variable for separate s3 delete operations (80c5ad7)

3.7.1 (2023-12-21)

Bug Fixes

  • models: force lowercase emails in identity find methods (9e2a254)
  • models: remove non-existent user.email field from api (3e403b0)

3.7.0 (2023-12-20)

Features

  • server: expose sanitized clientUrl and serverUrl (8a32d5e)

3.6.0 (2023-12-19)

Features

  • server: remove trailing slashes from client url (da79590)

Bug Fixes

  • models: fix migration failing when multiple files use the same object key (22f0218)

3.5.0 (2023-12-19)

Features

  • models: add optional status on updateMembershipByTeamId (09adbe2)

Bug Fixes

  • duplicate identity crashes server (d2fb19f)
  • server: correctly update existing oauth identities (479cc60)

3.4.1 (2023-12-15)

Bug Fixes

  • handle refresh token expiration (eb70a4b)

3.4.0 (2023-12-13)

Features

  • make s3 style path configurable (f84130e)

3.3.1 (2023-12-08)

Bug Fixes

  • use s3 api instead of axios for full size image migration (80d1c44)

3.3.0 (2023-12-06)

Features

  • add deferred job for renewing refresh tokens (2f57018)

3.2.3 (2023-11-28)

Bug Fixes

  • server: correct return for getAuthTokens (0381570)

3.2.2 (2023-11-28)

Bug Fixes

  • use utc for expiration times (71847cf)

3.2.1 (2023-11-18)

Bug Fixes

  • add redirect uri to integration authenticated call (a0b2531)

3.2.0 (2023-11-17)

Features

  • add function to make authenticated oauth calls (8e52c4a)
  • models: add expiration to oauth tokens in identities (9ebdf48)
  • server: add function to make authenticated call to integration (313929d)

Bug Fixes

  • models: add constraint that makes provider-email combinations unique (f04f589)

3.1.1 (2023-11-10)

Bug Fixes

  • server: fix file migration import paths (bb4f94f)

3.1.0 (2023-11-08)

Features

  • add full size conversion to image uploads (6effd16)

3.0.1 (2023-10-19)

Bug Fixes

  • server: await promise when returning image width (a8f4ec2)

3.0.0 (2023-10-03)

Features

  • upgrade bcrypt to allow using node 18+ (f946a3e)

Bug Fixes

  • update gql shield version in lockfile (10d9be1)

3.0.0-beta.16 (2023-07-20)

Features

  • server: add wax to docx converter (2febe66)