@grafana/create-plugin 6.5.0-canary.2320.20268376971.0 → 6.5.0-canary.2320.20268447181.0

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.
@@ -62,7 +62,7 @@ function addI18nInitialization(context, needsBackwardCompatibility) {
62
62
  }
63
63
  const i18nInitCode = needsBackwardCompatibility ? `// Before Grafana version 12.1.0 the plugin is responsible for loading translation resources
64
64
  // In Grafana version 12.1.0 and later Grafana is responsible for loading translation resources
65
- const loaders = semver.lt(config?.buildInfo?.version || '0.0.0', '12.1.0') ? [loadResources] : [];
65
+ const loaders = semver.lt(config?.buildInfo?.version, '12.1.0') ? [loadResources] : [];
66
66
 
67
67
  await initPluginTranslations(pluginJson.id, loaders);` : `await initPluginTranslations(pluginJson.id);`;
68
68
  const initAst = recast.parse(i18nInitCode, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "6.5.0-canary.2320.20268376971.0",
3
+ "version": "6.5.0-canary.2320.20268447181.0",
4
4
  "repository": {
5
5
  "directory": "packages/create-plugin",
6
6
  "url": "https://github.com/grafana/plugin-tools"
@@ -56,5 +56,5 @@
56
56
  "engines": {
57
57
  "node": ">=20"
58
58
  },
59
- "gitHead": "47d4c2ff4f55df3a644771982994d0c85ec7d96d"
59
+ "gitHead": "f755ed67b8d851a36bdc7d87b0b49854089264b7"
60
60
  }
@@ -87,7 +87,7 @@ export function addI18nInitialization(context: Context, needsBackwardCompatibili
87
87
  const i18nInitCode = needsBackwardCompatibility
88
88
  ? `// Before Grafana version 12.1.0 the plugin is responsible for loading translation resources
89
89
  // In Grafana version 12.1.0 and later Grafana is responsible for loading translation resources
90
- const loaders = semver.lt(config?.buildInfo?.version || '0.0.0', '12.1.0') ? [loadResources] : [];
90
+ const loaders = semver.lt(config?.buildInfo?.version, '12.1.0') ? [loadResources] : [];
91
91
 
92
92
  await initPluginTranslations(pluginJson.id, loaders);`
93
93
  : `await initPluginTranslations(pluginJson.id);`;