Pascal Jufer
927b9f8cc2
Fix DB column update for data types with length or boolean as default value ( #6163 )
...
* Fix DB column update for types with length or boolean as default value
* Add docs/index.json to gitignore
* Remove specificType support
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-09 18:30:59 -04:00
Rijk van Zanten
76a31ca020
Don't initialize mailer on startup ( #6169 )
...
* Fix m2m relationship not showing current col/pk
* Don't initialize mailer on first boot
Another step to serverless!
2021-06-09 17:31:50 -04:00
Rijk van Zanten
fb908efe8f
Cleanup one_allowed_collections field on collection delete ( #6167 )
...
Fixes #6161
2021-06-09 17:02:47 -04:00
Adam Sparks
c1b30a6d8c
match url whitelist to domain ( #5694 )
...
* match url whitelist to domain
* Improve url-domain check
* Update lockfile
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-09 15:12:34 -04:00
Pascal Jufer
a2a35aaab5
Add support for _FILE environment variables ( #6101 )
...
* Add support for _FILE environment variables
* Enhance processing of _FILE env vars
* Same processing as with other env vars (do not simply treat as string)
- tested successfully
* Warn if both variables are set (EXAMPLE and EXAMPLE_FILE)
* Add comments to make it easier to understand the code
* Set newKey only after file read was successful
* Don't convert value > MAX_SAFE_INTEGER to number
Thanks to @skizer!
As stated by @skizer (from #6119 ):
Altho it seems that we do have a numerical value
it can happen that its outside of Number.MAX_SAFE_INTEGER
thus resulting in a change of the original intended value
e.g oauth -> discord -> client_id
* Fix recursive logger-env import
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-09 14:08:26 -04:00
Rijk van Zanten
61f2e48ced
Allow any of grant's (nested) configuration parameters (oAuth) ( #6155 )
...
* Allow underscore configuration extraction
* Allow any of grants config properties
2021-06-09 12:08:48 -04:00
skizer
ad8bd3e7cd
Don't treat numbers larger than the JS max number size as number values in environment variables ( #6119 )
...
* Incorrect parsing of numeric values in env.
* Fixes incorrect parsing of the env. file with numeric values that are outside of Number.MAX_SAFE_INTEGER resulting in unwanted behaviour.
- Like wrong client_ids for oauth. (tested with discord oauth)
* Removed unnecessary multiple "IF" statements since value can only be ether one of the listed values.
* Implements custom_param for OAUTH via grant
According to grants documentation you can provide additionally custom parameters to supported OAUTH provider with ```custom_params```.
This change allows to add them in JSON format and thus adding multiple parameters.
* Fix linter warnings, remove JSON support in favor of nested Grant support
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-09 11:53:57 -04:00
dependabot[bot]
792281ceb6
Bump dotenv from 9.0.2 to 10.0.0 ( #6147 )
...
Bumps [dotenv](https://github.com/motdotla/dotenv ) from 9.0.2 to 10.0.0.
- [Release notes](https://github.com/motdotla/dotenv/releases )
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md )
- [Commits](https://github.com/motdotla/dotenv/compare/v9.0.2...v10.0.0 )
---
updated-dependencies:
- dependency-name: dotenv
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-09 11:20:21 -04:00
Rijk van Zanten
a26d2473d2
Update knex-schema-inspector ( #6153 )
2021-06-09 11:19:59 -04:00
Rijk van Zanten
bc8370d084
Add item duplicate fields configuration option to directus_collections ( #6140 )
...
* Add item_duplication_fields field
* Add types for item duplicate fields
2021-06-08 17:57:28 -04:00
dependabot[bot]
e5fe2c4517
Bump connect-redis from 5.2.0 to 6.0.0 ( #6123 )
...
Bumps [connect-redis](https://github.com/visionmedia/connect-redis ) from 5.2.0 to 6.0.0.
- [Release notes](https://github.com/visionmedia/connect-redis/releases )
- [Commits](https://github.com/visionmedia/connect-redis/compare/v5.2.0...v6.0.0 )
---
updated-dependencies:
- dependency-name: connect-redis
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-08 08:42:24 -04:00
dependabot[bot]
7eb13e3de2
Bump execa from 5.0.1 to 5.1.1 ( #6126 )
...
Bumps [execa](https://github.com/sindresorhus/execa ) from 5.0.1 to 5.1.1.
- [Release notes](https://github.com/sindresorhus/execa/releases )
- [Commits](https://github.com/sindresorhus/execa/compare/v5.0.1...v5.1.1 )
---
updated-dependencies:
- dependency-name: execa
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>
2021-06-08 08:41:12 -04:00
dependabot[bot]
bf824b9742
Bump @types/sharp from 0.28.1 to 0.28.3 ( #6122 )
...
Bumps [@types/sharp](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sharp ) from 0.28.1 to 0.28.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sharp )
---
updated-dependencies:
- dependency-name: "@types/sharp"
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>
2021-06-08 08:27:36 -04:00
rijkvanzanten
735fb74b7e
v9.0.0-rc.74
2021-06-07 17:00:20 -04:00
Rijk van Zanten
1e4850f53a
Add support for CRON hooks (interval) ( #6116 )
...
* Install node-cron
* Support CRON hooks
* Document interval hook
* Fix package-lokc
2021-06-07 16:57:32 -04:00
dependabot[bot]
2fb7aa97c1
Bump graphql-compose from 8.1.0 to 9.0.1 ( #6106 )
...
Bumps [graphql-compose](https://github.com/graphql-compose/graphql-compose ) from 8.1.0 to 9.0.1.
- [Release notes](https://github.com/graphql-compose/graphql-compose/releases )
- [Changelog](https://github.com/graphql-compose/graphql-compose/blob/master/CHANGELOG.md )
- [Commits](https://github.com/graphql-compose/graphql-compose/compare/v8.1.0...v9.0.1 )
---
updated-dependencies:
- dependency-name: graphql-compose
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-07 09:29:09 -04:00
dependabot[bot]
2a9836c4fe
Bump mime-types from 2.1.30 to 2.1.31 ( #6107 )
2021-06-07 08:31:08 -04:00
rijkvanzanten
91253a241d
Fix linter warning
2021-06-04 12:44:10 -04:00
dependabot[bot]
2b1da1b8cf
Bump @godaddy/terminus from 4.7.2 to 4.9.0 ( #6082 )
...
Bumps [@godaddy/terminus](https://github.com/godaddy/terminus ) from 4.7.2 to 4.9.0.
- [Release notes](https://github.com/godaddy/terminus/releases )
- [Commits](https://github.com/godaddy/terminus/compare/v4.7.2...v4.9.0 )
---
updated-dependencies:
- dependency-name: "@godaddy/terminus"
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>
2021-06-04 11:55:50 -04:00
dependabot[bot]
bb1ed9ef6b
Bump @types/node from 15.9.0 to 15.12.0 ( #6066 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 15.9.0 to 15.12.0.
- [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-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-04 11:35:09 -04:00
rijkvanzanten
ce021e7b70
v9.0.0-rc.73
2021-06-04 00:02:39 -04:00
Rijk van Zanten
68add053b7
Fixed issue that would prevent the corresponding o2m field from being created on m2o relational setup ( #6060 )
...
Fixes #6009
2021-06-03 23:56:22 -04:00
Rijk van Zanten
9c49c4eb46
Fixed unique constraint violation error extraction for MySQL 5.7 ( #6059 )
...
* Add MySQL 5.7 docker debug instance
* Fix unique error constraint extraction in MySQL 5.7
Fixes #5719
2021-06-03 23:33:31 -04:00
Rijk van Zanten
85d33d9ffc
Fixed an issue that would cause "text" fields to show up as varchar with length -1 in MS SQL ( #6055 )
...
Fixes #5944
2021-06-03 22:35:07 -04:00
Rijk van Zanten
babe6cdc08
Fixed issue that would prevent usage of limit -1 on deep limit ( #6054 )
...
Fixes #5960
2021-06-03 21:47:58 -04:00
Rijk van Zanten
5067410e09
Fixed issue that could trigger update actions of children on manual sorting of a parent o2m instance ( #6048 )
...
Fixes #6041
2021-06-03 21:02:47 -04:00
rijkvanzanten
2f0099e0db
v9.0.0-rc.72
2021-06-03 19:30:40 -04:00
rijkvanzanten
c000c8a613
Revert dependency upgrades
...
Vue apparently had a small breaking change included in the patch release.
Squashed commit of the following:
commit f1e2635c20d4acef1752b8c2a357bbcfbb30a097
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Jun 3 19:07:54 2021 -0400
Revert dep upgrades
2021-06-03 19:12:01 -04:00
Rijk van Zanten
e1926ba5f7
Fix query during transaction in fk creation ( #6045 )
...
Fixes #6034
2021-06-03 17:48:13 -04:00
Rijk van Zanten
2270d870f9
Prevent foreign key constraint names from exceeding 64 characters ( #6043 )
...
* Add index name generator function
* Ensure foreign keys are 64 chars or less
2021-06-03 17:31:58 -04:00
Rijk van Zanten
0964b42ba4
Drop FK based on constraint name instead of column ( #6042 )
...
Fixes #6029
2021-06-03 16:32:39 -04:00
Rijk van Zanten
1cdbc91593
Handle illegal/corrupt relational rows better ( #6040 )
...
Fixes #6013
2021-06-03 15:26:02 -04:00
Oreille
22f2e4662f
Add support for adding a collection accent color ( #5818 )
...
* Added icon_color to directus_collections
Added migrations
Added color property to select-icon
Fixed select-icon placeholder
* Use icon color in collection header bar.
* Set `collection` and `note` fields to hald witdh
* Rename icon_color->color
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-03 13:04:19 -04:00
Rijk van Zanten
e6364d99a4
Extract IPTC title and keywords ( #6035 )
...
* Fix title IPTC extraction
* Pull IPTC keywords as tags
2021-06-03 12:37:50 -04:00
Rijk van Zanten
32b714208b
Upgrade dependencies ( #6032 )
...
* Apply minors/patches
* Apply (safe) major upgrades
2021-06-03 12:10:04 -04:00
dependabot[bot]
755efeeec7
Bump argon2 from 0.27.2 to 0.28.1 ( #6021 )
...
Bumps [argon2](https://github.com/ranisalt/node-argon2 ) from 0.27.2 to 0.28.1.
- [Release notes](https://github.com/ranisalt/node-argon2/releases )
- [Commits](https://github.com/ranisalt/node-argon2/compare/v0.27.2...v0.28.1 )
---
updated-dependencies:
- dependency-name: argon2
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>
2021-06-03 11:07:52 -04:00
dependabot[bot]
f03b4e64de
Bump @types/node from 15.6.0 to 15.9.0 ( #6018 )
...
* Bump @types/node from 15.6.0 to 15.9.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 15.6.0 to 15.9.0.
- [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-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Fix type issues
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-03 11:07:03 -04:00
rijkvanzanten
44e443bf99
v9.0.0-rc.71
2021-06-02 13:28:26 -04:00
Rijk van Zanten
45730c6860
Resolve linter warnings ( #6008 )
2021-06-02 13:21:13 -04:00
nichols-green
e1e47453ef
Changed PORT type from number to string ( #6001 )
2021-06-02 11:47:12 -04:00
Rijk van Zanten
77e00b7db4
Don't initialize database on file require ( #6003 )
2021-06-02 11:41:42 -04:00
Rijk van Zanten
02fc696c53
Fix env var validation in database loading step ( #6002 )
...
Fixes #5980
2021-06-02 11:17:50 -04:00
Rijk van Zanten
7f51ec9f16
Remove stray console.log in dependency ( #5998 )
...
Fixes #5987
2021-06-02 09:20:49 -04:00
dependabot[bot]
7993b2e869
Bump fs-extra from 9.1.0 to 10.0.0 ( #5982 )
...
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra ) from 9.1.0 to 10.0.0.
- [Release notes](https://github.com/jprichardson/node-fs-extra/releases )
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/9.1.0...10.0.0 )
---
updated-dependencies:
- dependency-name: fs-extra
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-02 09:04:14 -04:00
rijkvanzanten
a6a354a0ae
v9.0.0-rc.70
2021-06-01 20:17:10 -04:00
rijkvanzanten
c4b4e3586f
Cleanup FK indexes in MySQL uses
2021-06-01 18:49:52 -04:00
rijkvanzanten
01bc1f6545
Upgrade knex-schema-inspector
2021-06-01 17:45:40 -04:00
rijkvanzanten
65240fff3b
Make DB migrations for FK constraints safer
2021-06-01 16:44:10 -04:00
dependabot[bot]
b1f1e09428
Bump typescript from 4.2.4 to 4.3.2 ( #5967 )
...
* Bump typescript from 4.2.4 to 4.3.2
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.2.4 to 4.3.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.2.4...v4.3.2 )
Signed-off-by: dependabot[bot] <support@github.com >
* Fix typing quirk
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-01 15:02:44 -04:00
dependabot[bot]
b811218618
Bump inquirer from 8.0.0 to 8.1.0 ( #5966 )
...
Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js ) from 8.0.0 to 8.1.0.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases )
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@8.0.0...inquirer@8.1.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-01 09:52:32 -04:00