Commit Graph

2945 Commits

Author SHA1 Message Date
Pascal Jufer
c9105eaead Use Item/PrimaryKey from and move Alterations to @directus/types (#22027)
Co-authored-by: ian <licitdev@gmail.com>
2024-04-08 10:12:26 +02:00
Rijk van Zanten
bd4b8b5949 v10.10.5 2024-04-03 15:47:12 -04:00
Rijk van Zanten
1ff4bf3330 Improve schema retrieval by caching the schema cache creation (#21824)
* Don't await non-async function

* Add process lock to system schema cache generation

* Add changeset

* Publish message on failure as well to release waiting process

* Update api/src/utils/get-schema.ts

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update api/src/utils/get-schema.ts

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Unsubscribe on callback

* Optimize db init

* Add timeout and infinite loop protection

* Reduce max attempts

* Clear timeout on callback

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-04-03 14:51:22 -04:00
dependabot[bot]
682afa0068 Bump nodemailer from 6.9.12 to 6.9.13 (#22057)
Bumps [nodemailer](https://github.com/nodemailer/nodemailer) from 6.9.12 to 6.9.13.
- [Release notes](https://github.com/nodemailer/nodemailer/releases)
- [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodemailer/nodemailer/compare/v6.9.12...v6.9.13)

---
updated-dependencies:
- dependency-name: nodemailer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-03 08:11:51 +02:00
dependabot[bot]
1925393a69 Bump pg from 8.11.3 to 8.11.4 (#22044)
Bumps [pg](https://github.com/brianc/node-postgres/tree/HEAD/packages/pg) from 8.11.3 to 8.11.4.
- [Changelog](https://github.com/brianc/node-postgres/blob/master/CHANGELOG.md)
- [Commits](https://github.com/brianc/node-postgres/commits/pg@8.11.4/packages/pg)

---
updated-dependencies:
- dependency-name: pg
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 08:15:55 +02:00
Pascal Jufer
1120568b45 Fix migration for module bundle extensions (#21857)
* Fix migration/settings for module bundle extensions

* Revert settings lookup

* Add changeset
2024-04-01 14:34:48 +02:00
Pascal Jufer
b4dc3bcd28 Fix randomUUID import in Webhooks deprecation migration (#22029) 2024-03-31 23:27:32 -04:00
Pascal Jufer
081cd5a35f Update copyright year in remaining licenses (#22030) 2024-03-31 19:58:03 -04:00
Brainslug
59bb45bd38 Remove or re-install missing extensions (#21969)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-30 15:47:42 +01:00
Rijk van Zanten
43cf048d21 Update migrations to fix initialization on MS SQL and CockroachDB (#22019)
* Alter migration to succeed in Crdb 23

* Add changeset
2024-03-29 15:07:45 -04:00
Daniel Biegler
7f14e387ed Fix 15553 remove webhooks (1/2) (#21808)
* add deprecation notice to webhooks

I dont like how the "Flows"-Link is not a real router-link so it reloads the page but we could sort this out later in the PR

* add feature flag store

* make links reactive

* add depreaction to webhook item route too

* better progressive deprecation, update translation

* fix batch deletion of webhooks

* remove batch editing (it doesnt work), remove irrelevant now code

* add changeset

* add up migration

* improve upon migration

* disallow creation of new webhooks

* remove create action

* remove isvisible field

no longer used

* remove feature flags store

no longer needed

* rm featureflag store remnants

* hide webhook fields from migration

* update comment

* change width of notice

* rm button for creating webhooks

* add changeset

* Update api/src/database/migrations/20240311A-deprecate-webhooks.ts

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update api/src/controllers/webhooks.ts

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* prettier

* add changeset for system data

* update changesets

* remove top padding

* update deprecation notice

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* remove ability to patch webhooks and relevant snippets from its item route

* rm bottom padding since v-form has its own

* remove Flows created by the up-migration

* only add run-script if needed

* filter whitespace values out

* deprecate webhooks on service level

* fix tests for webhooksservice

* reuse deprecation error

* add deprecation and update test for updateBatch

* update changeset

* remove webhook initialization and handling

* remove check for POST

people could use raw values for PATCH, SEARCH, etc.

* Filter empty collections in migration

* skip run script for GET requests

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <tim@brainslug.nl>
2024-03-28 17:10:06 +01:00
dependabot[bot]
475dc8d5d9 Bump sanitize-html from 2.12.1 to 2.13.0 (#22004)
Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.12.1 to 2.13.0.
- [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apostrophecms/sanitize-html/compare/2.12.1...2.13.0)

---
updated-dependencies:
- dependency-name: sanitize-html
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 11:04:42 +01:00
dependabot[bot]
d457a0cc62 Bump @types/qs from 6.9.12 to 6.9.14 (#22006)
Bumps [@types/qs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/qs) from 6.9.12 to 6.9.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/qs)

---
updated-dependencies:
- dependency-name: "@types/qs"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 11:03:54 +01:00
dependabot[bot]
f17a26e490 Bump express from 4.19.1 to 4.19.2 (#21989)
Bumps [express](https://github.com/expressjs/express) from 4.19.1 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.1...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 11:07:55 +01:00
dependabot[bot]
2215ab9ff0 Bump date-fns from 3.4.0 to 3.6.0 (#21990)
Bumps [date-fns](https://github.com/date-fns/date-fns) from 3.4.0 to 3.6.0.
- [Release notes](https://github.com/date-fns/date-fns/releases)
- [Changelog](https://github.com/date-fns/date-fns/blob/main/CHANGELOG.md)
- [Commits](https://github.com/date-fns/date-fns/compare/v3.4.0...v3.6.0)

---
updated-dependencies:
- dependency-name: date-fns
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 11:07:20 +01:00
dependabot[bot]
502ba82b8c Bump @vitest/coverage-v8 from 1.3.1 to 1.4.0 (#21975)
Bumps [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v1.4.0/packages/coverage-v8)

---
updated-dependencies:
- dependency-name: "@vitest/coverage-v8"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-26 07:08:42 +01:00
Gerard Lamusse
8336b4d868 Add onUpdate constraint to relations service (#21190)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-25 13:02:49 +00:00
Connor Winston
7259938c47 Truncate User-Agent to 1024 Chars and Migrate DB Column (#21687)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-25 12:58:02 +00:00
Brainslug
5650cdd33c Hiding non session SSO providers from the app (#21874) 2024-03-25 11:55:53 +01:00
José Varela
114b249d00 Notify other instances when extension is updated (#21908)
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-25 11:15:41 +01:00
dependabot[bot]
7690c0a1e9 Bump express from 4.18.3 to 4.19.1 (#21962)
Bumps [express](https://github.com/expressjs/express) from 4.18.3 to 4.19.1.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.3...4.19.1)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-25 10:21:36 +01:00
dependabot[bot]
da77036aa8 Bump @types/node from 18.19.24 to 18.19.26 (#21912)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.24 to 18.19.26.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-20 12:37:33 +01:00
Brainslug
90476ccf17 WebSocket Session Authentication (#21837)
* session auth experiments

* simplified cookie parsing

* forgot the package json

* Create brave-walls-scream.md

* prettier
2024-03-19 11:37:23 -04:00
dependabot[bot]
a65141018d Bump nodemailer from 6.9.11 to 6.9.12 (#21898)
Bumps [nodemailer](https://github.com/nodemailer/nodemailer) from 6.9.11 to 6.9.12.
- [Release notes](https://github.com/nodemailer/nodemailer/releases)
- [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodemailer/nodemailer/compare/v6.9.11...v6.9.12)

---
updated-dependencies:
- dependency-name: nodemailer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-19 11:38:22 +01:00
dependabot[bot]
2be3c9f05a Bump inquirer from 9.2.15 to 9.2.16 (#21861)
Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.2.15 to 9.2.16.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.2.15...inquirer@9.2.16)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-15 01:44:44 +01:00
Pascal Jufer
4fcc053d2a Move @directus/format-title into the monorepo (#21847) 2024-03-14 10:33:47 -04:00
kaifulee
2204a41383 chore: remove repetitive words (#21835)
Signed-off-by: kaifulee <cuishuang@outlook.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-14 11:06:51 +00:00
dependabot[bot]
b5f18fdfb4 Bump @types/node from 18.19.21 to 18.19.24 (#21845)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.21 to 18.19.24.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 10:14:15 +01:00
dependabot[bot]
a625ce0560 Bump oracledb from 6.3.0 to 6.4.0 (#21844)
Bumps [oracledb](https://github.com/oracle/node-oracledb) from 6.3.0 to 6.4.0.
- [Release notes](https://github.com/oracle/node-oracledb/releases)
- [Changelog](https://github.com/oracle/node-oracledb/blob/main/CHANGELOG.md)
- [Commits](https://github.com/oracle/node-oracledb/compare/v6.3.0...v6.4.0)

---
updated-dependencies:
- dependency-name: oracledb
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 10:13:42 +01:00
dependabot[bot]
1d60a4a357 Bump @aws-sdk/client-ses from 3.529.0 to 3.533.0 (#21842)
Bumps [@aws-sdk/client-ses](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-ses) from 3.529.0 to 3.533.0.
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-ses/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.533.0/clients/client-ses)

---
updated-dependencies:
- dependency-name: "@aws-sdk/client-ses"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 01:08:47 +00:00
dependabot[bot]
16d1554d85 Bump marked from 12.0.0 to 12.0.1 (#21841)
Bumps [marked](https://github.com/markedjs/marked) from 12.0.0 to 12.0.1.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v12.0.0...v12.0.1)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 01:07:30 +00:00
ian
233054440f Optimise multi-field update operations (#21818) 2024-03-13 18:44:58 +01:00
daedalus
7bea23b7f5 Add the ability to configure the error, bug and feature URLs (#21174)
* add report url fields

* update field template to be agnostic

* add changeset

* various fixes

* rename handler to load path level

* add translations

* updated docs

* fix tests

* add placeholder support for system-display-template

* refactor project to report and move to their own settings section

* example urls should be more concrete

Co-Authored-By: Pascal Jufer <5363448+paescuj@users.noreply.github.com>

* move hardcoded default report urls to constants

Co-Authored-By: Pascal Jufer <5363448+paescuj@users.noreply.github.com>

* Make nav reactive, so URL changes are immediate

* change order of report urls

* change icon to feedback

* move composable to top level

* remove ref, use from prop

* Update .changeset/tender-timers-develop.md

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* rm select_a_collection_or_tree_fields translation key

---------

Co-authored-by: Pascal Jufer <5363448+paescuj@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
2024-03-13 15:04:25 +01:00
Rijk van Zanten
af2a79fbf3 v10.10.4 2024-03-12 13:30:31 -04:00
Rijk van Zanten
6ea2891b21 Add scope in gql schema cache key (#21821)
* Add scope in gql schema cache key

* Add changeset
2024-03-12 13:29:50 -04:00
dependabot[bot]
6c533d6a08 Bump date-fns from 3.3.1 to 3.4.0 (#21812)
Bumps [date-fns](https://github.com/date-fns/date-fns) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/date-fns/date-fns/releases)
- [Changelog](https://github.com/date-fns/date-fns/blob/main/CHANGELOG.md)
- [Commits](https://github.com/date-fns/date-fns/compare/v3.3.1...v3.4.0)

---
updated-dependencies:
- dependency-name: date-fns
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 08:56:25 +01:00
Rijk van Zanten
c09ebbacd4 v10.10.3 2024-03-11 17:29:21 -04:00
Rijk van Zanten
f0e910ee58 Add LRU cache to GraphQLSchema generation (#21783)
* Install mnemonist

* Add LRU cache for graphql schema

* Add changeset

* Update api/src/services/graphql/index.ts

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Add env var to /env and docs

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-11 17:23:34 -04:00
Rijk van Zanten
c24dc0079a Add REDIS_ENABLED env var (#21809)
* Add REDIS_ENABLED env var

* Add changeset

* Remove previous attempt
2024-03-11 17:08:50 -04:00
Pascal Jufer
4575ce3a20 Return payload of sandboxed operation extensions (#21789)
* Return payload of sandboxed operation extensions

* Add changeset

* Align handler param with type
2024-03-10 22:56:48 +00:00
Rijk van Zanten
2e259d07cd v10.10.2 2024-03-08 18:00:48 -05:00
Pascal Jufer
4395fe1b66 Enable extensions auto reloading in dev mode (#21780)
* Enable extensions auto reloading in dev mode

* Add changeset
2024-03-08 17:57:28 -05:00
Pascal Jufer
06187df2b8 Prevent error when reloading sandboxed extensions (#21781)
* Prevent error with extensions auto reload of sandboxed extensions

* Add changeset
2024-03-08 17:50:59 -05:00
Pascal Jufer
b8ea374365 Fix extensions auto reloading (#21779)
* Fix extension auto reload

* Add changeset

* Update changeset wording
2024-03-08 17:49:22 -05:00
Pascal Jufer
ce7ce211f8 Remove over-engineered sanitizeError function (#21750) 2024-03-08 21:42:28 +01:00
Pascal Jufer
5cc89ef430 Clean-up and serialize errors thrown in async Sandbox SDK functions (#21749) 2024-03-08 21:42:12 +01:00
Rijk van Zanten
cc889bb578 Fix extensions sync issue when EXTENSIONS_LOCATION is set (#21747)
* Fix issue causing pm2 processes to get out of sync

* Setup lock abstraction based on memory/kv

* Use lock-based strategy rather than primary process

* Don't require amount (defaults to 1)

* Add changeset

* Update .changeset/dry-crews-scream.md

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Force sync on uninstall as well

* Delete lock in every case

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-08 12:28:01 -05:00
Ewout Stortenbeker
bd91484443 Return send mail promise (#21741) 2024-03-08 10:23:44 +00:00
dependabot[bot]
c7fadef2d3 Bump qs from 6.11.2 to 6.12.0 (#21752)
Bumps [qs](https://github.com/ljharb/qs) from 6.11.2 to 6.12.0.
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.11.2...v6.12.0)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 10:12:53 +01:00
Pascal Jufer
0ef1f3dd3e Fix loading of Sandbox Operation Extensions (#21751) 2024-03-08 09:24:02 +01:00