Skip to content

Wingify Adapter for Vercel Flags - #580

Open
Kaustubh22327 wants to merge 1 commit into
vercel:mainfrom
wingify:feature/wingify-adapter
Open

Kaustubh22327 wants to merge 1 commit into
vercel:mainfrom
wingify:feature/wingify-adapter

Conversation

@Kaustubh22327

Copy link
Copy Markdown

This adds a Wingify Feature Management adapter for use with the flag() function.

It evaluates Wingify flags through wingify-fme-node-sdk. shouldWaitForTrackingCalls defaults to true so impression calls finish before a serverless or edge instance freezes. Pass shouldWaitForTrackingCalls: false to opt out.

The adapter has the following functions:

  • variation() returns the Flags SDK adapter. With no options it resolves to flag.isEnabled(). With variableName it resolves to flag.getVariable(name, defaultValue).
  • wingifyAdapter is the default singleton. It reads WINGIFY_ACCOUNT_ID and WINGIFY_SDK_KEY on first use.
  • createWingifyAdapter({ accountId, sdkKey, ... }) is for explicit credentials, more than one Wingify account, or extra SDK options such as pollInterval.
  • getProviderData(client) loads Wingify feature definitions for Flags Explorer.

identify must return entities.id. The adapter throws if it is missing.

Also adds the provider docs page and a Flags SDK skill entry.

@vercel

vercel Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

@Kaustubh22327 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​vitest@​4.1.11981007998100
Addednpm/​vite@​8.1.598808298100
Addednpm/​wingify-fme-node-sdk@​1.80.0801009992100

View full report

@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Priority Alert  (click "▶" to expand/collapse) Action
Low priority
High CVE: launch-editor: fs.existsSync() existence check can be bypassed on Windows in npm `vite`

CVE: GHSA-587h-7wmj-h5pm launch-editor: fs.existsSync() existence check can be bypassed on Windows (HIGH)

Affected versions: >= 8.3.0 < 8.3.3; >= 8.2.0 < 8.2.4; >= 8.0.0 < 8.1.6; >= 7.0.0 < 7.3.7; < 6.4.4

Patched version: 8.1.6

From: packages/adapter-wingify/package.json → npm/vite@8.1.5

ℹ Read more on: This package | This alert | What is a CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known high severity CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/vite@8.1.5. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn

View full report

@dferber90

Copy link
Copy Markdown
Collaborator

We're currently working on the next major version of the flags sdk, so I wanted to give a heads up that we're not currently accepting new adapters. Once the new version is out adding adapters will be much simpler

@rohitesh-wingify

Copy link
Copy Markdown

Hey @dferber90. Any tentative timeline for this upgrade?

This branch has not been deployed

No deployments
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.

3 participants