Skip to content

Commit d0e9160

Browse files
committed
chore: use camelCase for plugin names
1 parent 7404443 commit d0e9160

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ AppKit uses a **phase-based plugin architecture** with three initialization phas
172172
import { Plugin, toPlugin } from '@databricks/appkit';
173173

174174
class MyPlugin extends Plugin {
175-
name: string = "my-plugin";
175+
name: string = "myPlugin";
176176

177177
// Validate required environment variables
178178
validateEnv() {

docs/docs/plugins.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ import { Plugin, toPlugin } from "@databricks/appkit";
219219
import type express from "express";
220220

221221
class MyPlugin extends Plugin {
222-
name = "my-plugin";
222+
name = "myPlugin";
223223
envVars = []; // list required env vars here
224224

225225
injectRoutes(router: express.Router) {
@@ -234,9 +234,9 @@ class MyPlugin extends Plugin {
234234
}
235235
}
236236

237-
export const myPlugin = toPlugin<typeof MyPlugin, Record<string, never>, "my-plugin">(
237+
export const myPlugin = toPlugin<typeof MyPlugin, Record<string, never>, "myPlugin">(
238238
MyPlugin,
239-
"my-plugin",
239+
"myPlugin",
240240
);
241241
```
242242

@@ -276,7 +276,7 @@ Inside a Plugin subclass:
276276

277277
```ts
278278
const value = await this.cache.getOrExecute(
279-
["my-plugin", "data", userId],
279+
["myPlugin", "data", userId],
280280
async () => expensiveWork(),
281281
userKey,
282282
{ ttl: 300 },

0 commit comments

Comments
 (0)