-
Notifications
You must be signed in to change notification settings - Fork 20
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 node server side #18
Draft
Tim-53
wants to merge
72
commits into
main
Choose a base branch
from
feat_node_serverSide
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
cbbd490
wip
Tim-53 83de4ff
switch to nodemon
Tim-53 070aa7f
make http service agnostic
Tim-53 8840ac8
add getFeatureFlagValue, add simple express example
Tim-53 f829b2e
add abTestMiddleware
Tim-53 dc08564
use unified IStorageService interface
Tim-53 6a27e82
Merge branch 'refac/Unify_StorageService_Interfaces' into feat_node_s…
Tim-53 66a1912
add storage service
Tim-53 c50e1c2
add cookieParser helper
Tim-53 a2fec41
fix ab test middle ware
Tim-53 a336452
add response context
Tim-53 ade1b65
fix responseContext
Tim-53 d6ceca7
add cookieMiddleware
Tim-53 9fc56f8
refac: move contexts to new folder
Tim-53 174c81e
docs: add documentation to create abby
Tim-53 911e2db
refac: cleanup unused things
Tim-53 316caa2
add test
Tim-53 87221b9
add await abby initialization
Tim-53 dc77bb0
Feat/core/add feature flag caching (#22)
Tim-53 bcd5d99
add cache config
Tim-53 cf61233
repair lockfile
Tim-53 078fe8e
upgrade pnpm version on workflow
Tim-53 3f2819a
revert pnpm version
Tim-53 16e564f
fix lockfile
Tim-53 7be093b
make fetch isomorphic
Tim-53 53f1bb8
merge main
Tim-53 f46c9cc
add: test WIP
Tim-53 d0a85ae
tests wip
Tim-53 b7baf02
tests wip
Tim-53 39086ad
downgrade msw version, revert httpService debug changes
Tim-53 06340c9
downgrade msw version, revert httpService debug changes
Tim-53 8e5d3c0
add tests for getABTestValue , getFeatureFlagValue
Tim-53 3b4f24a
add abbyExpressMiddleWareFactory
Tim-53 6f15e9b
fix tests
Tim-53 ec228f5
fix lockfile
Tim-53 69ae446
fix build
Tim-53 d9dd778
add express test middleware setting cookie
Tim-53 0191e54
chore: add prettier settings
Tim-53 02205d8
Merge branch 'chore/prettier_settings' into feat_node_serverSide
Tim-53 83a1bcd
add feature flag middleware tests
Tim-53 d4fc5ea
complete express middleware tests
Tim-53 498315f
disabled msw warnings for calls to express
Tim-53 3f400eb
add build script, tsup and exports
Tim-53 6a4841c
add gitignore
Tim-53 dc44eb6
add alll flags middleware
Tim-53 a5f7f94
merge multivariate feature Flags
Tim-53 1747955
fix package name
Tim-53 489ed85
add body parser
Tim-53 28e4633
remove unecassry awaits
Tim-53 9df8bcf
Fix build
Tim-53 e7b14ca
update package.json
Tim-53 0e24266
it works
Tim-53 f604535
it works
Tim-53 6f2c349
create fastify package
Tim-53 53b6a9a
make response and request context usable in express and fastify, add …
Tim-53 b5bf94b
update fastify factory
Tim-53 7b4d66b
repair lockfile
Tim-53 619d24f
fix tests
Tim-53 c784e8c
tests for fastify wip
Tim-53 0f93096
fix basic tests
Tim-53 2082531
fix build
Tim-53 85b55a0
remove console.log
Tim-53 c2c6c4d
enable setCookie for express AND fastify
Tim-53 f0f9438
finish tests for fastify
Tim-53 c3cbd53
working in browser for express and fastify , express test need to be …
Tim-53 815d794
add cookie parser
Tim-53 91fd26c
fix svelte imports
Tim-53 74cc9a3
add optional passing of response and request object
Tim-53 860b35b
fix tests and clean up
Tim-53 153e549
fix lockfile
Tim-53 76c2a88
add cookie parser types
Tim-53 a6b24a7
fix core tests
Tim-53 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import { ABBY_BASE_URL } from "./constants"; | ||
import type { AbbyEventType, AbbyEvent, AbbyDataResponse } from "./index"; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 😍 |
||
export abstract class HttpService { | ||
static async getProjectData({ | ||
projectId, | ||
|
@@ -21,6 +22,7 @@ export abstract class HttpService { | |
const data = (await res.json()) as AbbyDataResponse; | ||
return data; | ||
} catch (err) { | ||
console.log(err); | ||
console.error("[ABBY]: failed to load project data, falling back to defaults"); | ||
return null; | ||
} | ||
|
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is done in another PR? maybe finish that one first? =)