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

Commit

Permalink
Merge pull request #198 from agile-ts/develop
Browse files Browse the repository at this point in the history
'New Release 🎉
  • Loading branch information
bennobuilder authored Sep 19, 2021
2 parents 17c56f4 + a45c3b4 commit a5bece3
Show file tree
Hide file tree
Showing 156 changed files with 2,012 additions and 1,576 deletions.
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/[email protected]":
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/[email protected]":
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

0 comments on commit a5bece3

Please sign in to comment.