Add support for waitUntil if available - #105
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Secrets | View in Orca |
feugy
approved these changes
Oct 4, 2023
| import 'server-only'; | ||
| import type { AllowedPropertyValues } from '../types'; | ||
| import { isDevelopment, isProduction, parseProperties } from '../utils'; | ||
| import { isProduction, parseProperties } from '../utils'; |
Member
There was a problem hiding this comment.
praise: Thanks for the housekeeping. Don't we have eslint configured to catch unused variables?
tobiaslins
added a commit
that referenced
this pull request
Oct 6, 2023
* Add support for server-side events * Push version to 1.1.0-beta.1 * Better typings for headers & request * Push to 1.1.0-beta.2 Allow to be used in non-vercel environments with better typings * Remove strict from test project again * Add server-actions and RSC example * Improved server side events (#92) * Add more error logs * rename to withSessionContext * Throw error when no headers are found * update version * Update packages/web/src/server/index.ts Co-authored-by: Chris <7249920+chriswdmr@users.noreply.github.com> * Update packages/web/src/server/index.ts Co-authored-by: Chris <7249920+chriswdmr@users.noreply.github.com> --------- Co-authored-by: Chris <7249920+chriswdmr@users.noreply.github.com> * Fix missing referrer (#95) * Add more error logs * rename to withSessionContext * Throw error when no headers are found * update version * Test redirects * Add missing export for AnalyticsProps (#94) * Add missing export for AnalyticsProps and export like on react * Bump version * add debug log * Update index.ts * Use request url as fallback * Track more events in middleware * Add request to middleware * Update route.ts * Fixes --------- Co-authored-by: Chris <7249920+chriswdmr@users.noreply.github.com> * Overhaul server-side events internals (#103) * Use `@vercel/request-context` * Fix next.js demo * Update test.ts * update next * Update error logs * Fix example * Remove unnecessary whitespace * More server events improvments (#104) * Allow to disable logs using environment variable Fixes #ALY-951 * Show warning/error when wrong track import is used * Simplify code Co-Authored-By: Damien Simonin Feugas <damien.feugas@gmail.com> * Push version --------- Co-authored-by: Damien Simonin Feugas <damien.feugas@gmail.com> * Add support for `waitUntil` if available (#105) * Forward cookies to pass deployment protection when authed * Cleanup * Pass cookie & use new endpoint to support deployment protection (#106) * Pass cookie and use endpoint from context * Update package.json * Prepare release * Update middleware example & nextjs --------- Co-authored-by: Chris <7249920+chriswdmr@users.noreply.github.com> Co-authored-by: Damien Simonin Feugas <damien.feugas@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use
waitUntilwhen available in context, else fallback toawait