Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
a5834fc
feat: update org flashcatcloud
Mar 17, 2025
9d5a702
update version
Mar 17, 2025
482f190
add changelog
Mar 17, 2025
23e193b
feat: remove site validation
Mar 17, 2025
b9c39b2
update site
Mar 17, 2025
db716f7
v0.0.1-alpha.2
Mar 17, 2025
c468cf1
add workflow
Mar 18, 2025
4d5533f
全局替换window.FC_RUM + window.FC_LOGS
Mar 18, 2025
b909ca0
add ali-oss deploy
Mar 18, 2025
d483ba4
update workflow
Mar 18, 2025
abf316b
debug NPM_TOKEN
Mar 18, 2025
6e567a8
debug dingtalk notify
Mar 18, 2025
8471645
update deploy notify
Mar 19, 2025
ce41174
update manual deploy
Mar 19, 2025
862e5ab
feat: update sandbox sdk package
Fiona2016 Mar 21, 2025
bdcc64b
feat: update site
Apr 18, 2025
43aa6f5
Merge branch 'feat/publish_flashcat' of github.com:flashcatcloud/brow…
Apr 18, 2025
f3184f8
v0.0.1-beta.0
Apr 18, 2025
afb76a6
feat: 去掉site前缀
Apr 18, 2025
ac1bc86
v0.0.1-beta.1
Apr 18, 2025
880ad0b
feat: remove dd trace type
Fiona2016 Apr 27, 2025
2709c87
Merge pull request #2 from flashcatcloud/feat/trace-type
niuweili Apr 27, 2025
bb7d530
v0.0.1-beta.2
Apr 27, 2025
dc9c0d5
feat: update md
May 13, 2025
185f77c
Merge pull request #3 from flashcatcloud/publish
niuweili May 13, 2025
b09d482
v0.0.1
May 13, 2025
3a296d6
rename flashcat
May 15, 2025
75caad7
change submodule
May 15, 2025
11d8f6c
Merge branch 'main' into flashcat
May 15, 2025
5053669
Merge pull request #4 from flashcatcloud/flashcat
niuweili May 15, 2025
b8d6611
v0.0.2
May 15, 2025
90ad4a0
Merge branch 'main' of github.com:flashcatcloud/browser-sdk
May 26, 2025
8908c95
feat: add default usrId
May 26, 2025
15187ae
fix: init
May 26, 2025
7d20c7c
Merge pull request #6 from flashcatcloud/feat/default_usrId
niuweili May 26, 2025
5ad963f
feat: update yarn.lock
May 26, 2025
fabc54c
Merge branch 'main' into publish
May 26, 2025
7cf50ee
feat: update lock
May 26, 2025
10134e4
del: test/app
May 26, 2025
2b97be2
Merge branch 'main' into publish
May 26, 2025
e35a4bb
fix: version error
May 26, 2025
9d58f14
v0.0.3-beta.0
May 26, 2025
2048a0f
Merge branch 'main' into publish
May 26, 2025
a0c22ea
v0.0.3-beta.1
May 26, 2025
75848ad
del: changelog action
May 26, 2025
ecd9f0d
chore: release v0.0.3
Jul 7, 2025
98dc7e6
v0.0.3-beta.2
Jul 7, 2025
ade2dbb
v0.0.3
Jul 7, 2025
f4ca65c
Feat/session replay (#8)
niuweili Jul 7, 2025
ff3bcdd
chore: publish bugfix
Jul 7, 2025
d9b6210
chore: publish bugfix (#9)
niuweili Jul 7, 2025
ca7be1e
fix: rrweb pkg bugfix
Jul 7, 2025
05c1964
Merge branch 'fix/publish_bugfix@nwl' into publish
Jul 7, 2025
b426e31
v0.0.4-alpha.1
Jul 7, 2025
de358ef
Revert "Feat/session replay (#8)" (#10)
Fiona2016 Aug 29, 2025
47ccf1e
v0.0.4-alpha.2
Fiona2016 Aug 29, 2025
5fc488c
feat: 非正式版本跳过cdn发布
Nov 11, 2025
bb8d80b
feat: add staging
Nov 11, 2025
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
29 changes: 0 additions & 29 deletions .github/workflows/changelog-to-confluence.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Staging Deployment

on:
workflow_dispatch:
inputs:
confirm_deploy:
description: 'Type "yes" to confirm deployment'
required: true
default: 'no'

jobs:
deploy-staging:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Install dependencies
run: yarn

- name: Export BUILD_MODE
run: export BUILD_MODE=release

- name: Get version
run: |
FULL_VERSION=$(node -p -e "require('./lerna.json').version")
MAJOR_VERSION=$(echo $FULL_VERSION | cut -d. -f1)
echo "VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
echo "version=$MAJOR_VERSION" >> $GITHUB_OUTPUT
env:
BUILD_MODE: release

- name: Build bundle
run: yarn build:bundle

- name: Deploy to staging
run: node ./scripts/deploy/deploy-oss.js staging v${VERSION}
env:
OSS_ENDPOINT: ${{ secrets.OSS_ENDPOINT }}
OSS_REGION: ${{ secrets.OSS_REGION }}
OSS_ACCESS_KEY: ${{ secrets.OSS_ACCESS_KEY }}
OSS_BUCKET: ${{ secrets.OSS_BUCKET }}
OSS_SECRET_KEY: ${{ secrets.OSS_SECRET_KEY }}
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,25 @@

---

## v0.0.4-alpha.2

**Internal Changes:**

- Modified "Feat/session replay ([#8](https://github.com/DataDog/browser-sdk/pull/8))" ([#10](https://github.com/DataDog/browser-sdk/pull/10)) [RUM]

## v0.0.4-alpha.1

**Internal Changes:**

- chore: publish bugfix ([#9](https://github.com/DataDog/browser-sdk/pull/9))
- Feat/session replay ([#8](https://github.com/DataDog/browser-sdk/pull/8)) [RUM]

## v0.0.3-beta.2

**Internal Changes:**

- update v6.8.0

## v0.0.2

**Internal Changes:**
Expand Down
2 changes: 1 addition & 1 deletion developer-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flashcatcloud/browser-sdk-developer-extension",
"version": "0.0.2",
"version": "0.0.4-alpha.2",
"private": true,
"scripts": {
"build": "rm -rf dist && webpack --mode production",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"npmClient": "yarn",
"version": "0.0.2"
"version": "0.0.4-alpha.2"
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flashcatcloud/browser-core",
"version": "0.0.2",
"version": "0.0.4-alpha.2",
"license": "Apache-2.0",
"main": "cjs/index.js",
"module": "esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/flagging/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flashcatcloud/browser-flagging",
"version": "0.0.2",
"version": "0.0.4-alpha.2",
"license": "Apache-2.0",
"private": true,
"main": "cjs/entries/main.js",
Expand All @@ -18,7 +18,7 @@
"@flashcatcloud/browser-core": "workspace:*"
},
"peerDependencies": {
"@flashcatcloud/browser-rum": "workspace:*"
"@flashcatcloud/browser-rum": "0.0.4-alpha.2"
},
"peerDependenciesMeta": {
"@flashcatcloud/browser-rum": {
Expand Down
6 changes: 3 additions & 3 deletions packages/flagging/src/entries/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { defineGlobal, getGlobalObject } from '@flashcatcloud/browser-core'
import { flagging as importedFlagging } from '../hello'

export const datadogFlagging = importedFlagging
export const flashcatFlagging = importedFlagging

interface BrowserWindow extends Window {
DD_FLAGGING?: typeof datadogFlagging
FC_FLAGGING?: typeof flashcatFlagging
}
defineGlobal(getGlobalObject<BrowserWindow>(), 'DD_FLAGGING', datadogFlagging)
defineGlobal(getGlobalObject<BrowserWindow>(), 'FC_FLAGGING', flashcatFlagging)
6 changes: 3 additions & 3 deletions packages/logs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flashcatcloud/browser-logs",
"version": "0.0.2",
"version": "0.0.4-alpha.2",
"license": "Apache-2.0",
"main": "cjs/entries/main.js",
"module": "esm/entries/main.js",
Expand All @@ -14,10 +14,10 @@
"replace-build-env": "node ../../scripts/build/replace-build-env.js"
},
"dependencies": {
"@flashcatcloud/browser-core": "0.0.2"
"@flashcatcloud/browser-core": "workspace:*"
},
"peerDependencies": {
"@flashcatcloud/browser-rum": "0.0.2"
"@flashcatcloud/browser-rum": "0.0.4-alpha.2"
},
"peerDependenciesMeta": {
"@flashcatcloud/browser-rum": {
Expand Down
1 change: 1 addition & 0 deletions packages/logs/src/domain/assembly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export function startLogsAssembly(
}

if (session && session.anonymousId && !commonContext.user.anonymous_id) {
commonContext.user.id = isEmptyObject(commonContext.user) ? session.anonymousId : commonContext.user.id
commonContext.user.anonymous_id = session.anonymousId
}

Expand Down
2 changes: 1 addition & 1 deletion packages/rum-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flashcatcloud/browser-rum-core",
"version": "0.0.2",
"version": "0.0.4-alpha.2",
"license": "Apache-2.0",
"main": "cjs/index.js",
"module": "esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/rum-core/src/domain/contexts/userContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export function startUserContext(hooks: Hooks, configuration: RumConfiguration,
const session = sessionManager.findTrackedSession(startTime)

if (session && session.anonymousId && !user.anonymous_id && !!configuration.trackAnonymousUser) {
user.id = isEmptyObject(user) ? session.anonymousId : user.id
user.anonymous_id = session.anonymousId
user.id = user.id ?? session.anonymousId
}

if (isEmptyObject(user)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/rum-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flashcatcloud/browser-rum-react",
"version": "0.0.2",
"version": "0.0.4-alpha.2",
"license": "Apache-2.0",
"main": "cjs/entries/main.js",
"module": "esm/entries/main.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/rum-slim/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flashcatcloud/browser-rum-slim",
"version": "0.0.2",
"version": "0.0.4-alpha.2",
"license": "Apache-2.0",
"main": "cjs/entries/main.js",
"module": "esm/entries/main.js",
Expand All @@ -17,7 +17,7 @@
"@flashcatcloud/browser-rum-core": "workspace:*"
},
"peerDependencies": {
"@flashcatcloud/browser-logs": "0.0.2"
"@flashcatcloud/browser-logs": "0.0.4-alpha.2"
},
"peerDependenciesMeta": {
"@flashcatcloud/browser-logs": {
Expand Down
4 changes: 2 additions & 2 deletions packages/rum/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flashcatcloud/browser-rum",
"version": "0.0.2",
"version": "0.0.4-alpha.2",
"license": "Apache-2.0",
"main": "cjs/entries/main.js",
"module": "esm/entries/main.js",
Expand All @@ -18,7 +18,7 @@
"@flashcatcloud/browser-rum-core": "workspace:*"
},
"peerDependencies": {
"@flashcatcloud/browser-logs": "0.0.2"
"@flashcatcloud/browser-logs": "0.0.4-alpha.2"
},
"peerDependenciesMeta": {
"@flashcatcloud/browser-logs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/worker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flashcatcloud/browser-worker",
"version": "0.0.2",
"version": "0.0.4-alpha.2",
"license": "Apache-2.0",
"main": "bundle/worker.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion performances/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "performances",
"version": "0.0.2",
"version": "0.0.4-alpha.2",
"scripts": {
"start": "ts-node ./src/main.ts"
},
Expand Down
37 changes: 16 additions & 21 deletions sandbox/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,24 @@
<script src="http://localhost:8080/flashcat-logs.js"></script>
<script>
FC_RUM.init({
applicationId: 'eWbr4xk3ZRnLabRa6unqwD',
clientToken: 'ce8d1be90fc6534f89ce36ebf526765e131',
sessionPersistence: 'local-storage',
service: 'test',
env: 'local',
proxy: ({ path, parameters }) => {
// 区分线下环境
return `https://jira.flashcat.cloud${path}?${parameters}`
},
// Specify a version number to identify the deployed version of your application in Datadog
version: '1.0.0',
sessionSampleRate: 100,
sessionReplaySampleRate: 0,
defaultPrivacyLevel: 'mask-user-input',
compressIntakeRequests: false,
allowedTracingUrls: ['http://10.99.1.110', /https?:\/\/.*\.console\.flashcat\.cloud/],
clientToken: 'xxx',
applicationId: 'xxx',
sessionReplaySampleRate: 100,
trackResources: true,
trackLongTasks: true,
telemetrySampleRate: 100,
telemetryConfigurationSampleRate: 100,
telemetryUsageSampleRate: 100,
enableExperimentalFeatures: [],
})

FC_RUM.setUser({
id: '123',
email: 'test@flashcat.cloud',
name: 'test',
FC_LOGS.init({
clientToken: 'xxx',
telemetrySampleRate: 100,
telemetryConfigurationSampleRate: 100,
telemetryUsageSampleRate: 100,
enableExperimentalFeatures: [],
})
FC_FLAGGING.init()
</script>
</head>

Expand Down
13 changes: 7 additions & 6 deletions scripts/deploy/deploy-oss.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
const { printLog, printError, runMain } = require('../lib/executionUtils')
const { forEachFile } = require('../lib/filesUtils')
const OSS = require('ali-oss')
const dotenv = require('dotenv')
const CDN = require('@alicloud/cdn20180510')
const OpenApi = require('@alicloud/openapi-client')

dotenv.config()
const { printLog, printError, runMain } = require('../lib/executionUtils')
const { forEachFile } = require('../lib/filesUtils')

const { buildBundleFolder, packages } = require('./lib/deploymentUtils')

Expand Down Expand Up @@ -40,6 +37,10 @@ const client = new OSS({
if (require.main === module) {
const env = process.argv[2]
const version = process.argv[3]
if (env === 'prod' && (version.includes('beta') || version.includes('alpha'))) {
printError('❌❌❌❌检测到非正式版本,跳过CDN发布,当前版本为:', version)
process.exit(1)
}
runMain(async () => {
await main(env, version)
})
Expand All @@ -53,7 +54,7 @@ async function main(env, version) {
const pathsToInvalidate = await uploadPackage(awsConfig, packageName, version)
cloudfrontPathsToInvalidate.push(...pathsToInvalidate)
}
refreshCdnCache(cloudfrontPathsToInvalidate)
await refreshCdnCache(cloudfrontPathsToInvalidate)
}

// 读取bundle文件夹,上传到ali oss,并刷新cdn缓存
Expand Down
8 changes: 5 additions & 3 deletions scripts/release/generate-changelog/lib/getAffectedPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ function getDepenciesRecursively(packageDirectoryName) {
if (packageDirectoryNameJson.dependencies) {
for (const dependencyPackageName of Object.keys(packageDirectoryNameJson.dependencies)) {
const packageDirectoryName = getPackageDirectoryNameFromPackageName(dependencyPackageName)
dependencies.add(packageDirectoryName)
for (let transitiveDependency of getDepenciesRecursively(packageDirectoryName)) {
dependencies.add(transitiveDependency)
if (packageDirectoryName) {
dependencies.add(packageDirectoryName)
for (let transitiveDependency of getDepenciesRecursively(packageDirectoryName)) {
dependencies.add(transitiveDependency)
}
}
}
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed test/app/.yarn/install-state.gz
Binary file not shown.
Loading