Commit Graph

1031 Commits

Author SHA1 Message Date
Nicola Krumschmidt
38f7d911f6 Fix requiring vue from a cjs/umd dependency in a extension (#6700)
* Fix requiring vue from a cjs/umd dependency in extensions

* Speed up cjs bundling

* Optimize styles when using a css preprocessor
2021-07-07 14:11:12 +02:00
renovate[bot]
b4636e2403 update dependency @types/jest to v26.0.24 (#6692)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 11:56:28 +02:00
renovate[bot]
bf61042d9c update dependency @types/js-yaml to v4.0.2 (#6694)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 11:44:20 +02:00
renovate[bot]
3d1a843559 update dependency @types/fs-extra to v9.0.12 (#6689)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 09:37:02 +00:00
renovate[bot]
bddd2f52f1 update dependency @types/figlet to v1.5.2 (#6688)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 11:03:21 +02:00
renovate[bot]
b4dd1993da update dependency nock to v13.1.1 (#6652)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-05 14:14:46 +02:00
masterwendu
07e3cb1767 add full tfa support to sdk (#6621) 2021-07-04 13:55:12 +02:00
renovate[bot]
5936c8b2d9 update dependency rollup to v2.52.7 (#6597)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-02 12:04:08 +02:00
renovate[bot]
18d6c0edbe update dependency typescript to v4.3.5 (#6592)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 20:02:38 -04:00
Nicola Krumschmidt
a99f23b009 Fix dev script not watching in shared and extension-sdk (#6589) 2021-06-30 19:53:46 -04:00
Nicola Krumschmidt
8341810218 Fix building extensions with style tags (#6583) 2021-06-30 12:37:15 -04:00
Nicola Krumschmidt
e764c7c7fb Fix extension loading on windows (#6579)
Javascript import syntax uses URLs instead of paths, so we have to
normalize the extension paths to forward slashes when importing them
inside the virtual entrypoints.

Fixes #6550
2021-06-30 10:03:21 -04:00
renovate[bot]
1eaa28b5ec update dependency rollup to v2.52.4 (#6572)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 09:29:45 -04:00
Nicola Krumschmidt
31c74e01f2 Update the required Node version to 12.20.0 (#6578) 2021-06-30 09:16:45 -04:00
rijkvanzanten
04976eb13f v9.0.0-rc.83 2021-06-29 16:18:56 -04:00
rijkvanzanten
872dff6bb8 Fix cleaning order 2021-06-29 09:58:07 -04:00
rijkvanzanten
f46d7e4dd6 v9.0.0-rc.82 2021-06-28 19:32:21 -04:00
Nicola Krumschmidt
7f60fb0fc1 Add directus-extension CLI to extension-sdk (#6548)
* Remove return from api cli entrypoint

* Add directus-extension cli to extension-sdk

The initial version only implements the "build" command.
Executing "build" in the root of an extension package bundles the
extension to a single distributable and loadable entrypoint.

* Update extension docs to use directus-extension build
2021-06-28 15:56:01 -04:00
WoLfulus
043ae13e40 Adds request and response interceptors on Axios transport (#6538) 2021-06-28 18:44:38 +00:00
renovate[bot]
b886281914 update dependency jest to v27.0.6 (#6546)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-28 14:10:36 -04:00
renovate[bot]
8a3796b8bb update dependency commander to v8 (#6498)
* update dependency commander to v8

* Update import to match new version

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-06-28 14:05:55 -04:00
Nicola Krumschmidt
ed1127f3b1 Fix extension loading when PUBLIC_URL is absolute without origin (#6534)
* Fix extension loading when PUBLIC_URL is absolute without origin

* Minify extension bundler output

* Make extension loading in dev more robust

* Rename ensureExtensionsDirs to ensureExtensionDirs
2021-06-28 11:20:30 -04:00
rijkvanzanten
a469bb728f v9.0.0-rc.81 2021-06-26 22:09:40 -04:00
rijkvanzanten
4b6efe3053 Add prepublish scripts to new packages 2021-06-26 22:07:52 -04:00
renovate[bot]
21d4c0fa4a update dependency prettier to v2.3.2 (#6509)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-26 12:15:26 -04:00
renovate[bot]
24a7134171 update dependency rollup to v2.52.3 (#6499)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-25 10:00:05 -04:00
Rijk van Zanten
74ad2b2b7a Update vue to 3.1.2 (#6482)
* Update vue to 3.1.2

* call me amazon 📦

* commits so fast, prime same day
2021-06-24 13:09:30 -04:00
renovate[bot]
892e5f5637 update dependency fs-extra to v10 (#6470)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-24 11:53:43 -04:00
rijkvanzanten
67cf90fea4 Fix devmode 2021-06-23 19:01:37 -04:00
Nicola Krumschmidt
d544214c79 Fix extension loading on initial startup (#6471) 2021-06-23 18:16:13 -04:00
renovate[bot]
7b1e1f7f82 pin dependencies (#6469)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-23 13:01:49 -04:00
Nicola Krumschmidt
051df415df Fix extensions (#6377)
* Add support for npm extensions

* Allow extensions to import vue from the main app

* Bundle app extensions on server startup

* Fix return type of useLayoutState

* Add shared package

* Add extension-sdk package

* Add type declaration files to allow deep import of shared package

* Add extension loading to shared

* Refactor extension loading to use shared package

* Remove app bundle newline replacement

* Fix extension loading in development

* Rename extension entrypoints

* Update extension build instructions

* Remove vite auto-replacement workaround

* Update package-lock.json

* Remove newline from generated extension entrypoint

* Update package-lock.json

* Build shared package as cjs and esm

* Move useLayoutState composable to shared

* Reverse vite base env check

* Share useLayoutState composable through extension-sdk

* Update layout docs

* Update package versions

* Small cleanup

* Fix layout docs

* Fix imports

* Add nickrum to codeowners

* Fix typo

* Add 'em to vite config too

* Fix email

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-06-23 12:43:06 -04:00
rijkvanzanten
465c10d4c7 v9.0.0-rc.80 2021-06-22 22:00:55 -04:00
rijkvanzanten
5e0328fea0 v9.0.0-rc.79 2021-06-22 21:08:49 -04:00
renovate[bot]
c594e29114 fix(deps): update dependency gatsby-source-filesystem to v3.8.0 (#6445)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-22 18:24:21 -04:00
renovate[bot]
a9dd50ac4b chore(deps): update dependency jest to v27.0.5 (#6424)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-22 09:21:16 -04:00
rijkvanzanten
93b7aeb788 v9.0.0-rc.78 2021-06-21 17:56:34 -04:00
rijkvanzanten
7a09711c42 v9.0.0-rc.77 2021-06-21 16:11:06 -04:00
renovate[bot]
c440cd8ce6 chore(deps): update dependency rollup to v2.52.2 (#6400)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-21 09:22:48 -04:00
renovate[bot]
486973b6d9 chore(deps): update dependency swagger-ui-watcher to v2.1.12 (#6399)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-21 09:22:31 -04:00
renovate[bot]
9eb3a77689 chore(deps): update dependency typescript to v4.3.4 (#6357)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 15:00:05 -04:00
renovate[bot]
411d259ed6 chore(deps): update dependency fs-extra to v10 (#6334)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 16:02:26 +00:00
renovate[bot]
569cb273a1 fix(deps): update dependency chalk to v4 (#6342)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 11:49:42 -04:00
renovate[bot]
6008770a83 chore(deps): update dependency dotenv to v10 (#6333)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 11:47:20 -04:00
renovate[bot]
7e76eb4c79 fix(deps): update dependency ms to v2.1.3 (#6328)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 11:45:31 -04:00
renovate[bot]
998c1bafb8 chore(deps): update dependency typescript to v4.3.3 (#6329)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 11:44:37 -04:00
renovate[bot]
fd8015b5b8 chore(deps): update dependency rollup to v2.52.1 (#6337)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 11:42:18 -04:00
renovate[bot]
d4be69afef fix(deps): pin dependencies (#6323)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 09:50:17 -04:00
dependabot[bot]
3816eb46d2 Bump rollup from 2.51.2 to 2.52.0 (#6300)
Bumps [rollup](https://github.com/rollup/rollup) from 2.51.2 to 2.52.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.51.2...v2.52.0)

---
updated-dependencies:
- dependency-name: rollup
  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-16 09:27:18 -04:00
dependabot[bot]
d40eb67565 Bump aws-sdk from 2.927.0 to 2.928.0 (#6272)
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.927.0 to 2.928.0.
- [Release notes](https://github.com/aws/aws-sdk-js/releases)
- [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js/compare/v2.927.0...v2.928.0)

---
updated-dependencies:
- dependency-name: aws-sdk
  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-15 09:17:45 -04:00