
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@forestadmin-experimental/plugin-define-enum
Advanced tools
The plugin allows you to create fields based on enums when your database stores technical values (0, 1, 2, 3).
The plugin allows you to create fields based on enums when your database stores technical values (0, 1, 2, 3).
import { createAgent } from '@forestadmin/agent';
import { Schema } from './typings';
import defineEnum from '@forestadmin-experimental/plugin-define-enum';
import type { DefineEnumOption } from '@forestadmin-experimental/plugin-define-enum';
const BandStatus = {
JustCreated: 0,
GrowingHigh: 50,
BrokenUp: 100,
} as const
await createAgent<Schema>(Options)
.addDataSource(DataSourceOptions)
.customizeCollection('users', usersCollection => {
.use<DefineEnumOption<Schema, 'users'>>(defineEnum, {
fieldName: 'bandStatus',
enumObject: BandStatus,
})
})
FAQs
The plugin allows you to create fields based on enums when your database stores technical values (0, 1, 2, 3).
The npm package @forestadmin-experimental/plugin-define-enum receives a total of 14 weekly downloads. As such, @forestadmin-experimental/plugin-define-enum popularity was classified as not popular.
We found that @forestadmin-experimental/plugin-define-enum demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.