Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
ssm_parameter_pairs: '/production/common/releasing/npm/token = NODE_AUTH_TOKEN'

- name: Configure yarn npm registry credentials
run: |
yarn config set npmRegistryServer "https://registry.npmjs.org"
yarn config set npmAuthToken "${NODE_AUTH_TOKEN}"

- id: publish-npm
name: Publish NPM Packages
uses: ./.github/actions/publish-npm
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"rrweb",
"rrweb/packages/*",
"rrweb/packages/plugins/*",
"sdk/*"
"sdk/*",
"sdk/@launchdarkly/*"
],
"scripts": {
"build": "yarn turbo run build --filter '!@rrweb/web-extension'",
Expand All @@ -23,8 +24,8 @@
"lint": "yarn run turbo lint --filter=!rrweb --filter=!rrvideo --filter=!@rrweb/rrweb-plugin-console-record --filter=!@rrweb/_monorepo --filter=!@rrweb/all --filter=!@rrweb/record --filter=!@rrweb/replay --filter=!@rrweb/types --filter=!@rrweb/packer --filter=!@rrweb/utils --filter=!@rrweb/web-extension --filter=!rrweb-snapshot --filter=!rrweb-player --filter=!rrdom --filter=!rrdom-nodejs --filter=!e2e-react-native",
"prepare": "husky",
"preinstall": "git submodule update --init --recursive || true",
"publish": "yarn workspaces foreach -R --no-private --from '@launchdarkly/*' npm publish --access public --tolerate-republish --provenance",
"publish:highlight": "yarn workspaces foreach -R --no-private --from '@highlight-run/*' npm publish --access public --tolerate-republish --provenance && yarn workspace highlight.run npm publish --access public --tolerate-republish --provenance",
"publish": "yarn workspaces foreach -R --no-private --from '@launchdarkly/*' npm publish --access public --tolerate-republish",
"publish:highlight": "yarn workspaces foreach -R --no-private --from '@highlight-run/*' npm publish --access public --tolerate-republish && yarn workspace highlight.run npm publish --access public --tolerate-republish",
"test": "yarn turbo run test --filter=!rrweb --filter=!rrvideo --filter=!@rrweb/rrweb-plugin-console-record --filter=!@rrweb/_monorepo --filter=!@rrweb/all --filter=!@rrweb/record --filter=!@rrweb/replay --filter=!@rrweb/types --filter=!@rrweb/packer --filter=!@rrweb/utils --filter=!@rrweb/web-extension --filter=!rrweb-snapshot --filter=!rrweb-player --filter=!rrdom --filter=!rrdom-nodejs --filter=!nextjs"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-npm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash -ex
if $LD_RELEASE_IS_DRYRUN ; then
echo "Doing a dry run of publishing."
else
Expand Down
59 changes: 59 additions & 0 deletions sdk/@launchdarkly/observability/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# LaunchDarkly JavaScript Observability SDK for Browsers

[![NPM][browser-sdk-npm-badge]][browser-sdk-npm-link]
[![Actions Status][browser-sdk-ci-badge]][browser-sdk-ci]
[![Documentation][browser-sdk-ghp-badge]][browser-sdk-ghp-link]
[![NPM][browser-sdk-dm-badge]][browser-sdk-npm-link]
[![NPM][browser-sdk-dt-badge]][browser-sdk-npm-link]

# ⛔️⛔️⛔️⛔️

> [!CAUTION]
> This library is a alpha version and should not be considered ready for production use while this message is visible.

# ☝️☝️☝️☝️☝️☝️

<!--
## Install

```shell
# npm
npm i @launchdarkly/observability

# yarn
yarn add @launchdarkly/observability
```
-->

## Getting started

Refer to the [SDK documentation](https://docs.launchdarkly.com/sdk/client-side/javascript#getting-started) for instructions on getting started with using the SDK.

## Verifying SDK build provenance with the SLSA framework

LaunchDarkly uses the [SLSA framework](https://slsa.dev/spec/v1.0/about) (Supply-chain Levels for Software Artifacts) to help developers make their supply chain more secure by ensuring the authenticity and build integrity of our published SDK packages. To learn more, see the [provenance guide](PROVENANCE.md).

## About LaunchDarkly

- LaunchDarkly Observability provies a way to collect and send errors, logs, traces to LaunchDarkly. Correlate latency or exceptions with your releases to safely ship code.
- LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
- Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
- Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
- Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
- Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan).
- Disable parts of your application to facilitate maintenance, without taking everything offline.
- LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read [our documentation](https://docs.launchdarkly.com/sdk) for a complete list.
- Explore LaunchDarkly
- [launchdarkly.com](https://www.launchdarkly.com/ 'LaunchDarkly Main Website') for more information
- [docs.launchdarkly.com](https://docs.launchdarkly.com/ 'LaunchDarkly Documentation') for our documentation and SDK reference guides
- [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/ 'LaunchDarkly API Documentation') for our API documentation
- [blog.launchdarkly.com](https://blog.launchdarkly.com/ 'LaunchDarkly Blog Documentation') for the latest product updates

[browser-sdk-ci-badge]: https://github.com/launchdarkly/observability-sdk/actions/workflows/browser.yml/badge.svg
[browser-sdk-ci]: https://github.com/launchdarkly/observability-sdk/actions/workflows/browser.yml
[browser-sdk-npm-badge]: https://img.shields.io/npm/v/@launchdarkly/observability.svg?style=flat-square
[browser-sdk-npm-link]: https://www.npmjs.com/package/@launchdarkly/observability
[browser-sdk-ghp-badge]: https://img.shields.io/static/v1?label=GitHub+Pages&message=API+reference&color=00add8
[browser-sdk-ghp-link]: https://launchdarkly.github.io/js-core/packages/sdk/browser/docs/
[browser-sdk-dm-badge]: https://img.shields.io/npm/dm/@launchdarkly/observability.svg?style=flat-square
[browser-sdk-dt-badge]: https://img.shields.io/npm/dt/@launchdarkly/observability.svg?style=flat-square
55 changes: 55 additions & 0 deletions sdk/@launchdarkly/observability/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "@launchdarkly/observability",
"version": "0.0.1",
"description": "Browser observability for your web app. Capture frontend metrics, errors, logs and traces.",
"keywords": [
"launchdarkly",
"error monitoring",
"logging",
"tracing",
"metrics",
"debugging",
"observability",
"browser",
"library"
],
"homepage": "https://github.com/launchdarkly/observability-sdk#readme",
"bugs": {
"url": "https://github.com/launchdarkly/observability-sdk/issues",
"email": "[email protected]"
},
"license": "Apache-2.0",
"repository": {
"repository": {
"type": "git",
"url": "https://github.com/launchdarkly/observability-sdk.git"
}
},
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"unpkg": "./dist/index.umd.js",
"jsdelivr": "./dist/index.umd.js",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"unpkg": "./dist/index.umd.js",
"jsdelivr": "./dist/index.umd.js",
"import": "./dist/index.js",
"require": "./dist/index.js",
"default": "./dist/index.js"
},
"files": [
"dist"
],
"size-limit": [
{
"path": [
"dist/*.js",
"!dist/*.umd.js"
],
"limit": "256 kB",
"brotli": true
}
]
}
59 changes: 59 additions & 0 deletions sdk/@launchdarkly/session-replay/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# LaunchDarkly JavaScript Session Replay SDK for Browsers

[![NPM][browser-sdk-npm-badge]][browser-sdk-npm-link]
[![Actions Status][browser-sdk-ci-badge]][browser-sdk-ci]
[![Documentation][browser-sdk-ghp-badge]][browser-sdk-ghp-link]
[![NPM][browser-sdk-dm-badge]][browser-sdk-npm-link]
[![NPM][browser-sdk-dt-badge]][browser-sdk-npm-link]

# ⛔️⛔️⛔️⛔️

> [!CAUTION]
> This library is a alpha version and should not be considered ready for production use while this message is visible.

# ☝️☝️☝️☝️☝️☝️

<!--
## Install

```shell
# npm
npm i @launchdarkly/session-replay

# yarn
yarn add @launchdarkly/session-replay
```
-->

## Getting started

Refer to the [SDK documentation](https://docs.launchdarkly.com/sdk/client-side/javascript#getting-started) for instructions on getting started with using the SDK.

## Verifying SDK build provenance with the SLSA framework

LaunchDarkly uses the [SLSA framework](https://slsa.dev/spec/v1.0/about) (Supply-chain Levels for Software Artifacts) to help developers make their supply chain more secure by ensuring the authenticity and build integrity of our published SDK packages. To learn more, see the [provenance guide](PROVENANCE.md).

## About LaunchDarkly

- LaunchDarkly Session Replay provies a way to capture user sessions on your application to replay them in LaunchDarkly. Understand how users are interacting with your site and with new features you ship.
- LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
- Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
- Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
- Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
- Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan).
- Disable parts of your application to facilitate maintenance, without taking everything offline.
- LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read [our documentation](https://docs.launchdarkly.com/sdk) for a complete list.
- Explore LaunchDarkly
- [launchdarkly.com](https://www.launchdarkly.com/ 'LaunchDarkly Main Website') for more information
- [docs.launchdarkly.com](https://docs.launchdarkly.com/ 'LaunchDarkly Documentation') for our documentation and SDK reference guides
- [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/ 'LaunchDarkly API Documentation') for our API documentation
- [blog.launchdarkly.com](https://blog.launchdarkly.com/ 'LaunchDarkly Blog Documentation') for the latest product updates

[browser-sdk-ci-badge]: https://github.com/launchdarkly/observability-sdk/actions/workflows/browser.yml/badge.svg
[browser-sdk-ci]: https://github.com/launchdarkly/observability-sdk/actions/workflows/browser.yml
[browser-sdk-npm-badge]: https://img.shields.io/npm/v/@launchdarkly/session-replay.svg?style=flat-square
[browser-sdk-npm-link]: https://www.npmjs.com/package/@launchdarkly/session-replay
[browser-sdk-ghp-badge]: https://img.shields.io/static/v1?label=GitHub+Pages&message=API+reference&color=00add8
[browser-sdk-ghp-link]: https://launchdarkly.github.io/js-core/packages/sdk/browser/docs/
[browser-sdk-dm-badge]: https://img.shields.io/npm/dm/@launchdarkly/session-replay.svg?style=flat-square
[browser-sdk-dt-badge]: https://img.shields.io/npm/dt/@launchdarkly/session-replay.svg?style=flat-square
52 changes: 52 additions & 0 deletions sdk/@launchdarkly/session-replay/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "@launchdarkly/session-replay",
"version": "0.0.1",
"description": "Browser observability for your web app. Record session replays to visualize usage patterns.",
"keywords": [
"launchdarkly",
"session replay",
"debugging",
"observability",
"browser",
"library"
],
"homepage": "https://github.com/launchdarkly/observability-sdk#readme",
"bugs": {
"url": "https://github.com/launchdarkly/observability-sdk/issues",
"email": "[email protected]"
},
"license": "Apache-2.0",
"repository": {
"repository": {
"type": "git",
"url": "https://github.com/launchdarkly/observability-sdk.git"
}
},
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"unpkg": "./dist/index.umd.js",
"jsdelivr": "./dist/index.umd.js",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"unpkg": "./dist/index.umd.js",
"jsdelivr": "./dist/index.umd.js",
"import": "./dist/index.js",
"require": "./dist/index.js",
"default": "./dist/index.js"
},
"files": [
"dist"
],
"size-limit": [
{
"path": [
"dist/*.js",
"!dist/*.umd.js"
],
"limit": "256 kB",
"brotli": true
}
]
}
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8084,6 +8084,18 @@ __metadata:
languageName: unknown
linkType: soft

"@launchdarkly/observability@workspace:sdk/@launchdarkly/observability":
version: 0.0.0-use.local
resolution: "@launchdarkly/observability@workspace:sdk/@launchdarkly/observability"
languageName: unknown
linkType: soft

"@launchdarkly/session-replay@workspace:sdk/@launchdarkly/session-replay":
version: 0.0.0-use.local
resolution: "@launchdarkly/session-replay@workspace:sdk/@launchdarkly/session-replay"
languageName: unknown
linkType: soft

"@leichtgewicht/ip-codec@npm:^2.0.1":
version: 2.0.4
resolution: "@leichtgewicht/ip-codec@npm:2.0.4"
Expand Down
Loading