Commit Graph

1459 Commits

Author SHA1 Message Date
Aiden Foxx
1da4751141 Fixed invalid onDelete constraint for some schemas (#6308)
* Fixed invalid onDelete clause for some schemas

* Ran prettier

* Updated all onDelete statements to be Oracle friendly

Co-authored-by: Aiden Foxx <aiden.foxx@sbab.se>
2021-06-17 15:46:22 -04:00
renovate[bot]
10101073a7 chore(deps): update dependency typescript to v4.3.4 (#6357)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 15:46:22 -04:00
Nacho García
b856810e7a Change cache-control heeaders (#6355) 2021-06-17 15:46:22 -04:00
renovate[bot]
a908de2f23 chore(deps): update dependency typescript to v4.3.3 (#6329)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 15:46:21 -04:00
rijkvanzanten
1c727cc48e Trim val before check
h/t @aidenfoxx
2021-06-17 15:46:21 -04:00
Rijk van Zanten
02a44c5861 Don't send sensitive data in webhooks (#6350)
Fixes #6246
2021-06-17 15:46:21 -04:00
Rijk van Zanten
e5012784d3 Use existing file extension as default (#6349) 2021-06-17 15:46:21 -04:00
Rijk van Zanten
3f6ccda2f0 Fixed issue that would cause uploads to the root folder of the file library to fail (#6348)
fixes #6310
2021-06-17 15:46:21 -04:00
Rijk van Zanten
2868fd6bf6 Redact tokens from logs (#6347) 2021-06-17 15:46:21 -04:00
Thijs-Jan
d7835e036a Add support for read hooks on items (#6341)
* Add emitter on item read

* Add performance warning to docs

* Make result instead of query the payload
2021-06-17 15:46:21 -04:00
renovate[bot]
fb738c246b fix(deps): pin dependencies (#6323)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 15:46:21 -04:00
rijkvanzanten
16d26bce0c Finish date retrieval abstraction for all vendors 2021-06-16 18:22:24 -04:00
rijkvanzanten
7ea10b2e21 Fix missing knex passthrough 2021-06-16 17:46:49 -04:00
rijkvanzanten
ea79d692e4 Allow functions in sort/filter 2021-06-16 17:39:39 -04:00
rijkvanzanten
81ba81a276 Add fields support for date functions 2021-06-16 16:35:27 -04:00
rijkvanzanten
d52f27339c Restructure fn helper 2021-06-16 15:41:16 -04:00
rijkvanzanten
d5685d69e9 Setup datetime abstraction 2021-06-16 15:07:09 -04:00
rijkvanzanten
a857ce1c17 Update params to match fields 2021-06-16 14:41:44 -04:00
rijkvanzanten
6f7ee2584d Merge branch 'main' into aggregation 2021-06-16 11:32:01 -04:00
dependabot[bot]
c86c6634ce Bump inquirer from 8.1.0 to 8.1.1 (#6304)
Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 8.1.0 to 8.1.1.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@8.1.0...inquirer@8.1.1)

---
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>
2021-06-16 09:27:44 -04:00
Rijk van Zanten
d56f02697a Allow overriding the s-maxage cache header (#6294)
* Allow overriding the s-maxage cache header

* Only load expiry / set headers when cache exists
2021-06-15 17:11:29 -04:00
rijkvanzanten
68774e6f14 v9.0.0-rc.76 2021-06-14 17:12:51 -04:00
Rijk van Zanten
36ecad783a Fix issue that would cause emails to be displayed incorrectly in certain email clients (#6267)
Fixes #6074
2021-06-14 16:24:55 -04:00
rijkvanzanten
95f4b1c521 Fix console log usages in linter 2021-06-14 15:10:50 -04:00
Aiden Foxx
86a920d587 Looks like a console log spliped though? (#6252) 2021-06-14 11:02:48 -04:00
Aiden Foxx
36ae50c4e5 Fix Oracle env error (#6225)
* Fix Oracle env error

Fix for #6224.

* Update index.ts
2021-06-14 10:42:55 -04:00
dependabot[bot]
39198952bb Bump ioredis from 4.27.5 to 4.27.6 (#6241)
Bumps [ioredis](https://github.com/luin/ioredis) from 4.27.5 to 4.27.6.
- [Release notes](https://github.com/luin/ioredis/releases)
- [Changelog](https://github.com/luin/ioredis/blob/master/Changelog.md)
- [Commits](https://github.com/luin/ioredis/compare/v4.27.5...v4.27.6)

---
updated-dependencies:
- dependency-name: ioredis
  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>
2021-06-14 10:11:55 -04:00
Nicola Krumschmidt
1d851221a3 Add missing return type to adjustDate() (#6253)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-06-14 10:07:06 -04:00
rijkvanzanten
28847faee6 Add missing return type 2021-06-14 09:56:42 -04:00
Aiden Foxx
051fbfcebd Fixed migrations for fresh Oracle install (#6228) 2021-06-12 13:18:35 -04:00
rijkvanzanten
cbf9d6bd7b Merge branch 'main' into aggregation 2021-06-11 21:19:07 -04:00
rijkvanzanten
000e1976ae Fix val check 2021-06-11 21:18:46 -04:00
rijkvanzanten
83f9dc17b6 Merge branch 'main' into aggregation 2021-06-11 21:14:21 -04:00
rijkvanzanten
015506f941 Fix val check 2021-06-11 21:14:08 -04:00
rijkvanzanten
15d2919cdb Merge branch 'main' into aggregation 2021-06-11 21:00:02 -04:00
Rijk van Zanten
8e92c6beaa Add date adjustment to NOW variable (#6221) 2021-06-11 20:59:50 -04:00
rijkvanzanten
0a9b9f8d68 Merge branch 'main' into aggregation 2021-06-11 18:01:14 -04:00
nichols-green
055cd331d9 Added support for nodemailer ignoreTLS option (#6216)
* added support for nodemailer ignoreTLS option

* update doc to show no default value
2021-06-11 12:48:22 -04:00
Nicola Krumschmidt
427b339e04 Fix proxying to the app from a subpath (#6212) 2021-06-11 11:23:27 -04:00
Oreille
46c77f70c8 Moved special check above localTypeMap check. (#6208) 2021-06-11 08:59:20 -04:00
Rijk van Zanten
31fbb5f06f Fix type casting of boolean env var (#6190)
Fixes #6189
2021-06-10 16:44:56 -04:00
rijkvanzanten
779a252ce2 v9.0.0-rc.75 2021-06-10 16:17:32 -04:00
Rijk van Zanten
4cb8d1f814 Add additional check to Two-Factor Authentication (by @masterwendu) (#6187)
* 6113 add tfa generate endpoint

* 6113 implement tfa otp check in user settings

* 6113 add autfocus for otp field on login form

* update package-lock

* improve TFA uri with user email

* fix vue 3 compatibility

* reduce code duplication for enableTFA

* Remove unnecessary parameters

* Use project name in otp url when available

* Update docs/reference/api/system/users.md

Co-authored-by: Wendelin Peleska <wendu@pm.me>
2021-06-10 15:36:34 -04:00
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
rijkvanzanten
c2c78792b1 Merge branch 'main' into aggregation 2021-06-09 14:16:36 -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