Skip to content
Open
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
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"packages": [
"packages/*"
],
"version": "0.8.57",
"version": "0.8.58-beta",
"npmClient": "yarn"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "clarity",
"private": true,
"version": "0.8.57",
"version": "0.8.58-beta",
"repository": "https://github.com/microsoft/clarity.git",
"author": "Sarvesh Nagpal <sarveshn@microsoft.com>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/clarity-decode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clarity-decode",
"version": "0.8.57",
"version": "0.8.58-beta",
"description": "An analytics library that uses web page interactions to generate aggregated insights",
"author": "Microsoft Corp.",
"license": "MIT",
Expand All @@ -26,7 +26,7 @@
"url": "https://github.com/Microsoft/clarity/issues"
},
"dependencies": {
"clarity-js": "^0.8.57"
"clarity-js": "^0.8.58-beta"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^24.0.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/clarity-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clarity-devtools",
"version": "0.8.57",
"version": "0.8.58-beta",
"private": true,
"description": "Adds Clarity debugging support to browser devtools",
"author": "Microsoft Corp.",
Expand All @@ -24,9 +24,9 @@
"url": "https://github.com/Microsoft/clarity/issues"
},
"dependencies": {
"clarity-decode": "^0.8.57",
"clarity-js": "^0.8.57",
"clarity-visualize": "^0.8.57"
"clarity-decode": "^0.8.58-beta",
"clarity-js": "^0.8.58-beta",
"clarity-visualize": "^0.8.58-beta"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/clarity-devtools/static/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"manifest_version": 3,
"name": "Microsoft Clarity Developer Tools",
"description": "Clarity helps you understand how users are interacting with your website.",
"version": "0.8.57",
"version_name": "0.8.57",
"version": "0.8.58",
"version_name": "0.8.58",
"minimum_chrome_version": "88",
"devtools_page": "devtools.html",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion packages/clarity-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clarity-js",
"version": "0.8.57",
"version": "0.8.58-beta",
"description": "An analytics library that uses web page interactions to generate aggregated insights",
"author": "Microsoft Corp.",
"license": "MIT",
Expand Down
7 changes: 1 addition & 6 deletions packages/clarity-js/src/core/scrub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import * as Layout from "@clarity-types/layout";
import config from "@src/core/config";

const catchallRegex = /\S/gi;
const maxUrlLength = 255;
let unicodeRegex = true;
let digitRegex = null;
let letterRegex = null;
Expand Down Expand Up @@ -93,7 +92,7 @@ export function text(value: string, hint: string, privacy: Privacy, mangle: bool
return value;
}

export function url(input: string, electron: boolean = false, truncate: boolean = false): string {
export function url(input: string, electron: boolean = false): string {
let result = input;
// Replace the URL for Electron apps so we don't send back file:/// URL
if (electron) {
Expand All @@ -106,10 +105,6 @@ export function url(input: string, electron: boolean = false, truncate: boolean
result = path + "?" + query.split("&").map(p => drop.some(x => p.indexOf(`${x}=`) === 0) ? `${p.split("=")[0]}=${swap}` : p).join("&");
}
}

if (truncate) {
result = result.substring(0, maxUrlLength);
}
return result;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/clarity-js/src/core/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
let version = "0.8.57";
let version = "0.8.58-beta";
export default version;
2 changes: 1 addition & 1 deletion packages/clarity-js/src/data/envelope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function envelope(last: boolean): Token[] {
data.upload = last && "sendBeacon" in navigator ? Upload.Beacon : Upload.Async;
data.end = last ? BooleanFlag.True : BooleanFlag.False;
data.applicationPlatform = ApplicationPlatform.WebApp;
data.url = scrub.url(location.href, false, true);
data.url = scrub.url(location.href);
return [
data.version,
data.sequence,
Expand Down
4 changes: 2 additions & 2 deletions packages/clarity-visualize/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clarity-visualize",
"version": "0.8.57",
"version": "0.8.58-beta",
"description": "An analytics library that uses web page interactions to generate aggregated insights",
"author": "Microsoft Corp.",
"license": "MIT",
Expand All @@ -27,7 +27,7 @@
"url": "https://github.com/Microsoft/clarity/issues"
},
"dependencies": {
"clarity-decode": "^0.8.57"
"clarity-decode": "^0.8.58-beta"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^24.0.0",
Expand Down