2674 Commits

Author SHA1 Message Date
Pascal Jufer
e987c1990e 10.6.4 (#20102) 2023-10-20 18:55:45 +00:00
mscbpi
243e610018 Fix http range request when transformation in use (#20060)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-18 18:19:37 +00:00
Boegie19
d82bb9c823 move api/errors to @directus/errors package (#20054)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-18 18:19:22 +02:00
Brainslug
ba2ae33143 Fixed incorrect extension path (#20040) 2023-10-16 11:30:34 +02:00
Gerard Lamusse
bf05c8fd8e Replace csv-parser with papaparse (#19739)
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-12 17:07:18 +00:00
Daniel Biegler
4d0f8e07b5 Change csv db type to text (#19953)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-11 20:35:56 +00:00
Rob Lee
51a2fcbd53 Add a cache clear method to the UtilsService (#19990)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-11 20:14:59 +00:00
Nihcep
292e3b4742 Fixed handling of multiple WebSocket subscriptions on same target (#20005)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-11 20:01:41 +00:00
Brainslug
a982dfcd76 Fix websocket subscription filtering (#19743)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: ian <licitdev@gmail.com>
2023-10-11 14:56:40 +02:00
Rijk van Zanten
d68ec5fda7 Cleanup imports (#19966)
* Cleanup imports

* Add changeset
2023-10-09 15:17:29 -04:00
Nitwel
fe833626d4 fix __dirname being undefined (#19955) 2023-10-09 12:54:15 +02:00
Rijk van Zanten
1383e85fe9 Cleanup extensions dependencies (#19922)
* Setup boilerplate for extensions page

* Allow reading all extensions from the root endpoint

* Add basic sidebar info detail

* Render list of extensions

* Move extensions manager to folder

* Move stuff related to extensions to @directus/extensions

* Import extensions utils/types/etc from ext. package

* Resolve last imports

* Temp remove settings pane

Different PR!

* Add changeset

* Run formatter

* Fix import in test
2023-10-05 19:20:26 -04:00
Rijk van Zanten
119f41e85b Check for non-success status in LDAP (#19904)
* Check for non-success status in LDAP

Fixes #19878

* Add changeset
2023-10-04 15:07:51 -04:00
José Varela
f96eda89e1 Import: Do task in a separate worker (#19691)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: ian <licitdev@gmail.com>
2023-10-04 11:39:40 +02:00
Pascal Jufer
e1dd6fa037 Update TS related dependencies and configurations (#19866) 2023-09-29 14:45:47 +02:00
Rijk van Zanten
fe0b1efcca Use comments for embed insertion (#19860)
* Use comments for embed insertion

* Add changeset
2023-09-28 16:38:53 -04:00
Pascal Jufer
45f8eebf37 Fix redaction of objects with circular structure (#19834) 2023-09-28 17:32:26 +02:00
Rijk van Zanten
fd03a3d78c Revert "Add util to send notifications to admins (#19508)" (#19838)
This reverts commit 66ade28b96.
2023-09-28 08:40:36 -04:00
Nitwel
66ade28b96 Add util to send notifications to admins (#19508)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-09-28 10:38:43 +02:00
Pascal Jufer
3a40aea9f8 Continue termination when WebSocket is disabled (#19826)
Co-authored-by: Brainslug <tim@brainslug.nl>
2023-09-27 18:20:44 +02:00
Jan Arends
aeed9c056b Enabled capitzalized table names for sequence reset (#19825)
* escaped identifiers

* fix

* used parameters for values and knex for escaping identifiers

* changeset

* Update api/src/database/helpers/sequence/dialects/postgres.ts

* Update .changeset/silver-cars-hear.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-09-27 13:12:02 +00:00
José Varela
9e1ae56b65 Export: Fix empty file when limit is -1 (#19820)
* Negative numbers should return all data

* Add changeset
2023-09-26 14:38:37 -04:00
Pascal Jufer
c67775a9a0 Bundle packages (#19712)
* Bundle `@directus/composables`

* Bundle `@directus/constants`

* Align tsconfig in `data` packages

To prevent warnings like
> Cannot write file 'packages/data-sql/dist/index.d.ts' because it would overwrite input file

* Bundle `@directus/pressure`

* Align tsconfig in `@directus/random`

* Bundle `@directus/schema`

* Bundle `@directus/storage`

* Bundle `@directus/storage-driver-azure`

* Bundle `@directus/storage-driver-cloudinary`

* Bundle `@directus/storage-driver-gcs`

* Bundle `@directus/storage-driver-local`

* Bundle `@directus/storage-driver-s3`

* Align tsconfig in `@directus/themes`

* Bundle `@directus/update-check`

* Add changeset

* Bundle `storage-driver-supabase`

* Update changeset

* Remove dedicated export of 'types/overview'
2023-09-26 21:14:27 +08:00
Nitwel
632b968c1f Fix hiding navigation on root folder (#19518)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-09-26 14:52:37 +02:00
Zehir
c0e3467368 Make the transformation argument of AssetsService.getAsset() optional (#19808)
* Ignore dev container

* getAsset() optional transformation

* Sign contributor license

* Run prettier

* Run prettier again

* Update .changeset/silent-radios-talk.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-09-26 11:14:08 +02:00
Rijk van Zanten
926f19d3fa 10.6.3 2023-09-25 15:43:10 -04:00
Rijk van Zanten
8a62031362 Add email validation on user create/update (#19794)
* Add email validation message error

* Validate emails on user create/update

* Add translation for app display
2023-09-25 09:54:56 -04:00
Daniel Biegler
8374a9a8b6 Pass file-id down so that FilesService can replace asset upon URL import (#19788) 2023-09-25 13:23:50 +02:00
Stanislaw Schlosser
158019f404 Set payload filename on upload even if primaryKey exists. (#19771)
* Set payload filename on upload even if primaryKey exists.

This way on image replace we update the file extension on disk and download filename.

* Add 0x2aff to contributors.yml

* Put 0x2aff contributor into quotes.

* add changeset

* Update changeset to reflect also extension

---------

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
2023-09-25 11:52:00 +02:00
jbmolle
8f37b5a16e fix: load configuration from JSON or YAML file (#19745)
* fix: load configuration from JSON or YAML file

* fix: format file with prettier

* Create beige-boats-design.md

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-09-20 15:34:42 +02:00
rijkvanzanten
e908db17b4 v10.6.2 2023-09-19 13:28:29 -04:00
Brainslug
243eed781b Merge pull request from GHSA-hmgw-9jrg-hf2m
* Add extra error handling for invalid messages

* added description and logging

* renamed fix function

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-09-19 13:12:42 -04:00
José Varela
9819049f0c Assets: Handle transformation timeout errors (#19684)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: ian <licitdev@gmail.com>
2023-09-15 13:32:50 +00:00
Pascal Jufer
9854a2174f Import config.js file as ESM (#19654)
Co-authored-by: Brainslug <tim@brainslug.nl>
2023-09-13 13:19:34 +00:00
Pascal Jufer
0c56c46fdf Attempt to make "require shares fields" migration safer/more reliable (#19619)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-09-12 21:10:58 +02:00
Brainslug
a9116ab5ef Updated sharp dependency (#19658)
* updated sharp dependency

* added package lock

* Create chilly-adults-rule.md
2023-09-11 11:24:15 -04:00
Jan Arends
5c8d3d22c6 Reset auto increment sequence (#19328)
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-09-08 11:19:14 +02:00
Azeem Haider
f770fefc96 Ignore extra envs for mysql (#19589)
* fix #7420 ignore extra envs for mysql

* Update contributors.yml

* Run formatter

* Add changeset

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-09-05 07:33:32 -07:00
Azri Kahar
1857340bcd Add email body for completed exports to file library (#19550)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-31 15:08:48 +02:00
Pascal Jufer
425cdd64cc Fix decompression in file import endpoint (#19524)
* Fix decompression in file import endpoint

* Add changeset

* Clean-up decompressResponse function

* Align fn name
2023-08-29 22:57:27 +08:00
rijkvanzanten
3ec4009bb8 v10.6.0 2023-08-25 11:42:24 -04:00
Daniel Biegler
284156426f Replace vm2 with isolated-vm (#19332)
* add isolated-vm@4.6.0

* add mvp replacing vm2 with isolated-vm, two env vars

* make copying async and add tests

* add env vars to docs

* remove isolate-logging function

* update docs for FLOWS_EXEC_ALLOWED_MODULES removal

* further removal of allowed module usage

* rename env vars and their usage, remove script "compiling" and replace Reference with ExternalCopy

* remove logging and catching, let the outer executeOperation function do it

* remove vm2 from dependencies

* remove unused var

* run prettier formatting

* run eslint

* create changeset

* rename env var without unit suffix, add minimum to doc

* add two tests for config testing

* fix 'mb' spelling

* update changeset

* Mark it as major change for `@directus/api`

* Breaking change copy

* add logging from the operation

* run linting

* Update docs/releases/breaking-changes.md

* Update docs/releases/breaking-changes.md

* run linting, make operation cursive

* Mention HTTP requests in breaking changes

* make linter happy

* changed cursive to bold (asked kevin)

* add to the test for timeouts

* run linter

* Update api/src/operations/exec/index.ts

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

* Update api/src/operations/exec/index.ts

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

* Update note on run script modules

* Update breaking changes

* Update docs/app/flows/operations.md

Co-authored-by: ian <licitdev@gmail.com>

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: ian <licitdev@gmail.com>
2023-08-25 14:11:17 +00:00
ian
7aedf763c0 Redact env values in logs for Flows (#19513)
* Redact env values in revisions for Flows

* Add unit tests

* Create cold-maps-teach.md

* Redact string type envs only

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* Fix linting

* Update test for non-string env

* Ignore zero length strings

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* Add replacementFn to include key of redacted value

* Update cold-maps-teach.md

* Remove case insensitivity

* Update changeset

* Rework

* Add utils to changeset

* Add unit test

* Rename to getRedactedString and add REDACTED_TEXT

* Consistent naming

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-25 10:14:35 +02:00
Pascal Jufer
940545dbfe Fix condition for collection & item data in notification operation (#19521)
* Fix condition for collection & item data in notification operation

* Add changeset
2023-08-24 21:22:34 -04:00
Gerard Lamusse
7de52e6720 Fix deep sanitizeQuery (#19436)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-24 17:18:18 +02:00
PlanB
e6230ebd84 Docs: Update CACHE_NAMESPACE default value (#19496) 2023-08-23 10:00:02 +02:00
ian
88d4f7cfb1 Add JSON Web Token (JWT) operation (#19434)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-16 10:34:18 +00:00
Nitwel
e7ba4b4058 Add missing endpoints to openapi spec (#19390)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-16 12:00:57 +02:00
Nitwel
ebb018a5e8 Fix using wrong type for default values (#19439)
* Fix using wrong type for default values

* fix for readAll

* Format file

* Add changeset

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-15 12:16:43 -04:00
Pascal Jufer
d6d6cf4b38 Fix "require shares fields" migration for strict MySQL (#19407)
* Fix "require shares fields" migration for strict MySQL

* Add changeset
2023-08-11 09:23:33 -04:00