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!: Implement Migrations. Refactor for client SDKs. #293

Merged
merged 72 commits into from
Oct 16, 2023

Commits on Jun 27, 2023

  1. chore: initial commit

    yusinto committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    b95bbaf View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Configuration menu
    Copy the full SHA
    4bf4d3c View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. chore: add LDInspection types. Band aid ts errors for now. Fix export…

    … of createSafeLogger.
    yusinto committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    10fb3c2 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. chore: added TypedEventTarget

    yusinto committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    d29a840 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. Configuration menu
    Copy the full SHA
    cb891ab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    147c5da View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. chore: improved LDEmitter (#207)

    * Improved emitter design
    * Improved jest config
    * Added unit tests
    yusinto authored Jul 18, 2023
    Configuration menu
    Copy the full SHA
    f539c7a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    121b872 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. Configuration menu
    Copy the full SHA
    080e5c8 View commit details
    Browse the repository at this point in the history
  2. fix: eslint errors

    yusinto committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    4f416b3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5c9226f View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. Configuration menu
    Copy the full SHA
    b78c95f View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Configuration menu
    Copy the full SHA
    b48f847 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2023

  1. Configuration menu
    Copy the full SHA
    72c0f53 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    36fef4f View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Configuration menu
    Copy the full SHA
    59b8b6f View commit details
    Browse the repository at this point in the history
  2. chore: Prettier.

    kinyoklion committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    bee4e74 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. Configuration menu
    Copy the full SHA
    d32dcc8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    965376d View commit details
    Browse the repository at this point in the history
  3. fix: ran prettier

    yusinto committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    42f48b3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2a1eb6f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    87095c9 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2023

  1. feat: configuration and options validation (#221)

    Added Configuration class and options validation for js client common.
    yusinto authored Aug 2, 2023
    Configuration menu
    Copy the full SHA
    8655ed3 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. Configuration menu
    Copy the full SHA
    a2154cc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ababe74 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. feat: Add custom event support to tracker. (#227)

    Co-authored-by: Yusinto Ngadiman <[email protected]>
    kinyoklion and yusinto authored Aug 4, 2023
    Configuration menu
    Copy the full SHA
    f750bd5 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. Merge branch 'main' into yus/sc-208024/scaffold-js-common-in-js-core

    LaunchDarklyReleaseBot committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    7e8fe03 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2023

  1. Configuration menu
    Copy the full SHA
    9a6bd82 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    02e92a4 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2023

  1. Configuration menu
    Copy the full SHA
    f9b4e6e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ab61937 View commit details
    Browse the repository at this point in the history
  3. feat: Change migration variation to support forwarding the sampling r…

    …atio. (#248)
    
    Co-authored-by: Yusinto Ngadiman <[email protected]>
    kinyoklion and yusinto authored Aug 23, 2023
    Configuration menu
    Copy the full SHA
    bd95697 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Configuration menu
    Copy the full SHA
    ee62381 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. feat: Add invoked measurement. (#258)

    Co-authored-by: Yusinto Ngadiman <[email protected]>
    kinyoklion and yusinto authored Aug 30, 2023
    Configuration menu
    Copy the full SHA
    ee4ebbf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    760567d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e12068a View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Configuration menu
    Copy the full SHA
    01fd110 View commit details
    Browse the repository at this point in the history
  2. fix sampling

    kinyoklion committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    f7ed7eb View commit details
    Browse the repository at this point in the history
  3. fix merging event sampling

    kinyoklion committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    10c4875 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7c08e82 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e56e18f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d7b8170 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. Configuration menu
    Copy the full SHA
    cadc90b View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. Configuration menu
    Copy the full SHA
    11179ba View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. Configuration menu
    Copy the full SHA
    5ff85e4 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. Configuration menu
    Copy the full SHA
    d1f7197 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. feat: reuse EventProcessor for dom (#228)

    Please don't be alarmed with 55 file changes. Most are just import path
    changes due to existing files being moved from sdk-server to
    shared/common to be re-used across server and client sdks:
    
    1. Move EventSender and its tests
    2. Move errors.ts
    3. Move NullEventProcessor
    4. Move defaultHeaders and httpErrorMessage to utils/http.ts
    
    In addition, please also note these important changes:
    
    1. `EventSender` is now intrinsic to EventProcessor and is excluded from
    the EventProcessor constructor.
    2. `contextDeduplicator` is now optional because client sdks don't use
    them
    3. `defaultHeaders` arguments order have changed to
    `defaultHeaders(sdkKey, info, tags)`
    
    ---------
    
    Co-authored-by: LaunchDarklyReleaseBot <[email protected]>
    yusinto and LaunchDarklyReleaseBot authored Sep 19, 2023
    Configuration menu
    Copy the full SHA
    5b1a4d3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    55f8e72 View commit details
    Browse the repository at this point in the history
  3. chore: fixed conflicts

    yusinto committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    37b33fb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f97935e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    71ee878 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. Configuration menu
    Copy the full SHA
    ca881de View commit details
    Browse the repository at this point in the history
  2. Update package.json

    yusinto committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    703f56d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fe852fb View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2023

  1. Configuration menu
    Copy the full SHA
    c120948 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9c5f402 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Configuration menu
    Copy the full SHA
    f3481a4 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. Configuration menu
    Copy the full SHA
    dda6b37 View commit details
    Browse the repository at this point in the history
  2. feat: Add typed variation methods. (#288)

    Co-authored-by: Yusinto Ngadiman <[email protected]>
    resolves #285
    kinyoklion authored Sep 27, 2023
    Configuration menu
    Copy the full SHA
    8e96a52 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. fix: refactor mocks to its own project (#284)

    Large pr but mostly trivial changes to import paths because mocks have
    been moved to its own private project `@launchdarkly/private-js-mocks`:
    
    * Refactored mocks to its own project `@launchdarkly/private-js-mocks`.
    * Better eslint rule for `no-unused-vars` to avoid disabling this rule
    sporadically.
    yusinto authored Oct 2, 2023
    Configuration menu
    Copy the full SHA
    2ada20d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    837c4e1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c3f2d88 View commit details
    Browse the repository at this point in the history
  4. fix: yarn topological dev build (#291)

    CI failed because `yarn workspaces foreach -pR --topological-dev --from
    '@launchdarkly/xxx' run build`. This is because `topological-dev`
    instructs yarn to build all deps (prod & dev) prior to running build in
    the current workspace. Since `mocks` need types from `common` this
    fails.
    
    This pr adds a `build-types` command to common which gets run prior to
    mocks `build` command to ensure common types exist for mocks to be built
    successfully.
    yusinto authored Oct 2, 2023
    Configuration menu
    Copy the full SHA
    b22eef4 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. Configuration menu
    Copy the full SHA
    4ed3c76 View commit details
    Browse the repository at this point in the history
  2. fix unit tests post merge

    kinyoklion committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    a3f64af View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bacb607 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a0dac0d View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. chore: implement initial flag fetch (#294)

    First attempt to implement an initial flag fetch followed by emitting
    events. I also added comments like this:
    
    ```tsx
    Dom api usage: xxx
    ```
    
    There are three right now: fetch, btoa and EventTarget. I left comments
    in the code for react native how to deal with these.
    
    ---------
    
    Co-authored-by: LaunchDarklyReleaseBot <[email protected]>
    Co-authored-by: Ryan Lamb <[email protected]>
    3 people authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    8f34dfa View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2023

  1. Configuration menu
    Copy the full SHA
    fc2c212 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f65707b View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2023

  1. Configuration menu
    Copy the full SHA
    b27ec74 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    daa9409 View commit details
    Browse the repository at this point in the history