Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
feea233
Merge pull request #192 from agile-ts/master
bennobuilder Sep 13, 2021
87f79fc
fixed typo
bennobuilder Sep 13, 2021
80e7128
Merge remote-tracking branch 'origin/develop' into develop
bennobuilder Sep 13, 2021
1516098
fixed typo
bennobuilder Sep 14, 2021
d26469e
added rollup for testing purpose
bennobuilder Sep 14, 2021
4195a56
fixed typos
bennobuilder Sep 14, 2021
3cdc61d
fixed typos
bennobuilder Sep 14, 2021
5d2641a
fixed typos
bennobuilder Sep 15, 2021
5c8269c
fixed typos
bennobuilder Sep 15, 2021
d28618b
removed internal
bennobuilder Sep 16, 2021
ef224d8
fixed circular dependencies
bennobuilder Sep 16, 2021
9bb2670
fixed typo
bennobuilder Sep 16, 2021
3b0f15e
outsourced rollup config logic
bennobuilder Sep 16, 2021
6955ac2
fixed typo
bennobuilder Sep 17, 2021
102b0db
fixed some imports
bennobuilder Sep 17, 2021
e025b22
Merge pull request #195 from agile-ts/removing-internal
bennobuilder Sep 17, 2021
5d17bab
fixed typos
bennobuilder Sep 17, 2021
e5845e0
tried to fix tests
bennobuilder Sep 17, 2021
cb0f924
fixed tests
bennobuilder Sep 17, 2021
86d1085
added rollup to all packages
bennobuilder Sep 18, 2021
06c46f1
removed internal from multieditor
bennobuilder Sep 18, 2021
47922ee
Merge pull request #194 from agile-ts/commonjs-issue
bennobuilder Sep 18, 2021
633c308
separated createState and createLightState to prevent tree-shaking issue
bennobuilder Sep 18, 2021
ef10f0c
renamed createState
bennobuilder Sep 18, 2021
beac84d
Merge pull request #197 from agile-ts/enhancedState-treeShaking-issue
bennobuilder Sep 18, 2021
877dea3
optimized naming of shared instances
bennobuilder Sep 19, 2021
a009b93
fixed examples
bennobuilder Sep 19, 2021
488c87c
bumped version
bennobuilder Sep 19, 2021
a45c3b4
removed computed persist
bennobuilder Sep 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .changeset/early-pants-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
'@agile-ts/api': patch
'@agile-ts/core': patch
'cra-template-agile': patch
'cra-template-agile-typescript': patch
'@agile-ts/event': patch
'@agile-ts/logger': patch
'@agile-ts/multieditor': patch
'@agile-ts/proxytree': patch
'@agile-ts/react': patch
'@agile-ts/utils': patch
'@agile-ts/vue': patch
---

#### :nail_care: Polish
* `api`, `core`, `cra-template-agile-typescript`, `cra-template-agile`, `event`, `logger`, `multieditor`, `proxytree`, `react`, `utils`, `vue`
* [#194](https://github.com/agile-ts/agile/pull/194) Commonjs issue ([@bennodev19](https://github.com/bennodev19))
* `core`
* [#195](https://github.com/agile-ts/agile/pull/195) Removed `internal.ts` and resolved cycle dependencies ([@bennodev19](https://github.com/bennodev19))

#### Committers: 1
- BennoDev ([@bennodev19](https://github.com/bennodev19))

11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: 🆘 Support, Help, and Advice
about: 👉🏽 Need help or tech support? Please don't open an issue! Head to https://github.com/agile-ts/agile/discussions or https://stackoverflow.com/questions/tagged/agile-ts.
---

Hey there! If you need help or tech support then this is not the place to ask.
Please head to the [AgileTs Discord](https://discord.com/T9GzreAwPH) instead
or post a question to [Stackoverflow](https://stackoverflow.com/questions/tagged/agile-ts).

If you arrived here because you think AgileTs's documentation is unclear,
insufficient or wrong, please consider creating an issue for the documentation [here](https://github.com/agile-ts/documentation) instead.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"trailingComma": "es5",
"endOfLine": "lf",
"semi": true
}
}
1 change: 0 additions & 1 deletion benchmark/runtime/benchmarkTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,4 @@ export const startBundleBench = async (entry: string, isDev: boolean) => {
);

console.log(metafile);
// TODO analyze metafile
};
2 changes: 1 addition & 1 deletion examples/nextjs/develop/clock/pages/ssg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function SSG() {
}

// If you build and start the app, the date returned here will have the same
// value for all requests, as this method gets executed at build time.
// value for all requests, as this method gets executed at build time. (see browser network tab)
export function getStaticProps() {
const initialCore = {
light: LIGHT.value,
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/develop/clock/pages/ssr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function SSR() {

// The date returned here will be different for every request that hits the page,
// that is because the page becomes a serverless function instead of being statically
// exported when you use `getServerSideProps` or `getInitialProps`
// exported when you use `getServerSideProps` or `getInitialProps`. (see browser network tab)
export function getServerSideProps() {
tick(Date.now(), false);

Expand Down
5 changes: 3 additions & 2 deletions examples/plainjs/develop/tree-shaking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack",
"build": "shx rm -rf dist && webpack",
"install:dev:agile": "yalc add @agile-ts/core @agile-ts/logger & yarn install",
"install:prod:agile": "yarn add @agile-ts/core @agile-ts/logger & yarn install"
},
Expand All @@ -17,6 +17,7 @@
},
"dependencies": {
"@agile-ts/core": "file:.yalc/@agile-ts/core",
"@agile-ts/logger": "file:.yalc/@agile-ts/logger"
"@agile-ts/logger": "file:.yalc/@agile-ts/logger",
"@agile-ts/react": "file:.yalc/@agile-ts/react"
}
}
5 changes: 1 addition & 4 deletions examples/react-native/develop/AwesomeTSProject/core/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { createState, createComputed, createCollection } from '@agile-ts/core';
import { createEvent, Event } from '@agile-ts/event';
import { createEvent } from '@agile-ts/event';
import { Alert } from 'react-native';

export const MY_STATE = createState<string>('MyState', { key: 'my-state' }); //.persist();
export const MY_STATE_2 = createState<string>('MyState2'); //.persist("my-state2");
export const MY_STATE_3 = createState<number>(1); //.persist("my-state2");

MY_STATE.watch('test', (value: any) => {
console.log('Watch ' + value);
Expand Down Expand Up @@ -37,8 +36,6 @@ MY_COLLECTION.getGroup('myGroup')?.persist({
followCollectionPersistKeyPattern: true,
});

console.log('Initial: myCollection ', MY_COLLECTION);

export const MY_EVENT = createEvent<{ name: string }>();

MY_EVENT.on('Test', (payload) => {
Expand Down
3 changes: 2 additions & 1 deletion examples/react-native/develop/AwesomeTSProject/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"start": "react-native start",
"test": "jest",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"install:agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/api & yarn install"
"install:dev:agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/api @agile-ts/event & yarn install",
"install:prod:agile": "yarn add @agile-ts/core @agile-ts/react @agile-ts/api @agile-ts/event & yarn install"
},
"dependencies": {
"@agile-ts/api": "file:.yalc/@agile-ts/api",
Expand Down
18 changes: 15 additions & 3 deletions examples/react-native/develop/AwesomeTSProject/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,25 @@


"@agile-ts/api@file:.yalc/@agile-ts/api":
version "0.0.5"
version "0.0.22"
dependencies:
"@agile-ts/utils" "^0.0.8"

"@agile-ts/core@file:.yalc/@agile-ts/core":
version "0.0.5"
version "0.2.3"
dependencies:
"@agile-ts/utils" "^0.0.8"

"@agile-ts/event@file:.yalc/@agile-ts/event":
version "0.0.11"

"@agile-ts/react@file:.yalc/@agile-ts/react":
version "0.0.5"
version "0.2.0"

"@agile-ts/utils@^0.0.8":
version "0.0.8"
resolved "https://registry.yarnpkg.com/@agile-ts/utils/-/utils-0.0.8.tgz#ab9e1eeaddf282340936bddeb74421a2f77de804"
integrity sha512-ex19gPIS5imgV+rzs5HE2CNAIkQ162hPWH5u3HKNZnHiVU6FX62sikH5tG2oQocbDb7FkeB16D7v9ihQeuKYug==

"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4":
version "7.10.4"
Expand Down
3 changes: 2 additions & 1 deletion examples/react/develop/class-component-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"install:agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/api @agile-ts/multieditor @agile-ts/event & yarn install"
"install:dev:agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/api @agile-ts/multieditor @agile-ts/event & yarn install",
"install:prod:agile": "yarn add @agile-ts/core @agile-ts/react @agile-ts/api @agile-ts/multieditor @agile-ts/event & yarn install"
},
"eslintConfig": {
"extends": "react-app"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
createComputed,
createCollection,
} from '@agile-ts/core';
import { createEvent, Event } from '@agile-ts/event';
import { createEvent } from '@agile-ts/event';

export const MY_STATE = createState<string>('MyState'); //.persist();
export const MY_STATE_2 = createState<string>('MyState2', {
Expand Down
20 changes: 16 additions & 4 deletions examples/react/develop/class-component-ts/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,28 @@


"@agile-ts/api@file:.yalc/@agile-ts/api":
version "0.0.14"
version "0.0.22"
dependencies:
"@agile-ts/utils" "^0.0.8"

"@agile-ts/core@file:.yalc/@agile-ts/core":
version "0.0.13"
version "0.2.3"
dependencies:
"@agile-ts/utils" "^0.0.8"

"@agile-ts/event@file:.yalc/@agile-ts/event":
version "0.0.11"

"@agile-ts/multieditor@file:.yalc/@agile-ts/multieditor":
version "0.0.13"
version "0.0.21"

"@agile-ts/react@file:.yalc/@agile-ts/react":
version "0.0.14"
version "0.2.0"

"@agile-ts/utils@^0.0.8":
version "0.0.8"
resolved "https://registry.yarnpkg.com/@agile-ts/utils/-/utils-0.0.8.tgz#ab9e1eeaddf282340936bddeb74421a2f77de804"
integrity sha512-ex19gPIS5imgV+rzs5HE2CNAIkQ162hPWH5u3HKNZnHiVU6FX62sikH5tG2oQocbDb7FkeB16D7v9ihQeuKYug==

"@babel/code-frame@7.8.3":
version "7.8.3"
Expand Down
13 changes: 5 additions & 8 deletions examples/react/develop/functional-component-ts/src/core/index.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
import Agile, {
assignSharedAgileInstance,
import {
createCollection,
createComputed,
createState,
createStorage,
createStorageManager,
Item,
assignSharedAgileStorageManager,
assignSharedStorageManager,
} from '@agile-ts/core';
import { createEvent } from '@agile-ts/event';
import { assignSharedAgileLoggerConfig, Logger } from '@agile-ts/logger';
import { assignSharedLogger, createLogger, Logger } from '@agile-ts/logger';
import { clone } from '@agile-ts/utils';

export const myStorage: any = {};

assignSharedAgileLoggerConfig({ level: Logger.level.DEBUG });
export const App = new Agile();
assignSharedAgileInstance(App);
assignSharedLogger(createLogger({ level: Logger.level.DEBUG }));

export const storageManager = createStorageManager({ localStorage: true });
assignSharedAgileStorageManager(storageManager);
assignSharedStorageManager(storageManager);

// Register custom second Storage
storageManager.register(
Expand Down
11 changes: 8 additions & 3 deletions examples/react/develop/functional-component-ts/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"@agile-ts/utils" "^0.0.7"

"@agile-ts/core@file:.yalc/@agile-ts/core":
version "0.2.0-alpha.4"
version "0.2.0"
dependencies:
"@agile-ts/utils" "^0.0.7"
"@agile-ts/utils" "^0.0.8"

"@agile-ts/event@file:.yalc/@agile-ts/event":
version "0.0.10"
Expand All @@ -27,13 +27,18 @@
version "0.0.5"

"@agile-ts/react@file:.yalc/@agile-ts/react":
version "0.2.0-alpha.1"
version "0.2.0"

"@agile-ts/utils@^0.0.7":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@agile-ts/utils/-/utils-0.0.7.tgz#3dd1add6b9f63d0a5bf35e71f54ac46448ae047f"
integrity sha512-OviTDC+ZbfyiUx8Gy8veS6YymC/tT6UeP23nT8V0EQV4F2MmuWqZ2yiKk+AYxZx8h74Ey8BVEUX6/ntpxhSNPw==

"@agile-ts/utils@^0.0.8":
version "0.0.8"
resolved "https://registry.yarnpkg.com/@agile-ts/utils/-/utils-0.0.8.tgz#ab9e1eeaddf282340936bddeb74421a2f77de804"
integrity sha512-ex19gPIS5imgV+rzs5HE2CNAIkQ162hPWH5u3HKNZnHiVU6FX62sikH5tG2oQocbDb7FkeB16D7v9ihQeuKYug==

"@babel/code-frame@7.8.3":
version "7.8.3"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e"
Expand Down
3 changes: 2 additions & 1 deletion examples/react/develop/multieditor-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"install:agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/multieditor & yarn install"
"install:dev:agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/multieditor & yarn install",
"install:prod:agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/multieditor & yarn install"
},
"eslintConfig": {
"extends": [
Expand Down
8 changes: 0 additions & 8 deletions examples/react/develop/multieditor-ts/src/core/agile.ts

This file was deleted.

Loading