Skip to content

🔥 Super easy, efficient and agnostic state management for Javascript

License

Notifications You must be signed in to change notification settings

YagoLopez/metaphasejs

Repository files navigation

Build Status Greenkeeper badge Maintainability Coverage Status

NPM package

Repository stats

MetaphaseJS

Super easy, efficient and agnostic state management for Javascript

Demo

Usage

// Install
yarn add metaphasejs // Yarn
npm install metaphasejs // NPM

// Build
yarn / npm build

// Test
yarn / npm test

API Docs

Packages Analysis

  • Without gzip compression: Link

Test Coverage

Contributing

  1. Fork it
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Caveats

  • IMPORTANT: at this moment MetaphaseJS is not totally compatible with create-react-app (CRA) . The use of constructor.name breaks the compiled code by the CRA build script. The uglifying process has to be made with an ad hoc script called build.js. This script avoids to mangle funcion names using the option mangle: {keep_fnames: true}. Open an issue for more information. Pull requests are welcome.
  • At this moment there are not polyfills for old browsers, but there will be in the future.
  • If Typescript and decorators are used, its configuration file tsconfig.json must have:
    • experimentalDecorators = true
    • emitDecoratorMetadata = true
    • If flag strict = true is used, model properties (columns in db) must be initialized with values

License

MIT

Back to top