Commit Graph

1324 Commits

Author SHA1 Message Date
rijkvanzanten
1d7e977eb8 v9.0.0-rc.69 2021-05-17 18:21:49 -04:00
rijkvanzanten
f06ac03755 Don't execute updateByQuery on empty item set
Fixes #5710, fixes #5070
2021-05-17 15:49:39 -04:00
rijkvanzanten
8e8f93ac62 Pull parseDefaultValue from new location
Fixes #5733
2021-05-17 15:36:39 -04:00
Matteo Gazzoni
c84c002c7b Makes primary key always not nullable (#5731) 2021-05-17 19:11:39 +00:00
rijkvanzanten
b84d3be981 Use items service directly instead of super
Fixes callstack order problem, fixes #5538 pt 2
2021-05-17 11:50:48 -04:00
dependabot[bot]
a447c19f86 Bump grant from 5.4.12 to 5.4.14 (#5717)
Bumps [grant](https://github.com/simov/grant) from 5.4.12 to 5.4.14.
- [Release notes](https://github.com/simov/grant/releases)
- [Changelog](https://github.com/simov/grant/blob/master/CHANGELOG.md)
- [Commits](https://github.com/simov/grant/compare/v5.4.12...v5.4.14)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 10:17:38 -04:00
rijkvanzanten
8a94ff06ed v9.0.0-rc.68 2021-05-15 11:28:39 -04:00
rijkvanzanten
ca8ca823d1 Fix API dist cleanup for non-TSC included files
Fixes #5691
2021-05-15 11:27:05 -04:00
rijkvanzanten
4885cd0ca5 v9.0.0-rc.67 2021-05-14 23:07:20 -04:00
rijkvanzanten
cad0e7b904 v9.0.0-rc.66 2021-05-14 18:52:46 -04:00
rijkvanzanten
e8ac74bb4c Fix issue on login when no hooks are registered
Fixes #5688
2021-05-14 18:52:20 -04:00
rijkvanzanten
6f51fa4483 Bump githead 2021-05-14 16:29:36 -04:00
rijkvanzanten
24621f3934 v9.0.0-rc.65 2021-05-14 16:27:03 -04:00
rijkvanzanten
7b6bff1692 Use correct interface for collection module nav setup 2021-05-14 16:26:45 -04:00
rijkvanzanten
1ea544b261 Fix mfa-setup interface name 2021-05-14 16:10:19 -04:00
José Varela
4d242ab5bf api: pass user object to auth hooks (#5251)
* api: pass user object to auth hooks
The motivation for this is the ability to migrate from
bcrypt passwords to argon2 seamlessly.

Fixes #4718
Fixes #4335

* receive user from `auth.login.before` hook

* pass `otp` as well on `auth.login` hooks

* api: last registered hook should have priority
When registering multiple hooks for a single event,
the last hook should have priority on return value.

* Fix linter warning

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-14 12:33:51 -04:00
Aiden Foxx
e8e295ef6a Fix string to text migrations for Oracle (#5462)
* Disabled string to text migrations for Oracle

* Added oracle specific alter table migrations

* Added notNull parameter to Oracle alter function

* Wrapped notNull in if

* Removed public oracle column alter function
2021-05-14 12:30:17 -04:00
Pierre
28ef6418fc [TS] Improve EmailOptions def (#5563)
* [TS] Improve EmailOptions def

See https://nodemailer.com/message/

* Update index.ts

* Update index.ts

* [Mailer] pass nodemailer options

* fix missing comma

* [TS] Use SendMailOptions of nodemailer

* Use const instead of let

* fix lint

* Rename nodeMailerOptions -> emailOptions

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-14 12:25:19 -04:00
Christian Rendl
7133df2d56 Fixed issues with template overriding (#5671)
* Fixed issues with template overriding

* Remove `system` flag from email templates

* Remove usage of system in user services

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-14 12:20:42 -04:00
mcarlson
c0446cb379 Add support for mailgun transport (#5613)
* Add support for mailgun transport

* eslint fix

* Add nodemailer-mailgun-transport as optional dependency

* Add docs, rename APIKEY -> API_KEY

Co-authored-by: Max Carlson <>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-14 12:20:18 -04:00
Robert Gieseke
61761135ee Sort custom and internal migrations by version prefix (#5685)
See discussion #5675
2021-05-14 15:34:53 +00:00
Rijk van Zanten
9ac9a8d44b Add JSON/CSV Import (#5660)
* Add async/destroy packages

* Target node 12+

* Return payload data in json export

* Import JSON from Stream

* Add CSV import support

* Add CSV Import

* Add docs

* Add missing types
2021-05-14 11:03:12 -04:00
Fady Khalife
8fc8da62a7 Allow nodemailer SMTP configuration with no authentication (#5673)
* Allow nodemailer SMTP configuration with no authentication

* Fix typing + use or instead of and for user/pass combo

Co-authored-by: Fady Khalife <fady.khalife@yakkazoo.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-14 15:01:32 +00:00
dependabot[bot]
1f54174c6d Bump rate-limiter-flexible from 2.2.1 to 2.2.2 (#5670)
Bumps [rate-limiter-flexible](https://github.com/animir/node-rate-limiter-flexible) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/animir/node-rate-limiter-flexible/releases)
- [Commits](https://github.com/animir/node-rate-limiter-flexible/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-14 09:55:18 -04:00
dependabot[bot]
4ed2c663dc Bump @godaddy/terminus from 4.7.1 to 4.7.2 (#5669)
Bumps [@godaddy/terminus](https://github.com/godaddy/terminus) from 4.7.1 to 4.7.2.
- [Release notes](https://github.com/godaddy/terminus/releases)
- [Commits](https://github.com/godaddy/terminus/compare/v4.7.1...v4.7.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-14 09:54:54 -04:00
dependabot[bot]
46bf3992f8 Bump dotenv from 8.2.0 to 9.0.2 (#5647) 2021-05-13 09:23:06 -04:00
rijkvanzanten
9e93342af0 Mark non-nullable fields as NonNull in GQL
Fixes #5544
2021-05-12 16:49:55 -04:00
rijkvanzanten
9bd5fc1f54 Ignore current users email on update
Fixes #5538
2021-05-12 16:40:17 -04:00
rijkvanzanten
24e28792f2 Fix fields_in_collection type signature
Fixes #5627
2021-05-12 16:34:34 -04:00
rijkvanzanten
891fe01093 Fix cli role name attr 2021-05-12 15:46:49 -04:00
Pascal Jufer
44ffd60174 Add missing cookie options to cookie cleanup on logout (#5626) 2021-05-12 12:34:58 -04:00
dependabot[bot]
7bdb220bd2 Bump graphql-compose from 8.0.1 to 8.1.0 (#5619)
Bumps [graphql-compose](https://github.com/graphql-compose/graphql-compose) from 8.0.1 to 8.1.0.
- [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.0.1...v8.1.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 10:59:11 -04:00
mcarlson
7531585ccd Fixes #5599 - add jsonb field type mapping for postgres (#5611) 2021-05-11 19:55:19 +00:00
Oreille
316ac9076b Check for schema identity before updating it. (#5608) 2021-05-11 14:36:33 -04:00
dependabot[bot]
bc30ee2bde Bump prettier from 2.2.1 to 2.3.0 (#5593)
* Bump prettier from 2.2.1 to 2.3.0

Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0)

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

* Fix lint issues for updated prettier

* Lets remove dev: true again so we can auto-add it later why don't we

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-11 10:38:42 -04:00
Pierre
95fc9e3368 [TS] Add deprecated note (#5603)
https://github.com/directus/directus/discussions/5601
2021-05-11 09:42:50 -04:00
dependabot[bot]
c0942f38f8 Bump tedious from 11.0.7 to 11.0.8 (#5592)
Bumps [tedious](https://github.com/tediousjs/tedious) from 11.0.7 to 11.0.8.
- [Release notes](https://github.com/tediousjs/tedious/releases)
- [Commits](https://github.com/tediousjs/tedious/compare/v11.0.7...v11.0.8)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-11 09:35:00 -04:00
dependabot[bot]
24b5e5ff45 Bump commander from 6.2.1 to 7.2.0 (#5569)
* Bump commander from 6.2.1 to 7.2.0

Bumps [commander](https://github.com/tj/commander.js) from 6.2.1 to 7.2.0.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tj/commander.js/compare/v6.2.1...v7.2.0)

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

* Fix breaking changes in commander

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-10 11:33:19 -04:00
rijkvanzanten
aaee7cc750 Fix having clause on postgres alias 2021-05-10 10:48:36 -04:00
dependabot[bot]
3b82b3e568 Bump nodemailer from 6.5.0 to 6.6.0 (#5567)
Bumps [nodemailer](https://github.com/nodemailer/nodemailer) from 6.5.0 to 6.6.0.
- [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.5.0...v6.6.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 10:04:46 -04:00
rijkvanzanten
a86c0832b0 v9.0.0-rc.64 2021-05-07 16:36:58 -04:00
rijkvanzanten
be20fafb8b Fix migration on MySQL 5
Fixes #5545
2021-05-07 16:36:01 -04:00
rijkvanzanten
5df6696bc0 v9.0.0-rc.63 2021-05-07 14:42:29 -04:00
Rijk van Zanten
b6964fa1a1 Add XML export (#5526) 2021-05-07 12:55:03 -04:00
rijkvanzanten
fa86a06a7a Stringify json options 2021-05-07 11:48:36 -04:00
dependabot[bot]
0e14686e0c Bump pg from 8.5.1 to 8.6.0 (#5536)
Bumps [pg](https://github.com/brianc/node-postgres/tree/HEAD/packages/pg) from 8.5.1 to 8.6.0.
- [Release notes](https://github.com/brianc/node-postgres/releases)
- [Changelog](https://github.com/brianc/node-postgres/blob/master/CHANGELOG.md)
- [Commits](https://github.com/brianc/node-postgres/commits/pg@8.6.0/packages/pg)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 10:07:23 -04:00
Rijk van Zanten
c4ae4b66cc Finalize interface names (#5521)
* Rename button-links->presentation-links

* Rename checkboxes->select-multiple-checkbox

* Rename code->input-code

* Rename checkboxes files

* Rename color->select-color

* Rename divider->presentation-divider

* Rename dropdown-multiselect->select-multiple-dropdown

* Rename hash->input-hash

* Rename icon->select-icon

* Rename image->file-image

* Rename m2a-builder->list-m2a

* Rename many-to-many->list-m2m

* Rename many-to-one->select-dropdown-m2o

* Rename markdown->input-rich-text-md

* Rename notice->presentation-notice

* Rename one-to-many->list-o2m

* Rename radio-buttons->select-radio

* Rename repeater->list

* Rename text-input->input

* Rename textarea->input-multiline

* Rename toggle->boolean

* Rename tree-view->list-o2m-tree-view

* Rename wysiwyg->input-rich-text-html

* Use correct interfaces in system defaults

* Rename collection->system-collection

* Rename collections->system-collections

* Rename display-template->system-display-template

* Rename field->system-field

* Rename interface->system-interface

* Rename interface-options->system-interface-options

* Rename scope->interface-scope

* Rename tfa-setup->system-mfa-setup

* Fix oversights

* Remove old todo

* Some more tweaks

* Add migration, fix dropdown name in system use

* Merge numeric + input

* Replace dropdown->select-dropdown in app use

* Merge slug->input, user->select-dropdown-m2o

* Fix type issue

* Fix seeder field name
2021-05-06 16:49:32 -04:00
rijkvanzanten
ae1e22d116 Enforce new collections to have PK field
Fixes #5512
2021-05-06 11:19:51 -04:00
Ilya Belousov
4217ace3b4 * Ignore undefined in array filter values (#5506)
* Ignore non 2-length value for between-filters

Ref #4471
2021-05-06 15:10:26 +00:00
dependabot[bot]
a97166fd18 Bump @types/node from 15.0.1 to 15.0.2 (#5508)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.0.1 to 15.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 14:06:15 +00:00