Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
jrea committed Nov 23, 2022
2 parents 7de3830 + 52e64ce commit fd5d7bc
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.32.3](https://github.com/TheNileDev/nile-js/compare/v0.32.2...v0.32.3) (2022-11-23)

### Bug Fixes

- **react:** update AggregateMetricsRequest type ([245c528](https://github.com/TheNileDev/nile-js/commit/245c5288e3f47db1a76a264fb6ddd1874c68f71c))

## [0.32.2](https://github.com/TheNileDev/nile-js/compare/v0.32.1...v0.32.2) (2022-11-23)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"packages": ["lib/*", "packages/react"],
"version": "0.32.2",
"version": "0.32.3",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
Expand Down
4 changes: 4 additions & 0 deletions lib/nile/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.32.3](https://github.com/TheNileDev/nile-js/compare/v0.32.2...v0.32.3) (2022-11-23)

**Note:** Version bump only for package @theniledev/js

## [0.32.2](https://github.com/TheNileDev/nile-js/compare/v0.32.1...v0.32.2) (2022-11-23)

**Note:** Version bump only for package @theniledev/js
Expand Down
2 changes: 1 addition & 1 deletion lib/nile/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.32.2",
"version": "0.32.3",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/examples/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.32.3](https://github.com/TheNileDev/nile-js/compare/v0.32.2...v0.32.3) (2022-11-23)

**Note:** Version bump only for package @theniledev/examples

## [0.32.2](https://github.com/TheNileDev/nile-js/compare/v0.32.1...v0.32.2) (2022-11-23)

**Note:** Version bump only for package @theniledev/examples
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@theniledev/examples",
"license": "MIT",
"private": true,
"version": "0.32.2",
"version": "0.32.3",
"scripts": {
"dev": "next dev",
"build": "next build",
Expand Down
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.32.3](https://github.com/TheNileDev/nile-js/compare/v0.32.2...v0.32.3) (2022-11-23)

### Bug Fixes

- **react:** update AggregateMetricsRequest type ([245c528](https://github.com/TheNileDev/nile-js/commit/245c5288e3f47db1a76a264fb6ddd1874c68f71c))

## [0.32.2](https://github.com/TheNileDev/nile-js/compare/v0.32.1...v0.32.2) (2022-11-23)

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@theniledev/react",
"version": "0.32.2",
"version": "0.32.3",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down Expand Up @@ -90,7 +90,7 @@
"@mui/x-data-grid": "^5.17.12",
"@mui/x-date-pickers": "^5.0.8",
"@tanstack/react-query": "^4.16.1",
"@theniledev/js": "^0.32.2",
"@theniledev/js": "^0.32.3",
"chart.js": "^3.9.1",
"chartjs-adapter-date-fns": "^2.0.1",
"date-fns": "^2.29.3",
Expand Down
18 changes: 12 additions & 6 deletions packages/react/src/components/Metrics/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,18 @@ export enum AggregationType {
P95 = 'percentile95',
}

export type AggregateMetricsRequest = Omit<
NileAggregateMetricsRequest['aggregationRequest'],
'startTime'
> & {
aggregationType: AggregationType;
};
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
type ChangeFields<T, R> = Omit<T, keyof R> & R;

export type AggregateMetricsRequest = ChangeFields<
NileAggregateMetricsRequest,
{
aggregationRequest: Optional<
NileAggregateMetricsRequest['aggregationRequest'],
'startTime'
>;
}
> & { aggregationType: AggregationType };

export enum DataKeys {
timestamp = 'timestamp',
Expand Down

2 comments on commit fd5d7bc

@vercel
Copy link

@vercel vercel bot commented on fd5d7bc Nov 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nile-js – ./

nile-js-theniledev.vercel.app
nile-js.vercel.app
nile-js-git-master-theniledev.vercel.app

@vercel
Copy link

@vercel vercel bot commented on fd5d7bc Nov 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.