Commit Graph

2784 Commits

Author SHA1 Message Date
Pascal Jufer
0d1fd7c77e Remove obsolete temporary theme field permission (#20920) 2023-12-29 11:46:30 +01:00
dependabot[bot]
8151f7a1ee Bump @aws-sdk/client-ses from 3.478.0 to 3.481.0 (#20917)
Bumps [@aws-sdk/client-ses](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-ses) from 3.478.0 to 3.481.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.481.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>
2023-12-29 03:13:09 +01:00
dependabot[bot]
1dc2fe693a Bump pino-http from 8.6.0 to 8.6.1 (#20916)
Bumps [pino-http](https://github.com/pinojs/pino-http) from 8.6.0 to 8.6.1.
- [Release notes](https://github.com/pinojs/pino-http/releases)
- [Commits](https://github.com/pinojs/pino-http/compare/v8.6.0...v8.6.1)

---
updated-dependencies:
- dependency-name: pino-http
  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>
2023-12-29 02:09:37 +01:00
daedalus
7e6f96f56b Remove admin only restriction for extension read operations (#20914)
* respect users permissions for list/get extensions

* add changeset
2023-12-29 00:22:25 +01:00
daedalus
99ea01aa74 Enable theme overrides permissions to be set on a per role basis (#20899) 2023-12-27 18:58:47 +01:00
Brainslug
60ea729957 Fix invite email error (#20891)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-27 11:33:26 +00:00
dependabot[bot]
a5233570b8 Bump openapi3-ts from 4.2.0 to 4.2.1 (#20885)
Bumps [openapi3-ts](https://github.com/metadevpro/openapi3-ts) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/metadevpro/openapi3-ts/releases)
- [Changelog](https://github.com/metadevpro/openapi3-ts/blob/master/Changelog.md)
- [Commits](https://github.com/metadevpro/openapi3-ts/commits)

---
updated-dependencies:
- dependency-name: openapi3-ts
  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>
2023-12-27 12:12:43 +01:00
Rijk van Zanten
2b9056cc80 Refactor default import logger with useLogger (#20872)
* useLogger

* Rework to useLogger and no globals

* Only export useLogger / createLogger

* Temp remove logger tests

* Refactor logger

* Refactor logger

* Refactor logger

* Refactor logger use

* Fix tests

* Fix logger usage in bootstrap

* Run formatter

* Remove logger tests

Feels drastic, but I'm about to rewrite them into @directus/logger :)

* Fix log operation test
2023-12-26 11:38:38 -05:00
Yasser Lahbibi
7eb22a4f23 feat(ws): register hooks for versioning (#20865)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-26 15:18:09 +00:00
Mahendra Kumar
d24e0f03f0 fix(api): bigInt auto increment not being reset in postgres (#20867)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-26 15:20:43 +01:00
Mahendra Kumar
128a47aff5 fix(graphql):handle nested originalError inside the GraphQLError.originalError in processError method (#20873)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-26 14:32:27 +01:00
Mahendra Kumar
e826f0fb2a fix(api): dont allow setting nullable for primary key while updating a field (#20874)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-26 11:52:21 +00:00
dependabot[bot]
3a7a5dcf57 Bump date-fns from 3.0.5 to 3.0.6 (#20870)
Bumps [date-fns](https://github.com/date-fns/date-fns) from 3.0.5 to 3.0.6.
- [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.0.5...v3.0.6)

---
updated-dependencies:
- dependency-name: date-fns
  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>
2023-12-25 10:14:58 +01:00
Rijk van Zanten
2c4be084c8 Replace default imports with useEnv (#20863)
* Use useEnv instead of default import

* Don't export default

* Update tests to mock useEnv

* Fix env usages

* Fix test issues

* replace setEnv use

* Fix various tests

* Fix more tests

* Fix more tests

* Fix get-cache-headers tests

* Fix sanitize-query test

* Fix logger tests

* Fix heartbeat tests

* Remove borked integration test

* Fix more tests

* Finish fixing tests
2023-12-24 11:56:06 -05:00
dependabot[bot]
caa0d3f2e5 Bump @types/qs from 6.9.10 to 6.9.11 (#20845)
* Bump @types/qs from 6.9.10 to 6.9.11

Bumps [@types/qs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/qs) from 6.9.10 to 6.9.11.
- [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>

* Add changeset

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-22 01:51:38 +00:00
dependabot[bot]
de2eb3c7ab Bump date-fns from 3.0.1 to 3.0.5 (#20846)
* Bump date-fns from 3.0.1 to 3.0.5

Bumps [date-fns](https://github.com/date-fns/date-fns) from 3.0.1 to 3.0.5.
- [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.0.1...v3.0.5)

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

Signed-off-by: dependabot[bot] <support@github.com>

* Add changeset

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-22 01:50:11 +00:00
dependabot[bot]
f2f89a1536 Bump oracledb from 6.2.0 to 6.3.0 (#20847)
* Bump oracledb from 6.2.0 to 6.3.0

Bumps [oracledb](https://github.com/oracle/node-oracledb) from 6.2.0 to 6.3.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.2.0...v6.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

* Add changeset

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-22 01:48:58 +00:00
Connor Winston
89e7333a2d Change Schema Snapshot Sort Ordering of Fields/Relations (#20704)
Co-authored-by: Connor <12714889+ConnorSimply@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-22 00:03:30 +01:00
daedalus
b32f826aec Fix unique name check for extension locations and extensions within bundles (#20785)
Co-authored-by: Pascal Jufer <5363448+paescuj@users.noreply.github.com>
Co-authored-by: Bryant Gillespie <23302570+bryantgillespie@users.noreply.github.com>
2023-12-21 22:44:05 +01:00
daedalus
ba8bf3a586 Validate custom primary key field on create (#20839)
* ensure custom primaryKey is valid before creating item

* add changeset

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-12-21 15:40:51 -05:00
Rijk van Zanten
c45cd69dd7 v10.8.3 2023-12-21 14:19:08 -05:00
Rijk van Zanten
c222511f1f Update telemetry (#20825)
* Setup shared redis abstraction

* Install directus/memory

* Add mini useEnv util for test mocking purposes

* Export missing class from directus/memory

* Update readme to include kv

* Uninstall memory

* Setup telemetry lib

* Reduce concurrency

* Finalize reporting

* Add tests for send-report

* Add tests for init

* Add tests for tracker

* Add tests for get-item-count

* Add test for wait time

* Add test for get-user-count

* Add test for get-user-item-count

* Fix type issue

* Throw error on non-ok fetch

* Init telemetry on server startup

* Tweak submission logic

* Fix tests, submit version

* Update config-options reference

* Cool kids don't use + in large numbers

* Add changesets

* Update docs/self-hosted/config-options.md

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

* Use vi stubGlobal

* Update api/src/env.ts

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

* Unstub as well

* Mock telemetry start in app test

* Update api/src/telemetry/types/report.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Fix default value in env

* Use toBoolean for env var casting

* Don't rely on knex as

Apparently it doesn't work reliably with count()

* Update api/src/telemetry/lib/init-telemetry.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Use getDatabaseClient for consistent clients

* Rename ingress->url

* Send my apologies to the formatting bot

* Fix version

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-12-21 14:08:42 -05:00
Rijk van Zanten
545d392e93 Deprecate utils/package.js in favor of directus/version (#20840)
* Deprecate utils/package.js in favor of directus/version

* Add changeset

* Drop version console log

* Make info reactive

* Fix import order

* Update directus/version.js

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

* Fix tests

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-21 13:53:22 -05:00
dependabot[bot]
a310ac1acf Bump openapi3-ts from 4.1.2 to 4.2.0 (#20828)
* Bump openapi3-ts from 4.1.2 to 4.2.0

Bumps [openapi3-ts](https://github.com/metadevpro/openapi3-ts) from 4.1.2 to 4.2.0.
- [Release notes](https://github.com/metadevpro/openapi3-ts/releases)
- [Changelog](https://github.com/metadevpro/openapi3-ts/blob/master/Changelog.md)
- [Commits](https://github.com/metadevpro/openapi3-ts/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>

* Add changeset

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-21 00:31:13 +00:00
dependabot[bot]
8ac3826dec Bump @aws-sdk/client-ses from 3.477.0 to 3.478.0 (#20827)
Bumps [@aws-sdk/client-ses](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-ses) from 3.477.0 to 3.478.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.478.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>
2023-12-21 01:29:26 +01:00
Brainslug
a8ef790ea2 Merge pull request from GHSA-qw9g-7549-7wg5
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-12-20 18:32:35 -05:00
Brainslug
c3211fcab6 added version to the API 2023-12-20 17:57:43 -05:00
Pascal Jufer
0534cc9407 Fix & enhance 'schema apply' output (#20816) 2023-12-20 16:21:36 +01:00
Nassan Paul
dc997d2dfc fix(#19386): fix cli schema apply display colors (#20792)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-20 14:50:31 +01:00
Azri Kahar
a706292c55 Enable no-constant-binary-expression eslint rule (#20812)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-20 13:24:02 +00:00
Pascal Jufer
154776e0ab Update date-fns to 3.0.1 (#20800) 2023-12-20 02:44:46 +01:00
Pascal Jufer
98532788d5 Selective Patch Tuesday 🐸 (#20796) 2023-12-20 00:26:15 +01:00
dependabot[bot]
8148841829 Bump sharp from 0.33.0 to 0.33.1 (#20786)
Bumps [sharp](https://github.com/lovell/sharp) from 0.33.0 to 0.33.1.
- [Release notes](https://github.com/lovell/sharp/releases)
- [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md)
- [Commits](https://github.com/lovell/sharp/compare/v0.33.0...v0.33.1)

---
updated-dependencies:
- dependency-name: sharp
  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>
2023-12-19 02:56:27 +01:00
Steve Fan
71032776f9 Add the latest version of oracledb to api/package.json (#19067)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-12-18 12:17:05 +00:00
Pascal Jufer
a885ccac01 Update Knex to v3 (#20766) 2023-12-16 02:00:10 +01:00
Brainslug
b576c6e5e0 Fixes enabling/disabling extensions (#20677)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-15 17:41:16 +00:00
dependabot[bot]
46c6dac816 Bump pino-pretty from 10.2.3 to 10.3.0 (#20754)
Bumps [pino-pretty](https://github.com/pinojs/pino-pretty) from 10.2.3 to 10.3.0.
- [Release notes](https://github.com/pinojs/pino-pretty/releases)
- [Commits](https://github.com/pinojs/pino-pretty/compare/v10.2.3...v10.3.0)

---
updated-dependencies:
- dependency-name: pino-pretty
  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>
2023-12-15 02:43:49 +01:00
Wasim Thoufiq
12643385db Fix BigInt primary key routing (#20744)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-14 17:13:47 +00:00
dependabot[bot]
25190b42f1 Bump ws from 8.15.0 to 8.15.1 (#20726)
Bumps [ws](https://github.com/websockets/ws) from 8.15.0 to 8.15.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.15.0...8.15.1)

---
updated-dependencies:
- dependency-name: ws
  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>
2023-12-13 02:24:07 +01:00
daedalus
f2728506d2 public_favicon should be a system relation (#20724) 2023-12-12 21:12:48 +01:00
Pascal Jufer
5e72ea1b08 Patch Tuesday 🐸 (#20714) 2023-12-12 04:36:50 +01:00
Pascal Jufer
1a07d7355d Update TypeScript to 5.3.3 (#20710) 2023-12-11 20:39:34 +01:00
Pascal Jufer
36c08e2265 Remove flaky api storage test (#20701) 2023-12-11 16:13:37 +01:00
dependabot[bot]
30d53c5df6 Bump @types/destroy from 1.0.0 to 1.0.3 (#20697)
Bumps [@types/destroy](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/destroy) from 1.0.0 to 1.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/destroy)

---
updated-dependencies:
- dependency-name: "@types/destroy"
  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>
2023-12-11 00:55:03 +00:00
Pascal Jufer
81c9156508 Update Vitest to v1 (#20694) 2023-12-10 19:49:45 +01:00
dependabot[bot]
76b7b85303 Bump @rollup/plugin-node-resolve from 15.0.2 to 15.2.3 (#20680)
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) from 15.0.2 to 15.2.3.
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/node-resolve-v15.2.3/packages/node-resolve)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-node-resolve"
  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>
2023-12-08 13:11:03 +01:00
dependabot[bot]
30ccd9fdd9 Bump openid-client from 5.4.2 to 5.6.1 (#20678)
Bumps [openid-client](https://github.com/panva/node-openid-client) from 5.4.2 to 5.6.1.
- [Release notes](https://github.com/panva/node-openid-client/releases)
- [Changelog](https://github.com/panva/node-openid-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/panva/node-openid-client/compare/v5.4.2...v5.6.1)

---
updated-dependencies:
- dependency-name: openid-client
  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>
2023-12-08 11:15:09 +01:00
Brainslug
6671f1c603 GraphQL Content Versions (#20499)
* WIP alternative gql approach for versions

* incorrect schema type

* finally got something working

* ran prettier

* prettier

* prettier

* limited _by_version to items scope

* removed debug comments and logs

* fixed singleton versions

* updated docs

* Added breaking change notice

* undid unneed change

* prettier

* Create six-trees-cry.md

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

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-12-07 21:35:27 +08:00
dependabot[bot]
ae31ef8ac7 Bump @types/express from 4.17.17 to 4.17.21 (#20667)
Bumps [@types/express](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express) from 4.17.17 to 4.17.21.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express)

---
updated-dependencies:
- dependency-name: "@types/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>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-12-07 13:27:57 +01:00
dependabot[bot]
d7601b0fee Bump helmet from 7.0.0 to 7.1.0 (#20668)
Bumps [helmet](https://github.com/helmetjs/helmet) from 7.0.0 to 7.1.0.
- [Changelog](https://github.com/helmetjs/helmet/blob/main/CHANGELOG.md)
- [Commits](https://github.com/helmetjs/helmet/compare/v7.0.0...v7.1.0)

---
updated-dependencies:
- dependency-name: helmet
  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>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-12-07 13:27:21 +01:00