@directus/extensions-sdk 11.0.0 → 11.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,8 +5,8 @@ import { execa } from 'execa';
5
5
  import fse from 'fs-extra';
6
6
  import ora from 'ora';
7
7
  import path from 'path';
8
+ import { LAST_BREAKING_RELEASE } from '../../constants/last-breaking.js';
8
9
  import getPackageManager from '../utils/get-package-manager.js';
9
- import getSdkVersion from '../utils/get-sdk-version.js';
10
10
  import { isLanguage, languageToShort } from '../utils/languages.js';
11
11
  import { log } from '../utils/logger.js';
12
12
  import copyTemplate from './helpers/copy-template.js';
@@ -47,7 +47,7 @@ async function createBundleExtension({ type, name, targetDir, targetPath, instal
47
47
  const spinner = ora(chalk.bold('Scaffolding Directus extension...')).start();
48
48
  await fse.ensureDir(targetPath);
49
49
  await copyTemplate(type, targetPath);
50
- const host = `^${getSdkVersion()}`;
50
+ const host = `^${LAST_BREAKING_RELEASE}`;
51
51
  const options = { type, path: { app: 'dist/app.js', api: 'dist/api.js' }, entries: [], host };
52
52
  const packageManifest = getPackageManifest(name, options, await getExtensionDevDeps(type));
53
53
  await fse.writeJSON(path.join(targetPath, 'package.json'), packageManifest, { spaces: '\t' });
@@ -66,7 +66,7 @@ async function createExtension({ type, name, targetDir, targetPath, language, in
66
66
  const spinner = ora(chalk.bold('Scaffolding Directus extension...')).start();
67
67
  await fse.ensureDir(targetPath);
68
68
  await copyTemplate(type, targetPath, 'src', language);
69
- const host = `^${getSdkVersion()}`;
69
+ const host = `^${LAST_BREAKING_RELEASE}`;
70
70
  const options = isIn(type, HYBRID_EXTENSION_TYPES)
71
71
  ? {
72
72
  type,
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Last release with known breaking changes to the Extensions SDK and it's output.
3
+ * This will be used as the default value for the `host` manifest field in created extensions
4
+ */
5
+ export declare const LAST_BREAKING_RELEASE = "10.10.0";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Last release with known breaking changes to the Extensions SDK and it's output.
3
+ * This will be used as the default value for the `host` manifest field in created extensions
4
+ */
5
+ export const LAST_BREAKING_RELEASE = '10.10.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@directus/extensions-sdk",
3
- "version": "11.0.0",
3
+ "version": "11.0.1",
4
4
  "description": "A toolkit to develop extensions to extend Directus",
5
5
  "homepage": "https://directus.io",
6
6
  "repository": {
@@ -47,8 +47,8 @@
47
47
  "vue": "3.4.21",
48
48
  "@directus/composables": "10.1.11",
49
49
  "@directus/constants": "11.0.3",
50
- "@directus/extensions": "1.0.0",
51
50
  "@directus/themes": "0.3.5",
51
+ "@directus/extensions": "1.0.1",
52
52
  "@directus/types": "11.0.7",
53
53
  "@directus/utils": "11.0.6"
54
54
  },