Skip to content

Add FeatureEnabled expression, schema metadata, and publish under @flippercloud scope - #10

Merged
jnunemaker merged 4 commits into
mainfrom
tweaks
Jun 4, 2026
Merged

Add FeatureEnabled expression, schema metadata, and publish under @flippercloud scope#10
jnunemaker merged 4 commits into
mainfrom
tweaks

Conversation

@jnunemaker

@jnunemaker jnunemaker commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • New expression: Adds FeatureEnabled, which returns true when the named feature is enabled for the current actor. Includes the schema (schemas/FeatureEnabled.schema.json), valid/invalid examples (examples/FeatureEnabled.json), and registration in schemas/schema.json.
  • Schema metadata: Adds category (Condition/Value) to several schemas and a description to PercentageOfActors.
  • npm scope: Renames the package from @flippercloud.io/expressions (a personal user scope) to @flippercloud/expressions (the org we control, alongside @flippercloud/flipper). Fixes the broken repository URL. Schema $id URLs keep www.flippercloud.io — those are canonical schema identifiers tied to the website domain and the Ruby gem's BaseURI, not the npm scope.
  • Version + docs: Bumps to 1.1.0 and adds CLAUDE.md documenting that schema/example changes must be re-synced into the flipper gem via rake expressions:vendor.

Test plan

  • All vitest tests pass (286 tests, including the 263 schema/example validation tests that exercise the new FeatureEnabled examples)
  • standard lint clean
  • npm run build succeeds; npm publish --dry-run resolves to @flippercloud/expressions@1.1.0

🤖 Generated with Claude Code

jnunemaker and others added 4 commits June 4, 2026 12:29
Add a FeatureEnabled expression (schema + valid/invalid examples) that
returns true when the named feature is enabled for the current actor, and
register it in schema.json. Add category metadata (Condition/Value) to
several schemas and a reusable property definition. Bump to 1.1.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Document that changes to schemas/ or examples/ require re-running
`rake expressions:vendor` and the schema spec in flippercloud/flipper.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The property definition was an unreferenced alias of constant ("Property
Value" -> constant). Reading a property is already handled by the Property
function, and nothing in the schemas referenced this definition. Remove it
until a consumer exists.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Rename the npm package from @flippercloud.io/expressions (a personal user
scope) to @flippercloud/expressions, the org we control alongside
@flippercloud/flipper and friends. Also fix the repository URL (typo'd
https:: and pointing at the old monorepo).

Schema $id URLs keep www.flippercloud.io — those are the canonical schema
identifiers tied to the website domain and the Ruby gem's BaseURI, not the
npm scope.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jnunemaker jnunemaker changed the title Add FeatureEnabled expression and schema category metadata Add FeatureEnabled expression, schema metadata, and publish under @flippercloud scope Jun 4, 2026
@jnunemaker
jnunemaker merged commit ccc3210 into main Jun 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant