Pascal Jufer
e987c1990e
10.6.4 ( #20102 )
2023-10-20 18:55:45 +00:00
Pascal Jufer
e1dd6fa037
Update TS related dependencies and configurations ( #19866 )
2023-09-29 14:45:47 +02:00
Rijk van Zanten
926f19d3fa
10.6.3
2023-09-25 15:43:10 -04:00
Pascal Jufer
1fd9259efd
Bundle @directus/utils ( #19714 )
2023-09-20 22:38:00 +02:00
rijkvanzanten
e908db17b4
v10.6.2
2023-09-19 13:28:29 -04:00
rijkvanzanten
3ec4009bb8
v10.6.0
2023-08-25 11:42:24 -04:00
rijkvanzanten
373cc9f4fa
v10.5.0
2023-07-25 17:36:33 -04:00
rijkvanzanten
d3c9de9dfb
v10.4.3
2023-07-11 16:00:17 +02:00
rijkvanzanten
2239ef8db7
v10.4.0
2023-06-27 17:43:26 -04: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
rijkvanzanten
c0cd7860b1
v10.3.0
2023-06-13 12:52:12 -04:00
rijkvanzanten
619d1f5726
v10.2.1
2023-05-26 14:21:39 -04:00
rijkvanzanten
ca73cc976e
v10.2.0
2023-05-26 13:17:06 -04:00
Pascal Jufer
7ecda9b2fa
Clean-up package.json files ( #18663 )
...
* Remove publishConfig from all packages
* Remove invalid version field
* Move @directus/composables to devDependencies in app
* Resort all package.json files
* Align meta fields
---------
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2023-05-19 17:54:10 -04:00
Rijk van Zanten
c7d0cd0c74
Move tsconfig package to monorepo ( #18659 )
...
* Move tsconfig package to monorepo
* Use local reference to tsconfig
2023-05-19 12:30:45 -04:00
Pascal Jufer
e904927065
Update Vue to 3.3.4 to satisfy '@vue/test-utils' ( #18658 )
2023-05-19 12:18:55 -04:00
Pascal Jufer
2e647d80e6
Patch Tuesday 🐸 ( #18643 )
...
* Update `directus-monorepo` deps
* Update `@directus/api` deps
* Update `@directus/app` deps
* Update `@directus/composables` deps
* Update `create-directus-extension` deps
* Update `@directus/exceptions` deps
* Update `@directus/data` deps
* Update `@directus/data-driver-postgres` deps
* Update `@directus/extensions-sdk` deps
* Update `@directus/pressure` deps
* Update `@directus/random` deps
* Update `@directus/release-notes-generator` 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
* Update `docs` deps
* Update `tests-blackbox` deps
* Bump pnpm to 8.5.1
* Bump build-push-action in release workflow to v4
* Assign new spy instances before each test
See https://github.com/vitest-dev/vitest/pull/3386
* Create clean-needles-nail.md
* Remove leftover 'beforeAll' imports
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
---------
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2023-05-19 10:48:21 -04:00
rijkvanzanten
fa8c914978
v10.1.1
2023-05-16 14:03:02 -04:00
Pascal Jufer
d119f5d501
Update to Vue 3.3 ( #18588 )
...
* Update to Vue 3.3
* Create fresh-hotels-mate.md
* Update eslint-plugin-vue
* Replace rollup-plugin-vue with @vitejs/plugin-vue
2023-05-15 14:19:12 -04:00
rijkvanzanten
703c5d9c69
v10.1.0
2023-05-11 17:22:00 -04:00
Rijk van Zanten
20912f1645
Revert "Use vitest run instead of --watch=false ( #18540 )" ( #18542 )
...
This reverts commit 97f0af669e .
2023-05-10 13:33:28 -04:00
Rijk van Zanten
97f0af669e
Use vitest run instead of --watch=false ( #18540 )
2023-05-10 13:24:30 -04:00
Rijk van Zanten
50e2c4220d
Standardize TSConfig use ( #18538 )
...
* Use tsconfig.prod.json in packages
* Use prod tsconfig in api
* Install node types in storage
2023-05-10 13:22:30 -04:00
Brainslug
4d1d0e61dd
Updated vitest ( #18483 )
...
* updated vitest to 0.31.0
* Create late-tables-call.md
2023-05-04 11:29:54 -04:00
Nicola Krumschmidt
1f49d9528f
Remove unused storage dependency from utils package ( #18480 )
2023-05-04 10:14:02 -04:00
Nicola Krumschmidt
1d7eec9795
Mark shared packages as side effects free ( #18365 )
...
* Mark the constant and utils packages as side effects free
* Add changeset
* mark composables as side effect free
* mark exceptions package as side effects free
* updated changeset
---------
Co-authored-by: Brainslug <tim@brainslug.nl >
2023-05-03 14:26:52 +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
rijkvanzanten
381f1c9d8e
v9.26.0
2023-04-24 16:40:53 -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
rijkvanzanten
835b0de89d
v9.25.2
2023-04-20 10:49:53 -04:00
Hannes Küttner
9b4fb996ce
Publish all types from packages/* ( #18211 )
...
* Publish all types in packages/*
* Re-add main entrypoints and add types
* Clean-up prettier config / editorconfig
- Remove 'useTabs' so prettier will not override settings from editorconfig
- Remove settings in editorconfig which match the defaults anyway
* Remove types entrypoint again
* Update packages/schema/package.json
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-04-17 21:37:17 +08:00
rijkvanzanten
c301cfbc82
v9.25.1
2023-04-13 16:32:58 -04:00
rijkvanzanten
4f540b03d0
v9.25.0
2023-04-13 13:32:44 -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
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
517e7cb55c
v9.24.0
2023-04-04 17:13:31 -04:00
rijkvanzanten
6b9982eae2
v9.23.4
2023-03-24 11:34:21 -04:00
rijkvanzanten
21a0b910ac
v9.23.3
2023-03-23 14:11:49 -04:00
rijkvanzanten
74508c70b8
v9.23.2
2023-03-23 13:35:11 -04:00
Pascal Jufer
0293c88aa3
Patch Tuesday 🐸 ( #17811 )
...
* Update root deps
* Update `directus` deps
* Update `@directus/app` deps
* Update usage of knex-mock-client
* Update `@directus/shared` deps
* Update `extensions-sdk` deps
* Update `@directus/specs` 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/utils` deps
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
2023-03-17 15:15:03 +08:00
rijkvanzanten
e468f58eec
v9.23.1
2023-03-01 09:51:57 -05:00
rijkvanzanten
47b9824954
v9.23.0
2023-02-28 12:51:36 -05:00
Pascal Jufer
37faf3bd5d
Patch Tuesday 🐸 ( #17530 )
...
* Update root deps
* Reformat files with new prettier version
* Update `directus` deps
* Update `@directus/app` deps
* Update `@directus/shared` deps
* Update components snapshots after updates
prop order has changed
* Update `extensions-sdk` deps
* pin version of zod in shared
* Update `@directus/storage` deps
* Update `@directus/storage-driver-azure` deps
* Update `storage-driver-cloudinary` deps
* Update `@directus/storage-driver-cloudinary` deps
* Update `@directus/storage-driver-local` deps
* Update `@directus/storage-driver-s3` deps
* Update `@directus/utils` deps
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2023-02-16 17:47:39 +08:00
Pascal Jufer
26318dbe62
Patch Tuesday 🐸 ( #17353 )
2023-01-31 23:15:49 -05:00
rijkvanzanten
065c77dc1d
v9.22.4
2023-01-11 17:05:16 -05:00
rijkvanzanten
9f708d67bc
v9.22.3
2023-01-11 12:16:11 -05:00
rijkvanzanten
b9a5005859
v9.22.2
2023-01-11 11:27:56 -05:00
Rijk van Zanten
40f94e6907
Patch Tuesday 🐸 ( #16875 )
...
* Update versions
* Fix usage of fullcalendar
* Patch Tuesday Additions 🐸 🐸 (#16878 )
* Interop default in vitest
* Update exif-reader
* remove deprecated @types/pino
* remove old "grant" package type shim
* Small clean-up of dependencies (#16576 )
* Remove outdated type deps & update concurrently
* fix lock file
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
2022-12-23 10:45:15 -05:00
rijkvanzanten
602f5db4f7
v9.22.1
2022-12-21 17:12:11 -05:00
rijkvanzanten
8f0fb8b40f
v9.22.0
2022-12-21 14:33:04 -05:00