Connor
77b95e08dd
Add Auto Cache Purging to Sorting Utility ( #19115 )
...
* add cache purging to sort utility
* update should clear to fail faster
* use shouldClearCache
* clean logic
* Create nervous-onions-relate.md
* fix formatting
* Update api/src/services/utils.ts
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
* Update changeset/
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-07-11 10:32:57 +02:00
Rijk van Zanten
ca3e7f521f
Upgrade previous "Extensions" system to new "Errors" model ( #18797 )
...
* Typecheck across packages that are built with esbuild
* Boilerplate new Errors package
* No need, tsup checks with --dts
* Switch to tsup
* Setup dev script
* Add readme
* More boilerplaty things
* Finish createError function
* Install @directus/random
* Downgrade node types
* Add utility function to check if an error is a DirectusError
* Use new is-error check
* Install errors package
* Add failed validation common error
* Export common errors
* Move joi convertion to utils
* Export failed validation
* Use new failed validation error in validate-batch
* Enhance typing output of createError
* Remove outdir (handled by tsup now)
* Replace Exception with Error
* Replace exception in test
* Remove exceptions from app
* Remove exceptions from app
* Remove failed validation exception from users service
* Remove old failed validation exception from shared
* Remove exceptions package in favor of errors
* Uninstall exceptions
* Replace baseexception check
* Migrate content too large error
* Critical detail
* Replace ForbiddenException
* WIP remove exceptions
* Add ForbiddenError to errors
* HitRateLimitError
* Move validation related error/helper to new validation package
* Add index
* Add docs
* Install random
* Convert TokenExpired
* Convert user-suspended
* Convert invalid-credentials
* Move UnsupportedMediaType
* Replace wrong imports for forbidden
* Convert invalid-ip
* Move invalid provider
* Move InvalidOtp
* Convert InvalidToken
* Move MethodNotAllowed
* Convert range not satisfiable
* Move unexpect response
* Move UnprocessableContent
* Move IllegalAssetTransformation
* Move RouteNotFound
* Finalize not found
* Various db errors
* Move value too long
* Move not null
* Move record-not-unique
* Move value out of range
* Finish db errors
* Service unavailable
* GQL errors
* Update packages/validation/src/errors/failed-validation.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Update packages/validation/src/errors/failed-validation.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* InvalidQuery
* Add test for invalid query message constructor
* Invalid Payload
* Finalize exceptions move
* Improve type of isDirectusError
* Various fixes
* Fix build in api
* Update websocket exceptions use
* Allow optional reason for invalid config
* Update errors usage in utils
* Remove unused package from errors
* Update lockfile
* Update api/src/auth/drivers/ldap.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Update packages/validation/src/utils/joi-to-error-extensions.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Put error codes in shared enum
* Replace instanceof checks in api
* Fix tests I think
* Tweak override names
* Fix linter warnings
* Set snapshots
* Start fixing BB tests
* Fix blackbox tests
* Add changeset
* Update changeset
* Update extension docs to use new createError abstraction
* 🙄
* Fix graphql validation error name
* 🥳
* use ErrorCode.Forbidden
* fix blackbox auth login test
* Add license files
* Rename preMutationException to preMutationError
* Remove unused ms dep & sort package.json
* Remove periods from error messages for consistency
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Add optional code check
* Use updated error code checker
* Rename InvalidConfigError to InvalidProviderConfigError
---------
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-06-27 17:22:26 -04:00
GitStart
16ed93c9b9
Expose case-insensitive variants of _starts_with and _ends_with ( #18941 )
...
Co-authored-by: RubensRafael <rubensrafael2@live.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-06-27 17:48:29 +02:00
ian
757a5914af
Flush cache when applying diff ( #18986 )
...
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-06-27 15:13:54 +02:00
Pascal Jufer
baceedf201
Allow plain query flags for boolean & geo filter operators ( #18888 )
...
* Allow plain query flags for boolean & geo filter operators
* Create blue-wolves-tell.md
---------
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com >
2023-06-20 11:20:56 -04:00
Rijk van Zanten
7f961d51ec
Fix creating new relation when applying snapshot diff ( #18879 )
...
* Fix creating new relation when applying snapshot diff (#18692 )
* Update apply-diff.ts
Collection and field might not be part of the dif but are mandatory
* Update contributors.yml
* Update apply-diff.ts
* prettier
* Add changeset
---------
Co-authored-by: gkielwasser <gkielwasser@gmail.com >
2023-06-13 10:51:58 -04:00
Agustin
57747f0c7e
Fix reversing of _null, _nnull, _empty and _nempty ( #18801 )
...
* Fix reversing of _null, _nnull, _empty and _nempty
When the value given is false, at the moment both `IS NULL` and `IS NOT NULL` are added to the query which means there are never results.
* Update contributors.yml
* Add test for applyFilter with boolean operators
* Revert unnecessary line break
* Create chilled-wolves-double.md
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2023-06-13 10:18:50 -04:00
Brainslug
cfddabd9ee
Integrating Websockets in Directus 🕸️ 🧦 ( #14737 )
...
* added emitter context
* partial items tests
* updated items handler tests
* fixed test after merge
* forgot the event context
* fixed auth message parsing for graphql subscriptions
* fixed type strictness
* fixed graphql subscription bug
* bumped websocket dependencies
* touched up some dangling code
* updated itemsservice usage
* disabled overkill logs
* double checked environment type processing
* fixed missed capitalization
* fixed subscription payloads
* Added explicit string type casting
* removed obsolete "trimUpper" utility
* using the parseJSON utility consistently
* pinned dependencies
* parse environment variables
* fixed pnpm-lock
* GraphQL Subscriptions for all events
* fixed typo
* added event data to the graphql definition
* fix payload for delete events
* Added optional chaining for type to prevent fatal crashes on invalid messages
* fix failing on getting type from undefined
* Update api/src/websocket/exceptions.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Add proper ZodError handling
* added the zod-validation-error parser
* allow disabling the rate limiter
* Update api/src/websocket/controllers/base.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* updated starting logs
* fixed email/password expiration logic
* added tests for getMessageType
* simplified message parsing and dropped capitalization
* updated authenticate test
* switched to lower cased message.type to prevent spreading "toUpperCase" around
* cleaned up debug logs
* cast enabled config to boolean
* Update api/src/websocket/controllers/rest.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Update api/src/websocket/handlers/subscribe.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Update api/src/websocket/handlers/subscribe.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Update api/src/websocket/handlers/items.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Update api/src/websocket/controllers/base.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Update api/src/websocket/handlers/heartbeat.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Suggested fixes by Azri
* removed redundant try-catch
* fixed authentication timeout
added returning the refresh token when authenticating
* updated pnpm lock after merge
* Fixed authentication modes for GraphQL according to best practices
* implement useFakeTimers in heartbeat unit test
* implement useFakeTimers in items unit test
* Update api/src/services/server.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* removed obsolete authentication.verbose toggle
* added email flag to message validation
* switched to ternary for consistency
* moved getSchema out of for loop
* added singleton logic to items handler
* close the socket after failed auth for non-public connections
* disabled system collections for rest subscriptions
* re-ran pnpm i
* allow for multiple subscripitions in the memory messenger
* - fixed system collection subscriptions
- abstracted hook message bus
- fixed graphql horizontal scaling
* remove logic from root context for tests
* fix reading created item
* fix linter
* typo and extra safe guard suggested by azri
* prevent setting long timeouts in favor of a shared interval
* prevent unsubscribing all existing subscriptions when omitting "uid"
* - extracted getService utility
- block system collections mutation in the items handler
- implemented the correct services for system collections
* allow numeric uid's to be used
* fixed the types for numeric uid's to be used
* added missing await's
* fixed type imports after merge
* removed unused imports
* Update api/src/websocket/controllers/hooks.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Update api/src/websocket/controllers/hooks.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Update api/src/messenger.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* improved error for graphql subscriptions
* fixed TS Modernization conflicts
* fixed TS Modernization conflicts
* fixed conflicts after merge
* removed unused name property
* abstracxted environment configuration
* respond to ping messages when heartbeat disabled
* something something merge
* moved toBoolean to it's own util file
* replaced old socket naming
* removed old exception
* fixed typo
* Update api/src/env.ts
Co-authored-by: ian <licitdev@gmail.com >
* Update api/src/websocket/handlers/heartbeat.test.ts
Co-authored-by: ian <licitdev@gmail.com >
* Update api/src/websocket/handlers/heartbeat.ts
Co-authored-by: ian <licitdev@gmail.com >
* Update api/src/services/server.ts
Co-authored-by: ian <licitdev@gmail.com >
* fixed for linter
* add server_info_websocket in graphql
* Add base REST websocket tests
* do merge things
* fixing things
* fixed failing unit test
* Update dependencies
* Move tests
* Update lockfile
* Use new paths when spawning
* return websockets to opt-in
* Enable websockets for tests
* Test with ephemeral access token
* no camelcasing gql subscriptions
* use underscore for gql event
* Remove unused import
* Add base GraphQL subscription tests
* Fix accidental comment
* Add some relational tests
* Organize imports
Using VS Code's default organize import
* Run ESlint formatting
* One more opinionated formatting change
* Formatting
* Fix message sequence not in order
* Remove relational batch update tests
* Test horizontal scaling
* using toboolean util for server_info
* removed unneeded type cast
* found the gql request type
* extra usage of the toBoolean util
* merge the authentication middleware and get-account-for-token util
* updated utility test
* fixed middleware unit test
* Add return
* Remove user filtering and close conns
* Fix reused accountability
* fixed failing util test
* added subscription unit tests
* added missing mock
* trigger workflow
* Revert "trigger workflow"
This reverts commit 4f544b0c1b .
* Trigger testing for all vendors
* add unsubscription confirmation
* Wait for unsubscription confirmation
* Fix incorrect sending of unsubscription confirmation
* updated ubsubscribe logic
* Update count for unsubscription message
* Fix sequence for UUID pktype in MSSQL
* Increase auth timeout
* Add start index when getting messages
* Fix subscription retrieval and cast uid to string
* Remove nested ternary
* Revert "Increase auth timeout"
This reverts commit 10707409c4 .
* Terminate connection instead of close
* fixed merge
* re-added missing packages after merge resolve
* fixed type imports
* Create lazy-cows-happen.md
Added changeset
* Minor bump for "directus" package as well
* fixed "strict" auth mode for graphql subscriptions
* removed nested ternary
* Add websocket tests to sequential flow
* Disable pressure limiter for blackbox tests
* fix merge
* WebSockets Documentation (#18254 )
* Small repsonsive styling fix on Card
* REST getting started guide
* Authentication guide
* REST subscription guides
* JS Chat guide
* Sidebar websocket guides section
* Added config options
* Respoinding to brainslug's review
* Fixed incorrect header on guides/rt/subs
* Fixed spellchecker
* Correct full code example on guides/rt/chat/js
* Fixed JS chat tut
* Order of steps in js chat guide updated for easier following-along
* Realtime chat Vue Guide
* feat: create react.js file
* feat: add set up for directus project
* docs: create react boilder plate
* docs: initialize connection
* docs: set up submission methods
* docs: establish websocket connection
* docs: subscribe to messages
* docs: create new messages
* docs: display new messages
* docs: display historical messages
* docs: next steps
* docs: full code sample
* docs: clean up
* docs: add name to contributors
* docs: add react card
* docs: updates to react chat
* Added live poll result guide
* docs: intro
* docs: before you begin
* docs: install packages
* docs: authenticate connection
* docs: query and mutation
* docs: utilize hooks
* docs: subscribe to changes
* docs: create helper functions
* docs: display messages
* docs: summary
* docs: full sample code
* chore: add card for webscockets with graphql
* docs: intro
* docs: subscribe to changes
* docs: handling changes
* docs: crud operations
* docs: unsubscribing from changes
* docs: updates
* chore: add card
* chore: updates to graphql docs
* chore: updates to getting started
* chore: updates to subscription
* chore: updates to real chat guide
* Added WebSockets Operations Guide
* Consistent titles
* Contributors component for docs
* Triggering Netlify
* Add operations to sidebar
* Fix operations link
* Small formatting changes
* Clarity around property values
* Removed unused values in Contributors component
* Prompt for default choice
* Tabs & lowercase doctypes
* Semicolons
* Event overwerites -> event listeners
* Spacing
* Flipped order of websockets guide to match GQL
---------
Co-authored-by: Esther Agbaje <folasadeagbaje@gmail.com >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
* fixed typo
* removed unused import
* added tests for "to-boolean" and "exceptions"
* added websocket service tests
* quote environment variable to satisfy dictionary
* GraphQL Subscriptions update (#18804 )
* updated graphql subscription structure
* updated graphql examples
* Create hungry-points-rescue.md
* using `key` instead of `ID` on the toplevel
* removed changeset
* fixed the graphql type after the rename to `key`
* retrun data null for delete events to prevent non-nullable gql error
* updated missed ID reference in the docs
* updated missed ID reference in the docs
* renamed "payload" to "data" in the REST Subscription response
* fixed missed reference to payload
* added optional event filter for REST subscriptions
* updated docs for event filter
* Update docs/guides/real-time/subscriptions/websockets.md
Co-authored-by: ian <licitdev@gmail.com >
---------
Co-authored-by: ian <licitdev@gmail.com >
* added messenger unit test
* always send subscription confirmation
* Add event to subscription options
* Update tests
* Add tests for event filtering
* Revert testing for all vendors
* Remove obsolete console comment
* Update comment
* Correct event in JS WS guide
* Fix collection name to match name used in subscription
* Fix collection name in other guides
* Fix diffs in doc & enhance chart example
* Complete sentence in GraphQL guide
* Small update to config description
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
Co-authored-by: ian <licitdev@gmail.com >
Co-authored-by: Nitwel <mail@nitwel.de >
Co-authored-by: Kevin Lewis <kvn@lws.io >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
Co-authored-by: Esther Agbaje <folasadeagbaje@gmail.com >
2023-06-08 18:54:50 +00:00
Brainslug
9d8f29b792
Add extra type check in apply-diff ( #18783 )
2023-06-05 15:05:00 +02:00
ian
cd344baac4
Fix parsing of Error objects when redacting ( #18777 )
...
* Fix parsing of Error objects when redacting
* Create perfect-ducks-add.md
* Move errorReplacer into redact util
* Use unknown instead of any
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-05-31 08:40:32 -04:00
ian
93cba4e1b6
Optimise countDistinct aggregation on primary key field ( #18717 )
...
* Optimise countDistinct aggregation on primary key field
* Create green-boxes-hope.md
2023-05-26 02:14:02 +08:00
ian
80cca54d18
Enable caching for requests from data studio ( #18484 )
...
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-05-25 08:37:54 +02:00
Nicola Krumschmidt
60be3c2b40
Add synchronization across horizontally scaled instances to schedule flows and hooks ( #18584 )
...
* Add synchronization to schedule flows and hooks
Fixes #15052
* Add changeset
* Add test
* Add to sequential list
* Fix spelling in changeset
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
Co-authored-by: ian <licitdev@gmail.com >
2023-05-24 17:16:42 -04:00
Pascal Jufer
bcda7d227d
Disable disable depreacted marked options ( #18685 )
2023-05-22 11:19:21 -04:00
Pascal Jufer
a708ec79d8
Redact additional keys in logs of Flows ( #18534 )
...
* Redact additional keys in logs of Flows
* Create moody-poems-pump.md
* Move REDACTED_TEXT to constants package & update tests
* Revert "Move REDACTED_TEXT to constants package & update tests"
This reverts commit 0f5b227253 .
* Update redacted value in blackbox test
* Use own redact implementation
* Move REDACTED_TEXT to constants package
* Replace outdated comment
* Fix misleading return type
Since values might change (redacted), output isn't necessarily the same type anymore
2023-05-19 09:41:04 -04:00
ian
cf1d6a640d
Remove server info ( #18648 )
...
* Remove OS info
* Add changeset
* Update unit test
* Remove Directus version
* Remove unused dependency
* Update changeset
* Update example in docs
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
* Update changeset
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-05-18 19:28:48 +00:00
Pascal Jufer
377b2889ec
More sensible default formats for image auto conversion ( #18615 )
...
* Prevent auto conversion of png to jpg images
* Create red-swans-march.md
* Update transformation tests
* Update blackbox test
* Fix image allocation
* Fix test again :-)
* Convert formats with transparency support to png (if no accept header)
* Update tests & add final fallback
* Update changeset
* Update blackbox test
---------
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2023-05-16 13:50:27 -04:00
Brainslug
40129c9e2c
Fix for unknown filter fields ( #18630 )
...
* fix api throwing 500 error for unknown filter fields
* Create lucky-falcons-collect.md
---------
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2023-05-16 12:27:54 -04:00
Brainslug
af55402680
Adding a maximum for query limit ( #17309 )
...
* Adding a maximum for query limit
* fixed bad env check
* using the getEnv function to make it better testable
* updated sanitize-query tests
* added tests for the validate query function
* Added DEFAULT_QUERY_LIMIT as fallback instead
* make the linter happy
* accept infinity as max_query_limit
* fixed merge conflicts
* added missing import
* moved docs PR into main repo
* added missing import
* renamed vars
* basic page size limiting
* Update app/src/layouts/cards/cards.vue
* Update app/src/layouts/map/map.vue
* Update app/src/layouts/tabular/tabular.vue
* Update app/src/layouts/tabular/tabular.vue
* Create paginate util
* extracted page size logic to composable and implemented default usage in app
* updated paginate utility
* using the new fetch-all utility
* removed limit: -1 for api calls that do not support it
* fix linter
* removed console log
* making the linter happy
* Create loud-flowers-yawn.md
* Add tests for no / unlimited limit
* Cover all cases for max limit in sanitizeQuery
* Get rid of non-null assertion
* added test for composable
* Update var names in documentation
* replace hardcoded limit default with env var
* update default page size behavior
* fixed test
* update server info api reference
* include queryLimit in graphql server info
* use configured max limit in calendar layout
* use configured max limit in kanban layout
* account for max query limit in use-revisions
---------
Co-authored-by: ian <licitdev@gmail.com >
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
2023-05-12 21:59:03 +08:00
Brainslug
a9f397de1f
Prevent parsing non-decimal values in search ( #18383 )
...
* prevent parsing non-decimal values in search
* Create rare-deers-clap.md
* Adjust format of changeset
* Add explaining comment to return logic of validateNumber
* remove float with zeros check
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-05-03 09:42:28 -04:00
Brainslug
c74b5da7b9
Improved flows error class handling ( #18421 )
...
* improved flows error handling
* Create gentle-cars-watch.md
* updated changeset
2023-05-03 09:40:45 -04:00
Rijk van Zanten
44b4863788
Require curly brackets in if statements when they're multi-line ( #18387 )
...
* Enable Curly rule
* Fix curly misuse
2023-05-02 16:02:43 -04:00
Brainslug
06ff0c2ef9
Fixes _offset=0 in deep filters ( #18382 )
2023-05-02 12:34:50 +02:00
Brainslug
2ced6b0a0b
Prevent thumbnail duplication ( #18316 )
2023-04-26 20:39:20 +02:00
Rijk van Zanten
2bc226d16f
Change license to BSL-1.1 ( #18330 )
...
* Change license to BSL1.1
* Mark major version
* Fix formatting
* Remove duplicate heading
* Update formatting
* Copy paste error
* Update license
* Update license
* Format covenants
* Update readme.md
* Update licenses for packages
* Update readme.md
* Update contributors.yml
OG... but to be clear, rijkvanzanten is the one who really built all of this ❤️
* Tweak license in openapi
* Update packages/specs/src/openapi.yaml
* Add MIT license headers
* Use v10 in examples
* Update additional examples
* Update generate-extensions-entrypoint.test.ts
* Update tests to use latest v9 and v10 versions
* use lowercase for naming consistency
* change casing for api license
* Update migrations doc
* Update dictionary
* Consistent ordering of license field in app/package.json
* Use major version in specs again (but as string)
So it's valid for all v10 versions
* Consolidate readme's
---------
Co-authored-by: Ben Haynes <ben@directus.io >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
Co-authored-by: ian <licitdev@gmail.com >
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
2023-04-26 14:10:42 -04:00
Pascal Jufer
17afb9a3bc
Patch Tuesday 🐸 ( #18260 )
...
* Update `@directus/api` deps (minor)
@aws-sdk/client-ses 3.292.0 → 3.316.0
@godaddy/terminus 4.11.2 → 4.12.0
@rollup/plugin-alias 4.0.3 → 4.0.4
@rollup/plugin-node-resolve 15.0.1 → 15.0.2
@types/node 18.15.3 → 18.15.11
@vitest/coverage-c8 0.29.3 → 0.30.1
axios 1.3.4 → 1.3.6
fs-extra 11.1.0 → 11.1.1
helmet 6.0.1 → 6.1.5
ioredis 5.3.1 → 5.3.2
joi 17.8.4 → 17.9.1
liquidjs 10.6.1 → 10.7.0
marked 4.2.12 → 4.3.0
nanoid 3.3.4 → 3.3.6
rollup 3.19.1 → 3.20.6
sharp 0.31.3 → 0.32.0
vitest 0.29.3 → 0.30.1
vm2 3.9.16 → 3.9.17
* Update `@directus/api` deps (major)
@rollup/plugin-alias 4.0.4 → 5.0.0
@types/inquirer 8.2.6 → 9.0.3
@types/node 18.15.11 → 18.15.12
camelcase 6.3.0 → 7.0.1
chalk 4.1.2 → 5.2.0
commander 9.5.0 → 10.0.1
execa 5.1.1 → 7.1.1
icc 2.0.0 → 3.0.0
inquirer 8.2.5 → 9.1.5
~ldapjs 2.3.3 → 3.0.2~
nanoid 3.3.6 → 4.0.2
~openapi3-ts 3.2.0 → 4.1.1~
ora 5.4.1 → 6.3.0
strip-bom-stream 4.0.0 → 5.0.0
tedious 15.1.3 → 16.0.0
typescript 4.9.5 → 5.0.4
* Update `@directus/app` deps
@babel/core 7.21.3 → 7.21.4
@babel/preset-env 7.20.2 → 7.21.4
@fortawesome/fontawesome-svg-core 6.3.0 → 6.4.0
@fortawesome/free-brands-svg-icons 6.3.0 → 6.4.0
@fullcalendar/core 6.1.4 → 6.1.5
@fullcalendar/daygrid 6.1.4 → 6.1.5
@fullcalendar/interaction 6.1.4 → 6.1.5
@fullcalendar/list 6.1.4 → 6.1.5
@fullcalendar/timegrid 6.1.4 → 6.1.5
@pinia/testing 0.0.15 → 0.0.16
@popperjs/core 2.11.6 → 2.11.7
@storybook/addon-actions 7.0.0-rc.4 → 7.0.6
@storybook/addon-backgrounds 7.0.0-rc.4 → 7.0.6
@storybook/addon-docs 7.0.0-rc.4 → 7.0.6
@storybook/addon-essentials 7.0.0-rc.4 → 7.0.6
@storybook/addon-links 7.0.0-rc.4 → 7.0.6
@storybook/addon-mdx-gfm 7.0.0-rc.4 → 7.0.6
@storybook/addon-measure 7.0.0-rc.4 → 7.0.6
@storybook/addon-outline 7.0.0-rc.4 → 7.0.6
@storybook/client-api 7.0.0-rc.4 → 7.0.6
@storybook/client-logger 7.0.0-rc.4 → 7.0.6
@storybook/vue3 7.0.0-rc.4 → 7.0.6
@storybook/vue3-vite 7.0.0-rc.4 → 7.0.6
@types/diff 5.0.2 → 5.0.3
@types/dompurify 3.0.0 → 3.0.2
@types/lodash 4.14.191 → 4.14.194
@vitejs/plugin-vue 4.0.0 → 4.1.0
@vue/test-utils 2.3.1 → 2.3.2
apexcharts 3.37.1 → 3.39.0
axios 1.3.4 → 1.3.6
dompurify 3.0.1 → 3.0.2
happy-dom 8.9.0 → 9.8.4
marked 4.2.12 → 4.3.0
nanoid 4.0.1 → 4.0.2
pinia 2.0.33 → 2.0.34
sass 1.59.3 → 1.62.0
storybook 7.0.0-rc.4 → 7.0.6
typescript 4.9.5 → 5.0.4
vite 4.1.4 → 4.2.2
vitest 0.29.3 → 0.30.1
webpack 5.76.2 → 5.80.0
* Update root deps
* Update `@directus/composables` deps
* Update `@directus/constant` deps
* Update `create-directus-extension` deps
* Update `@directus/exceptions` deps
* tsconfig workaround: ignoreDeprecations
* Update `@directus/extensions-sdk` deps
* Update `@directus/schema` deps
* Update `@directus/storage` deps
* Update `@directus/storage-driver-azure` deps
* Update `@directus/storage-driver-cloudinary` deps
* Update `@directus/storage-driver-gcs` deps
* Update `@directus/storage-driver-local` deps
* Update `@directus/storage-driver-s3` deps
* Update `@directus/types` deps
* Update `@directus/update-check` deps
* Update `@directus/utils` deps
* tsconfig workaround in schema: ignoreDeprecations
* tsconfig workaround in remaining packages: ignoreDeprecations
* Update `tests-blackbox` deps
* Revert "tsconfig workaround: ignoreDeprecations"
This reverts commit 5d97da55e3 .
* Revert tsconfig override
* Update tsconfig
* Fix imports in @directus/utils
* Fix imports in composables
* Fix imports in extensions-sdk
* Fix imports in @directus/api
* Move RateLimiterAbstract to types import as well
* Bump pnpm to 8.3.1
* Update `docs` deps
> [...] the @vueuse/head package will be deprecated. If you're setting up this package on a new project, you should use the @unhead/vue package directly [...]
* Remove obselete dep `concurrently` from extensions-sdk
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* New day, new updates
Also forgot to include minor updates of deps in `tests-blackbox` in previous
commit
* Fix `api` tests
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
2023-04-21 12:59:27 -04:00
Rijk van Zanten
8ffb92ffa1
Remove cache flushing on startup ( #18238 )
...
* Remove cache flushing on startup
* Flush caches on migrate
* Add current API version to cache key
* Fix expect hashes in test
2023-04-19 12:26:01 -04:00
Rijk van Zanten
c48309ab68
Last eslint tweak ( #18198 )
...
* Should be there now
* Format
2023-04-14 17:40:50 -04:00
rijkvanzanten
37658802b7
One more
2023-04-14 17:30:56 -04:00
Rijk van Zanten
bdb1a919e2
White space rules ( #18197 )
...
* White space rules
* Auto-fix whitespace linter warnings
2023-04-14 17:21:56 -04:00
Nitwel
898b580707
Autoconvert assets if browser supports it ( #18012 )
...
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2023-04-12 15:08:51 +00:00
José Varela
54f5081e69
Users: Verify JWT on accept invitation ( #16711 )
...
* Adds ability to verify JWT with meaningful errors
* Fix tests
* Apply verify JWT to accept invitation
* Update per review
* Add joselcvarela to contributors
He's a core team member; already signed the CLA outside of GH
---------
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com >
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2023-04-11 15:49:26 -04:00
Pascal Jufer
15b91dee34
Blackbox tests restructuring ( #18122 )
...
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
Co-authored-by: ian <licitdev@gmail.com >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2023-04-11 18:28:37 +02:00
Azri Kahar
dd3202ce38
Fix diff validation and apply ( #18048 )
...
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
Co-authored-by: ian <licitdev@gmail.com >
2023-04-10 17:53:51 +02:00
ian
fdf0fa2fb8
Add max batch mutation ( #17535 )
...
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-04-07 18:25:25 +02:00
Rijk van Zanten
2983e61870
The Great TypeScript Modernization Program Season 3 Episode 6: The Big One ( #18014 )
...
* Step 1
* Step 2
* False sense of confidence
* Couple more before dinner
* Update schema package
* Update format-title
* Upgrade specs file
* Close
* Replace ts-node-dev with tsx, and various others
* Replace lodash with lodash-es
* Add lodash-es types
* Update knex import
* More fun is had
* FSE
* Consolidate repos
* Various tweaks and fixes
* Fix specs
* Remove dependency on knex-schema-inspector
* Fix wrong imports of inspector
* Move shared exceptions to new package
* Move constants to separate module
* Move types to new types package
* Use directus/types
* I believe this is no longer needed
* [WIP] Start moving utils to esm
* ESMify Shared
* Move shared utils to @directus/utils
* Use @directus/utils instead of @directus/shared/utils
* It runs!
* Use correct schemaoverview type
* Fix imports
* Fix the thing
* Start on new update-checker lib
* Use new update-check package
* Swap out directus/shared in app
* Pushing through the last bits now
* Dangerously make extensions SDK ESM
* Use @directus/types in tests
* Copy util function to test
* Fix linter config
* Add missing import
* Hot takes
* Fix build
* Curse these default exports
* No tests in constants
* Add tests
* Remove tests from types
* Add tests for exceptions
* Fix test
* Fix app tests
* Fix import in test
* Fix various tests
* Fix specs export
* Some more tests
* Remove broken integration tests
These were broken beyond repair.. They were also written before we really knew what we we're doing with tests, so I think it's better to say goodbye and start over with these
* Regenerate lockfile
* Fix imports from merge
* I create my own problems
* Make sharp play nice
* Add vitest config
* Install missing blackbox dep
* Consts shouldn't be in types
tsk tsk tsk tsk
* Fix type/const usage in extensions-sdk
* cursed.default
* Reduce circular deps
* Fix circular dep in items service
* vvv
* Trigger testing for all vendors
* Add workaround for rollup
* Prepend the file protocol for the ESM loader to be compatible with Windows
"WARN: Only URLs with a scheme in: file and data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'"
* Fix postgres
* Schema package updates
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Resolve cjs/mjs extensions
* Clean-up eslint config
* fixed extension concatination
* using string interpolation for consistency
* Revert MySQL optimisation
* Revert testing for all vendors
* Replace tsx with esbuild-kit/esm-loader
Is a bit faster and we can rely on the built-in `watch` and `inspect`
functionalities of Node.js
Note: The possibility to watch other files (.env in our case) might be
added in the future, see https://github.com/nodejs/node/issues/45467
* Use exact version for esbuild-kit/esm-loader
* Fix import
---------
Co-authored-by: ian <licitdev@gmail.com >
Co-authored-by: Brainslug <tim@brainslug.nl >
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-04-04 17:41:56 -04:00
rijkvanzanten
952da7b898
Simplify util
2023-04-04 17:07:02 -04:00
ian
f705fedf09
Fix cache skipping when PUBLIC_URL is relative ( #18029 )
...
* Fix cache skipping when PUBLIC_URL is relative
* Add test
* Update api/src/utils/should-skip-cache.test.ts
---------
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
2023-04-03 09:59:21 -04:00
Rijk van Zanten
cb74665693
noUnusedParameters: true ( #17935 )
2023-03-24 16:56:18 -04:00
Rijk van Zanten
2bc039607b
TS Config Modernization Program Part 4 of almost done ( #17934 )
...
* noUncheckedIndexedAccess: true !!!!!!!?!!!!!!!!!!?
* Fix duplicate non-null assertion
2023-03-24 16:43:54 -04:00
Brainslug
73bbfaf058
Fix cookie redaction in logs ( #17914 )
...
* removed incorrect redaction logic
* updated paths that werent working
* Added new redaction function
* Reverting unintentional change
* don't force lowercase provider names
* extracted cookieNames
* set cookie based on driver settings suggested by ian
* add unit test
* redact the entire cookie header
* updated the tests
* move redact text to constants
---------
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2023-03-24 14:04:22 +00:00
Rijk van Zanten
80f4807a09
TS Config Modernization Program Part 3 of many ( #17904 )
...
* noImplicitOverride: true
* noImplicitReturns: true
* noPropertyAccessFromIndexSignature: true
2023-03-23 16:47:55 -04:00
Brainslug
8b0c5f1250
Fixed boolean logic mistake in the _nempty operator ( #17903 )
2023-03-23 16:24:13 -04:00
John Hillegass
3495363039
Merge pull request from GHSA-8vg2-wf3q-mwv7
...
* fix(api): redact header cookie
This is a quick PoC for a fix. I am not sure if it's the best answer and have not added tests yet. If we feel good about it, I can add tests and open a PR. Please let me know how you'd like to proceed!
* cleaner
* rework to handle multiple inputs and add unit tests
* Added same redacting logic for teh response set-cookie
---------
Co-authored-by: Brainslug <tim@brainslug.nl >
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com >
2023-03-23 18:54:02 +01:00
ian
cce33436d1
Rework schema caching to use memory ( #17763 )
...
Co-authored-by: Nitwel <mail@nitwel.de >
Co-authored-by: Jan Arends <jaads@users.noreply.github.com >
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com >
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-03-23 12:52:06 +01:00
rijkvanzanten
5247b68afa
Updates 6 of 6
2023-03-22 17:23:30 -04:00
rijkvanzanten
0a137551a8
Updates 2 of many
2023-03-22 16:23:25 -04:00
rijkvanzanten
05034d0e17
Updates 1 of many
2023-03-22 16:13:54 -04:00
Rijk van Zanten
1a5f06c791
TSConfig Modernization: Set importsNotUsedAsValues ( #17887 )
...
* Set importsNotUsedAsValues
* Fix import
2023-03-22 14:51:27 -04:00
Nitwel
a9a5e2a26d
Fix options being null ( #17847 )
2023-03-20 13:54:27 +01:00