@parca/profile 0.16.150 → 0.16.152

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,14 @@
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.16.152](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.150...@parca/profile@0.16.152) (2023-03-27)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
10
+ ## 0.16.151 (2023-03-27)
11
+
12
+ **Note:** Version bump only for package @parca/profile
13
+
6
14
  ## [0.16.150](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.149...@parca/profile@0.16.150) (2023-03-23)
7
15
 
8
16
  **Note:** Version bump only for package @parca/profile
@@ -74,7 +74,6 @@ var Callgraph = function (_a) {
74
74
  nodes.each(function () {
75
75
  var _this = this;
76
76
  var nodeData = data.nodes.find(function (n) {
77
- // @ts-expect-error
78
77
  return n.id === _this.id;
79
78
  });
80
79
  var defaultColor = colorScale(Number(nodeData === null || nodeData === void 0 ? void 0 : nodeData.cumulative));
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { RpcError } from '@protobuf-ts/runtime-rpc';
3
3
  import { ProfileType, ProfileTypesResponse } from '@parca/client';
4
+ import { type SelectElement } from '@parca/components';
4
5
  interface WellKnownProfile {
5
6
  name: string;
6
7
  help: string;
@@ -9,6 +10,7 @@ interface WellKnownProfiles {
9
10
  [key: string]: WellKnownProfile;
10
11
  }
11
12
  export declare const wellKnownProfiles: WellKnownProfiles;
13
+ export declare function profileSelectElement(name: string, flexibleKnownProfilesDetection: boolean): SelectElement;
12
14
  export declare const normalizeProfileTypesData: (types: ProfileType[]) => string[];
13
15
  interface Props {
14
16
  profileTypesData?: ProfileTypesResponse;
@@ -103,7 +103,7 @@ function flexibleWellKnownProfileMatching(name) {
103
103
  });
104
104
  return requiredKey != null ? wellKnownProfiles[requiredKey] : undefined;
105
105
  }
106
- function profileSelectElement(name, flexibleKnownProfilesDetection) {
106
+ export function profileSelectElement(name, flexibleKnownProfilesDetection) {
107
107
  var wellKnown = !flexibleKnownProfilesDetection
108
108
  ? wellKnownProfiles[name]
109
109
  : flexibleWellKnownProfileMatching(name);
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.150",
3
+ "version": "0.16.152",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@parca/client": "^0.16.69",
7
- "@parca/components": "^0.16.121",
7
+ "@parca/components": "^0.16.123",
8
8
  "@parca/dynamicsize": "^0.16.54",
9
9
  "@parca/hooks": "^0.0.2",
10
10
  "@parca/parser": "^0.16.55",
11
- "@parca/store": "^0.16.70",
11
+ "@parca/store": "^0.16.71",
12
12
  "@parca/utilities": "^0.0.3",
13
13
  "@types/react-beautiful-dnd": "^13.1.3",
14
14
  "d3": "7.8.2",
@@ -46,5 +46,5 @@
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.org/"
48
48
  },
49
- "gitHead": "e581eab22cd1ea35eb78e53ec1484bf3ef068093"
49
+ "gitHead": "19debe37dc7ec224ad92c4bfd9614081e61cfc04"
50
50
  }
@@ -83,8 +83,7 @@ const Callgraph = ({data, svgString, sampleUnit, width}: Props): JSX.Element =>
83
83
 
84
84
  nodes.each(function () {
85
85
  const nodeData = data.nodes.find((n): boolean => {
86
- // @ts-expect-error
87
- return n.id === this.id;
86
+ return n.id === (this as Element).id;
88
87
  });
89
88
  const defaultColor = colorScale(Number(nodeData?.cumulative));
90
89
  const node = d3.select(this);
@@ -108,7 +108,7 @@ function flexibleWellKnownProfileMatching(name: string): WellKnownProfile | unde
108
108
  return requiredKey != null ? wellKnownProfiles[requiredKey] : undefined;
109
109
  }
110
110
 
111
- function profileSelectElement(
111
+ export function profileSelectElement(
112
112
  name: string,
113
113
  flexibleKnownProfilesDetection: boolean
114
114
  ): SelectElement {