Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metarhia master #2

Merged
merged 41 commits into from
Aug 2, 2022
Merged

Metarhia master #2

merged 41 commits into from
Aug 2, 2022

Conversation

dmitryt
Copy link
Owner

@dmitryt dmitryt commented Aug 2, 2022

  • tests and linter show no problems (npm t)
  • tests are added/updated for bug fixes and new features
  • code is properly formatted (npm run fmt)
  • description of changes is added in CHANGELOG.md
  • update .d.ts typings

lundibundi and others added 30 commits February 19, 2022 02:57
* unify def\def.schema handling + always handle additional
  properties like `required`
* fix validation `path` of errors

PR-URL: metarhia#379
Co-authored-by: Timur Shemsedinov <timur.shemsedinov@gmail.com>

PR-URL: metarhia#379
Non breaking:
  - elegant syntax/format for custom types and internal types
  - custom types support
  - preprocessor to reduce Schema preprocess complexity
  - any kind of nested arrays, array of references metarhia#378
  - nested schemas with Schema instances support
  - any level of complex nested types support
  - custom validate for field
  - changed validate for schema, simplified for user
  - all user's validate functions support 4 types of syntax: boolean return, throw Error, error message as string return and array of error messages
  - reserved words permitted in schema if kind provided
  - function fields stored in schema
  - shorthand required key for collections support `{ 'array?': 'string' }`
  - many relation now checks in runtime
  - model now loads projections at the end, to fix bug
  - schema kinds moved to separate file and kinds now have logic to remove hardcoded projection from Schema
  - ts interfaces from schema now have relation ids as well
  - deps update metautil
  - nested object support metarhia#395
  - syntax for validate function changed

Breaking:
  - Model no more require metavm for browser compatibility: need `impress` update
  - loadModel moved to loader: need `impress` update
  - Model no more writes d.ts file to disk moved to loader as well: need `metasql` update
  - syntax for pg types changed a bit, no more not-working types: need `metasql` update
  - not supporting custom Schema kinds: need to not use custom kinds in schemas folder: `application/schemas/<YourSchema.js>`

PR-URL: metarhia#393
Co-authored-by: Timur Shemsedinov <timur.shemsedinov@gmail.com>
PR-URL: metarhia#407
@dmitryt dmitryt merged commit c1e1494 into master Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants