@directus/extensions-sdk 11.0.0 → 11.0.2

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/license CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright 2023 Monospace, Inc.
3
+ Copyright 2024 Monospace, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6
6
  documentation files (the “Software”), to deal in the Software without restriction, including without limitation the
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.2",
4
4
  "description": "A toolkit to develop extensions to extend Directus",
5
5
  "homepage": "https://directus.io",
6
6
  "repository": {
@@ -38,24 +38,24 @@
38
38
  "esbuild": "0.17.19",
39
39
  "execa": "7.2.0",
40
40
  "fs-extra": "11.2.0",
41
- "inquirer": "9.2.15",
41
+ "inquirer": "9.2.16",
42
42
  "ora": "6.3.1",
43
43
  "rollup": "3.29.4",
44
44
  "rollup-plugin-esbuild": "5.0.0",
45
45
  "rollup-plugin-styles": "4.0.0",
46
46
  "vite": "4.5.2",
47
47
  "vue": "3.4.21",
48
- "@directus/composables": "10.1.11",
48
+ "@directus/composables": "10.1.12",
49
49
  "@directus/constants": "11.0.3",
50
- "@directus/extensions": "1.0.0",
51
- "@directus/themes": "0.3.5",
52
- "@directus/types": "11.0.7",
53
- "@directus/utils": "11.0.6"
50
+ "@directus/extensions": "1.0.2",
51
+ "@directus/types": "11.0.8",
52
+ "@directus/utils": "11.0.7",
53
+ "@directus/themes": "0.3.6"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/fs-extra": "11.0.4",
57
57
  "@types/inquirer": "9.0.7",
58
- "@vitest/coverage-v8": "1.3.1",
58
+ "@vitest/coverage-v8": "1.4.0",
59
59
  "typescript": "5.3.3",
60
60
  "vitest": "1.3.1",
61
61
  "@directus/tsconfig": "1.0.1"