Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: setup new EdgeWorker SDK with cloud and local bucketing #566

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

jonathannorris
Copy link
Member

No description provided.

@vercel
Copy link

vercel bot commented Sep 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
js-sdks-next-js ❌ Failed (Inspect) Oct 24, 2023 8:05pm
js-sdks-web-elements ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2023 8:05pm
js-sdks-with-provider ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2023 8:05pm

@jonathannorris jonathannorris force-pushed the DVC-9059-edge-worker-sdk branch from b17a73e to 20f66d9 Compare September 29, 2023 18:26
@jonathannorris jonathannorris force-pushed the DVC-9059-edge-worker-sdk branch 2 times, most recently from cd30000 to 16d5c3b Compare October 2, 2023 19:34
export const EVENT_URL = 'https://events'
export const EVENTS_PATH = '/v1/events/batch'

export async function publishEvents(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moving common event publishing route to the shared lib.

@@ -135,33 +135,6 @@ export interface DVCVariableInterface {
readonly evalReason?: unknown
}

export interface DevCycleEvent {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to request lib where it is used

import { publishEvents } from './request'
import { DevCycleEvent, DVCPopulatedUser } from '@devcycle/js-cloud-server-sdk'

export const AggregateEventTypes: Record<string, string> = {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to common place in request lib.

export const EVENT_URL = 'https://events'
export const EVENTS_PATH = '/v1/events/batch'

export async function publishEvents(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to request lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant