Skip to content

Commit

Permalink
Version Packages (#2559)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Nov 26, 2024
1 parent fbd0a73 commit 80b65f4
Show file tree
Hide file tree
Showing 5 changed files with 137 additions and 129 deletions.
126 changes: 0 additions & 126 deletions .changeset/six-planets-leave.md

This file was deleted.

7 changes: 7 additions & 0 deletions charts/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @lg-charts/core

## 0.6.1

### Patch Changes

- Updated dependencies [fbd0a7310]
- @leafygreen-ui/lib@13.8.0

## 0.6.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions charts/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lg-charts/core",
"version": "0.6.0",
"version": "0.6.1",
"description": "lg-charts Core Chart Components",
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
Expand All @@ -19,7 +19,7 @@
"@leafygreen-ui/hooks": "^8.2.1",
"@leafygreen-ui/icon": "^12.8.0",
"@leafygreen-ui/icon-button": "^15.0.23",
"@leafygreen-ui/lib": "13.7.0",
"@leafygreen-ui/lib": "13.8.0",
"@leafygreen-ui/tokens": "^2.11.0",
"@leafygreen-ui/typography": "^19.3.0",
"@lg-tools/storybook-utils": "^0.1.1",
Expand Down
127 changes: 127 additions & 0 deletions packages/lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,132 @@
# @leafygreen-ui/lib

## 13.8.0

### Minor Changes

- fbd0a7310: Adds multiple `Deep` TS utility types, and `Concat` type.

### Concat

Concatenates two string literals with a separator.

```ts
type A = 'apple';
type B = 'banana';

Concat<A, B, '.'>; // 'apple.banana' string literal
```

### `DeepKeys`

Given some deep interface, `DeepKeys` returns all possible deep keys
as a union of dot-separated string literals.

```ts
interface MyInterface {
a: {
b: {
c: any;
d: any;
};
e: any;
};
f: any;
}

DeepKeys<MyInterface>; // 'a' | 'a.b' | 'a.b.c' | 'a.b.d' | 'a.e' | 'f'
```

### `DeepPartial`

Given some deep interface, `DeepPartial` returns a recursive partial of the given interface.

```ts
interface MyInterface {
a: {
b: {
c: any;
d: any;
};
e: any;
};
f: any;
}

const x = {
a: {
b: {
d: 'foo',
},
},
} satisfies DeepPartial<MyInterface>;
```

### `DeepPathValues`

Given some deep interface, `DeepPathValues` maps the deep keys of an object to their path values.

```ts
interface MyInterface {
a: {
b: {
c: any;
d: any;
};
e: any;
};
f: any;
}

const x = {
a: {
b: {
c: 'a.b.c',
d: 'a.b.d',
},
e: 'a.e',
},
f: 'f',
} satisfies DeepPathValues<MyInterface>;
```

### `DeepPick`

Given some deep interface, `DeepPick` deeply picks the specified dot-separated keys from the object

```ts
interface MyInterface {
a: {
b: {
c: any;
d: any;
};
e: any;
};
f: any;
}

DeepPick<MyInterface, 'a.b'>; // { a: { b: any } }
```

### `DeepUnion`

Given some deep constant, `DeepUnion` returns a recursive union the values for a given type.

```ts
const MyObj = {
a: {
b: {
c: 'carrot'
},
d: 'dragon'
}
e: 'eggplant'
} as const

DeepUnion<typeof MyObj> // 'carrot' | 'dragon' | 'eggplant'
```

## 13.7.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leafygreen-ui/lib",
"version": "13.7.0",
"version": "13.8.0",
"description": "leafyGreen UI Kit Internal Library",
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
Expand Down

0 comments on commit 80b65f4

Please sign in to comment.