@parca/profile 0.12.31 → 0.12.32

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,12 @@
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.12.32](https://github.com/parca-dev/parca/compare/ui-v0.12.31...ui-v0.12.32) (2022-05-02)
7
+
8
+ ## [0.12.29](https://github.com/parca-dev/parca/compare/ui-v0.12.26...ui-v0.12.29) (2022-04-29)
9
+
10
+ **Note:** Version bump only for package @parca/profile
11
+
6
12
  ## [0.12.31](https://github.com/parca-dev/parca/compare/ui-v0.12.30...ui-v0.12.31) (2022-05-02)
7
13
 
8
14
  **Note:** Version bump only for package @parca/profile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.12.31",
3
+ "version": "0.12.32",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@parca/client": "^0.12.30",
@@ -19,5 +19,5 @@
19
19
  "access": "public",
20
20
  "registry": "https://registry.npmjs.org/"
21
21
  },
22
- "gitHead": "99f446fe83a41c0c40e760e68bfe7b4eb8b60506"
22
+ "gitHead": "f065972a25829a59cacaec8feba3156fd60dc6fd"
23
23
  }
@@ -46,7 +46,7 @@ export const ProfileView = ({
46
46
  QueryRequest_ReportType.FLAMEGRAPH_UNSPECIFIED
47
47
  );
48
48
  const [currentView, setCurrentView] = useState<string | undefined>(currentViewFromURL);
49
- const grpcMetadata = useGrpcMetadata();
49
+ const metadata = useGrpcMetadata();
50
50
 
51
51
  useEffect(() => {
52
52
  let showLoaderTimeout;
@@ -110,7 +110,7 @@ export const ProfileView = ({
110
110
  };
111
111
 
112
112
  queryClient
113
- .query(req, grpcMetadata)
113
+ .query(req, {meta: metadata})
114
114
  .response.then(response => {
115
115
  if (response.report.oneofKind !== 'pprof') {
116
116
  console.log('Expected pprof report, got:', response.report.oneofKind);
package/src/useQuery.tsx CHANGED
@@ -31,7 +31,7 @@ export const useQuery = (
31
31
  const req = profileSource.QueryRequest();
32
32
  req.reportType = reportType;
33
33
 
34
- const call = client.query(req, metadata);
34
+ const call = client.query(req, {meta: metadata});
35
35
 
36
36
  call.response
37
37
  .then(response => setResult({response: response, error: null, isLoading: false}))