Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit e69eeb4

Browse files
authored
Merge pull request #215 from agile-ts/develop
New Release 🎉
2 parents 52ba1dd + 36b235a commit e69eeb4

File tree

155 files changed

+2499
-2433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+2499
-2433
lines changed

.changeset/purple-scissors-float.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
'@agile-ts/api': patch
3+
'@agile-ts/core': patch
4+
'cra-template-agile': patch
5+
'cra-template-agile-typescript': patch
6+
'@agile-ts/event': patch
7+
'@agile-ts/logger': patch
8+
'@agile-ts/multieditor': patch
9+
'@agile-ts/proxytree': patch
10+
'@agile-ts/react': patch
11+
'@agile-ts/utils': patch
12+
'@agile-ts/vue': patch
13+
---
14+
15+
#### ❗️ Breaking Change
16+
17+
```ts
18+
MY_STATE.persist('persistKey'); -> MY_STATE.persist({key: 'persistKey'});
19+
```
20+
21+
#### :rocket: New Feature
22+
* `core`
23+
* [#214](https://github.com/agile-ts/agile/pull/214) add migration callback ([@bennodev19](https://github.com/bennodev19))
24+
25+
#### :nail_care: Polish
26+
* `logger`
27+
* [#210](https://github.com/agile-ts/agile/pull/210) Refactor logger ([@bennodev19](https://github.com/bennodev19))
28+
* `api`, `core`, `event`, `logger`, `multieditor`, `proxytree`, `react`, `utils`, `vue`
29+
* [#209](https://github.com/agile-ts/agile/pull/209) Outsource react hooks ([@bennodev19](https://github.com/bennodev19))
30+
31+
#### Committers: 1
32+
- BennoDev ([@bennodev19](https://github.com/bennodev19))
33+

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
</p>
1818

1919
<p align="left">
20+
<a href="https://agile-ts.org">
21+
<img src="https://img.shields.io/badge/Status-Beta-green.svg" alt="Status"/>
22+
</a>
2023
<a href="https://github.com/agile-ts/agile/actions?query=workflow%3ARelease">
2124
<img src="https://github.com/agile-ts/agile/workflows/Release/badge.svg" alt="Build Status"/>
2225
</a>
@@ -75,11 +78,11 @@ More examples can be found in the [Example section](https://agile-ts.org/docs/ex
7578
<br />
7679
<img src="https://raw.githubusercontent.com/agile-ts/agile/master/static/why_should_i_use_agile.png" alt="Why should I use AgileTs?"/>
7780

78-
AgileTs is a global State and Logic Library implemented in Typescript.
81+
AgileTs is an atom based global State and Logic Library implemented in Typescript.
7982
It offers a reimagined API that focuses on **developer experience**
8083
and allows you to **easily** and **flexible** manage your application States.
8184
Besides [States](https://agile-ts.org/docs/core/state),
82-
AgileTs offers some other powerful and tree shakable APIs that make your life easier,
85+
AgileTs offers some other powerful APIs that make your life easier,
8386
such as [Collections](https://agile-ts.org/docs/core/collection)
8487
and [Computed States](https://agile-ts.org/docs/core/computed).
8588
The philosophy behind AgileTs is simple:

benchmark/benchmarks/benchmarkManager.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ export function endBenchmarkLog(
4949
const cycleResult = results[i];
5050

5151
// Build Cycle Result Log
52-
const cycleString = `{bold.bgGreen ${
53-
i + 1
54-
}.} {bold.blue ${cycleResult.name
52+
const cycleString = `{bold.bgGreen ${i + 1}.} {bold.blue ${cycleResult.name
5553
.padEnd(20, '.')
5654
.replace(/(\.+)$/, '{red $1}')}}{yellow ${
5755
cycleResult.opsInSec

benchmark/benchmarks/react/1000fields/bench/agilets/collection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
22
import ReactDom from 'react-dom';
3-
import { createCollection, LogCodeManager, shared } from '@agile-ts/core';
3+
import { createCollection, logCodeManager, shared } from '@agile-ts/core';
44
import reactIntegration, { useAgile, useValue } from '@agile-ts/react';
55

6-
LogCodeManager.setAllowLogging(false);
6+
logCodeManager.allowLogging = false;
77
shared.integrate(reactIntegration);
88

99
export default function (target: HTMLElement, fieldsCount: number) {

benchmark/benchmarks/react/1000fields/bench/agilets/nestedState.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as React from 'react';
22
import * as ReactDom from 'react-dom';
3-
import { createState, LogCodeManager, shared, State } from '@agile-ts/core';
3+
import { createState, logCodeManager, shared, State } from '@agile-ts/core';
44
import reactIntegration, { useAgile } from '@agile-ts/react';
55

6-
LogCodeManager.setAllowLogging(false);
6+
logCodeManager.allowLogging = false;
77
shared.integrate(reactIntegration);
88

99
export default function (target: HTMLElement, fieldsCount: number) {

benchmark/benchmarks/react/1000fields/bench/agilets/state.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
22
import ReactDom from 'react-dom';
3-
import { createState, LogCodeManager, shared } from '@agile-ts/core';
3+
import { createState, logCodeManager, shared } from '@agile-ts/core';
44
import reactIntegration, { useAgile } from '@agile-ts/react';
55

6-
LogCodeManager.setAllowLogging(false);
6+
logCodeManager.allowLogging = false;
77
shared.integrate(reactIntegration);
88

99
export default function (target: HTMLElement, fieldsCount: number) {

benchmark/benchmarks/react/computed/bench/agilets/autoTracking.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import ReactDom from 'react-dom';
33
import {
44
createComputed,
55
createState,
6-
LogCodeManager,
6+
logCodeManager,
77
shared,
88
} from '@agile-ts/core';
99
import reactIntegration, { useAgile } from '@agile-ts/react';
1010

11-
LogCodeManager.setAllowLogging(false);
11+
logCodeManager.allowLogging = false;
1212
shared.integrate(reactIntegration);
1313

1414
const COUNT = createState(0);

benchmark/benchmarks/react/computed/bench/agilets/hardCoded.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import ReactDom from 'react-dom';
33
import {
44
createComputed,
55
createState,
6-
LogCodeManager,
6+
logCodeManager,
77
shared,
88
} from '@agile-ts/core';
99
import reactIntegration, { useAgile } from '@agile-ts/react';
1010

11-
LogCodeManager.setAllowLogging(false);
11+
logCodeManager.allowLogging = false;
1212
shared.integrate(reactIntegration);
1313

1414
const COUNT = createState(0);

benchmark/benchmarks/react/counter/bench/agilets.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
22
import ReactDom from 'react-dom';
3-
import { createState, LogCodeManager, shared } from '@agile-ts/core';
3+
import { createState, shared, logCodeManager } from '@agile-ts/core';
44
import reactIntegration, { useAgile } from '@agile-ts/react';
55

6-
LogCodeManager.setAllowLogging(false);
6+
logCodeManager.allowLogging = false;
77
shared.integrate(reactIntegration);
88

99
const COUNT = createState(0);

benchmark/benchmarks/typescript/cloneDeep/bench/looper.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ export function cloneDeep<T = any>(value: T): T {
33
if (value == null || typeof value !== 'object') return value;
44

55
// Ignore everything that is no object or array but has the type of an object (e.g. classes)
6-
const valConstructorName = Object.getPrototypeOf(
7-
value
8-
).constructor.name.toLowerCase();
6+
const valConstructorName =
7+
Object.getPrototypeOf(value).constructor.name.toLowerCase();
98
if (valConstructorName !== 'object' && valConstructorName !== 'array')
109
return value;
1110

0 commit comments

Comments
 (0)