@grafana/create-plugin 6.2.1 → 6.2.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v6.2.2 (Fri Nov 21 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix(deps): update dependency glob to v11.1.0 [security] [#2308](https://github.com/grafana/plugin-tools/pull/2308) ([@renovate-sh-app[bot]](https://github.com/renovate-sh-app[bot]))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@renovate-sh-app[bot]](https://github.com/renovate-sh-app[bot])
10
+
11
+ ---
12
+
1
13
  # v6.2.1 (Thu Nov 20 2025)
2
14
 
3
15
  #### 🐛 Bug Fix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "repository": {
5
5
  "directory": "packages/create-plugin",
6
6
  "url": "https://github.com/grafana/plugin-tools"
@@ -32,7 +32,7 @@
32
32
  "debug": "^4.3.4",
33
33
  "enquirer": "^2.4.1",
34
34
  "find-up": "^8.0.0",
35
- "glob": "^11.0.0",
35
+ "glob": "^11.1.0",
36
36
  "handlebars": "^4.7.8",
37
37
  "jsonc-parser": "^3.3.1",
38
38
  "minimist": "^1.2.8",
@@ -61,5 +61,5 @@
61
61
  "engines": {
62
62
  "node": ">=20"
63
63
  },
64
- "gitHead": "1f334497771024c2e125a7295e3c4b9a22150ee0"
64
+ "gitHead": "68bb4d4e24c0cc794a6c9de8cbdb70aa1d666592"
65
65
  }
@@ -0,0 +1,25 @@
1
+ # Create Plugin Codemods Guide
2
+
3
+ This guide provides specific instructions for working with migrations and additions in the create-plugin package.
4
+
5
+ ## Agent Behavior
6
+
7
+ - Refer to current migrations and additions typescript files found in @./additions/scripts and @./migrations/scripts
8
+ - When creating a new migration add it to the exported migrations object in @./migrations/migrations.ts
9
+ - Always refer to @./context.ts to know what methods are available on the context class
10
+ - Always check for file existence using the @./context.ts class before attempting to do anything with it
11
+ - Never write files with any 3rd party npm library. Use the context for all file operations
12
+ - Always return the context for the next migration
13
+ - Test thoroughly using the provided utils in @./test-utils.ts where necessary
14
+ - Each migration must be idempotent and must include a test case that uses the `.toBeIdempotent` custom matcher found in @../../vitest.setup.ts
15
+ - Keep migrations focused on one task
16
+ - Never attempt to read or write files outside the current working directory
17
+
18
+ ## Naming Conventions
19
+
20
+ - Each migration lives under @./migrations/scripts
21
+ - Migration filenames follow the format: `NNN-migration-title` where migration-title is, at the most, a three word summary of what the migration does and NNN is the next number in sequence based on the current file name in @./migrations/scripts
22
+ - Each migration must have:
23
+ - `NNN-migration-title.ts` - main migration logic
24
+ - `NNN-migration-title.test.ts` - migration logic tests
25
+ - Each migration should export a default function named "migrate"