@parca/profile 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.9.0](https://github.com/parca-dev/parca/compare/ui-v0.8.3...ui-v0.9.0) (2022-02-16)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  ## [0.8.2](https://github.com/parca-dev/parca/compare/ui-v0.8.1...ui-v0.8.2) (2022-02-14)
7
11
 
8
12
  # [0.8.0](https://github.com/parca-dev/parca/compare/ui-v0.7.13...ui-v0.8.0) (2022-01-31)
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.8.2",
3
+ "version": "0.9.0",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
- "@parca/client": "^0.8.0",
7
- "@parca/dynamicsize": "^0.8.0",
8
- "@parca/parser": "^0.8.0",
6
+ "@parca/client": "^0.9.0",
7
+ "@parca/dynamicsize": "^0.9.0",
8
+ "@parca/parser": "^0.9.0",
9
9
  "d3-scale": "^4.0.2"
10
10
  },
11
11
  "main": "src/index.tsx",
@@ -19,5 +19,5 @@
19
19
  "access": "public",
20
20
  "registry": "https://registry.npmjs.org/"
21
21
  },
22
- "gitHead": "9eb5acc1ddd04d722fef96732d886da4f2075dca"
22
+ "gitHead": "a32bf468abe6c642b06635e435e8d491804e118c"
23
23
  }
@@ -118,14 +118,14 @@ export const ProfileView = ({queryClient, profileSource}: ProfileViewProps): JSX
118
118
  link.href = window.URL.createObjectURL(blob);
119
119
  link.download = 'profile.pb.gz';
120
120
  link.click();
121
+ } else {
122
+ console.error(error);
121
123
  }
122
124
  }
123
125
  );
124
126
  };
125
127
 
126
- const resetIcicleGraph = (_: React.MouseEvent<HTMLElement>) => {
127
- setCurPath([]);
128
- };
128
+ const resetIcicleGraph = () => setCurPath([]);
129
129
 
130
130
  const setNewCurPath = (path: string[]) => {
131
131
  if (!arrayEquals(curPath, path)) {