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
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: 0 additions & 23 deletions .changeset/early-pants-begin.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createMultieditor, Validator } from '@agile-ts/multieditor';
import { generateColor, generateId, isLight } from './utils';
import { globalBind } from '@agile-ts/core';

export const isValidNameValidator = new Validator()
.required()
Expand Down Expand Up @@ -71,3 +72,6 @@ export const signUpEditor = createMultieditor((editor) => ({
fixedProperties: ['id'],
reValidateMode: 'afterFirstSubmit',
}));

// For better debugging
globalBind('__core__', { isValidNameValidator, signUpEditor });
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
"url": "git+https://github.com/agile-ts/agile.git"
},
"devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.5",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.15.6",
"@changesets/cli": "^2.16.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.0.4",
Expand Down
18 changes: 18 additions & 0 deletions packages/api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @agile-ts/api

## 0.0.23

### Patch Changes

- 488c87c: #### :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))

- Updated dependencies [488c87c]
- @agile-ts/utils@0.0.9

## 0.0.22

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agile-ts/api",
"version": "0.0.22",
"version": "0.0.23",
"author": "BennoDev",
"license": "MIT",
"homepage": "https://agile-ts.org/",
Expand Down Expand Up @@ -42,7 +42,7 @@
"@agile-ts/utils": "file:../utils"
},
"dependencies": {
"@agile-ts/utils": "^0.0.8"
"@agile-ts/utils": "^0.0.9"
},
"publishConfig": {
"access": "public"
Expand Down
25 changes: 25 additions & 0 deletions packages/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// https://babeljs.io/docs/en/config-files#config-function-api
export default function getBabelConfig() {
return {
ignore: ['./node_modules'],
presets: [
[
'@babel/preset-env',
{
targets: {
// Only targeting browsers supporting ES Modules (https://babeljs.io/docs/en/babel-preset-env)
// Why?: https://github.com/babel/babel/issues/9849#issuecomment-592668815
esmodules: true,
},
},
],
],
// https://stackoverflow.com/questions/53558916/babel-7-referenceerror-regeneratorruntime-is-not-defined/61517521#61517521
// Unfortunately this plugin requires an external (prod) dependency '@babel/runtime'.
// However the required dependency is also modular and shrinks the bundle size in general due to function reuses.
// (See: https://babeljs.io/docs/en/babel-runtime)
// Note: Required when using "babelHelpers: 'runtime'" in the 'rollup.config.default.js'
// and to support browsers that do not support ES Modules like 'IE11'
// plugins: ['@babel/transform-runtime'],
};
}
19 changes: 19 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Change Log

## 0.2.4

### Patch Changes

- 488c87c: #### :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))

- Updated dependencies [488c87c]
- @agile-ts/logger@0.0.9
- @agile-ts/utils@0.0.9

## 0.2.0

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agile-ts/core",
"version": "0.2.3",
"version": "0.2.5",
"author": "BennoDev",
"license": "MIT",
"homepage": "https://agile-ts.org/",
Expand Down Expand Up @@ -55,10 +55,10 @@
"@agile-ts/utils": "file:../utils"
},
"dependencies": {
"@agile-ts/utils": "^0.0.8"
"@agile-ts/utils": "^0.0.9"
},
"peerDependencies": {
"@agile-ts/logger": "^0.0.8"
"@agile-ts/logger": "^0.0.9"
},
"peerDependenciesMeta": {
"@agile-ts/logger": {
Expand Down
6 changes: 2 additions & 4 deletions packages/core/src/state/public/createState.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {
createEnhancedState,
CreateStateConfigInterfaceWithAgile,
} from './index';
import { EnhancedState } from '../state.enhanced';
import { createEnhancedState } from './createEnhancedState';
import { CreateStateConfigInterfaceWithAgile } from './index';

/**
* Returns a newly created enhanced State.
Expand Down
15 changes: 15 additions & 0 deletions packages/cra-template-agile-typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# cra-template-agile-typescript

## 0.0.10

### Patch Changes

- 488c87c: #### :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))

## 0.0.9

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/cra-template-agile-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cra-template-agile-typescript",
"version": "0.0.9",
"version": "0.0.10",
"author": "BennoDev",
"license": "MIT",
"homepage": "https://agile-ts.org/",
Expand All @@ -17,8 +17,8 @@
"pack": "npm pack"
},
"devDependencies": {
"@agile-ts/core": "^0.2.0",
"@agile-ts/react": "^0.2.0",
"@agile-ts/core": "^0.2.4",
"@agile-ts/react": "^0.2.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
Expand Down
15 changes: 15 additions & 0 deletions packages/cra-template-agile/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# cra-template-agile

## 0.0.10

### Patch Changes

- 488c87c: #### :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))

## 0.0.9

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/cra-template-agile/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cra-template-agile",
"version": "0.0.9",
"version": "0.0.10",
"author": "BennoDev",
"license": "MIT",
"homepage": "https://agile-ts.org/",
Expand All @@ -17,8 +17,8 @@
"pack": "npm pack"
},
"devDependencies": {
"@agile-ts/core": "^0.2.0",
"@agile-ts/react": "^0.2.0",
"@agile-ts/core": "^0.2.4",
"@agile-ts/react": "^0.2.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3"
Expand Down
18 changes: 18 additions & 0 deletions packages/event/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Change Log

## 0.0.12

### Patch Changes

- 488c87c: #### :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))

- Updated dependencies [488c87c]
- @agile-ts/core@0.2.4

## 0.0.11

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/event/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agile-ts/event",
"version": "0.0.11",
"version": "0.0.12",
"author": "BennoDev",
"license": "MIT",
"homepage": "https://agile-ts.org/",
Expand Down Expand Up @@ -44,7 +44,7 @@
},
"peerDependencies": {
"react": "^16.13.1",
"@agile-ts/core": "^0.2.0"
"@agile-ts/core": "^0.2.4"
},
"publishConfig": {
"access": "public"
Expand Down
18 changes: 18 additions & 0 deletions packages/logger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @agile-ts/logger

## 0.0.9

### Patch Changes

- 488c87c: #### :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))

- Updated dependencies [488c87c]
- @agile-ts/utils@0.0.9

## 0.0.8

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agile-ts/logger",
"version": "0.0.8",
"version": "0.0.9",
"author": "BennoDev",
"license": "MIT",
"homepage": "https://agile-ts.org/",
Expand Down Expand Up @@ -41,7 +41,7 @@
"@agile-ts/utils": "file:../utils"
},
"dependencies": {
"@agile-ts/utils": "^0.0.8"
"@agile-ts/utils": "^0.0.9"
},
"publishConfig": {
"access": "public"
Expand Down
35 changes: 11 additions & 24 deletions packages/logger/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,31 +141,18 @@ export class Logger {
table: (...data: any[]) => this.table(...data),
};
}
const doNothing = () => {
/* do nothing */
};
return {
log: () => {
/* do nothing */
},
debug: () => {
/* do nothing */
},
info: () => {
/* do nothing */
},
success: () => {
/* do nothing */
},
warn: () => {
/* do nothing */
},
error: () => {
/* do nothing */
},
trace: () => {
/* do nothing */
},
table: () => {
/* do nothing */
},
log: doNothing,
debug: doNothing,
info: doNothing,
success: doNothing,
warn: doNothing,
error: doNothing,
trace: doNothing,
table: doNothing,
};
}

Expand Down
Loading