Jails

Elegant and Minimalistic Javascript Application Library

MIT License

Downloads
433
Stars
180
Committers
5

Bot releases are visible (Hide)

Jails - v3.3.5 - Bug Fixes

Published by Javiani almost 6 years ago

  • Fixing Events - After IE11 fix, null or undefined was passed as argument on emit
Jails - v3.3.4 - Bug Fixes

Published by Javiani about 6 years ago

  • Removing async references from the code.

Async is a keyword on javascript and was being used on topics of pub/sub internal library causing errors on specific publish calls. This bug fix is related to 3.3.3 and 3.3.2 versions. This issue is completely solved on this version.

Jails - v3.3.1 - Bug Fixes

Published by Javiani about 6 years ago

  • Removing arrow functions references from code ( IE 11 )
Jails - v3.3.2 - Bug Fixes

Published by Javiani about 6 years ago

  • Fixing internal each function, testing item before callback calls. ( Resulting on publish/subscribe errors in particular cases )
Jails - v3.3.0

Published by Javiani over 6 years ago

[ Feature ] - Enabled Multiple init:main() calls for code splitting.
[ Feature ] - Unlocked Async Components

Code like this is now supported:

import inview from '../../helpers/inview'

export default async ({ init:main }) => {

    await inview('.hello')
    
    const helloworld = await import('./hello-world')
    
    main(() => [
        helloworld.default
    ])
}
Jails - v3.2.1

Published by Javiani almost 7 years ago

[FIX] - On removeEventListener ( .off ) when using useCapture on event delegation ( focus, blur... ).
[REMOVE] - Removing unused and not documented .destroyAll() method.

Jails - v3.2.0

Published by Javiani about 7 years ago

.destroy( nodeHtmlElement )

  • Changing destroy() method was neccessary to avoid destroy conflicts. Now, instead of passing a context and selector : jails.destroy( parent, '[data-component*=somecomponent]' ) , you should now send only the node which will be destroyed.

E.g jails.destroy( node ).

You can use queryselector to map over nodelist calling jails.destroy() for each element in order to destroy several components.

Jails - v3.1.1

Published by Javiani about 7 years ago

  • Adding jails to the component interface
  • Replacing .use() to .extends for component interface extendings

You should now use the jails.extends() for reactor, or arch, and jails.use() for logger and jquery.adapter.

For more information checkout the Demos section looking for main.js or core.js config files to see how middlewares are used.

Jails - 3.0.1

Published by Javiani over 7 years ago

[Fix] - Fixes on jails.destroy() method. It wasn't actually calling :destroy events on components.

Jails - 3.0.0

Published by Javiani over 7 years ago

Aphrodite

  • Rewritten from scratch
  • Functional
  • All component's interface can be used without dot . notation
  • Event delegation improvements
  • Better async pub/sub system
  • Supporting Dependecy Injection
  • Init method improvements
  • New middleware .use interface for Jails extending
  • Compatibility with IE8 using jails.legacy.js
Jails - 2.2.5

Published by Javiani over 7 years ago

  • Fix in .on() interface, it was breaking in multiple calls.
Jails - 2.2.4

Published by Javiani over 7 years ago

Bug Fixes ( 2.2.0 - 2.2.4 )

  • Fix in properties parsing when value is a window property
  • Handling error when component on markup doesn't match any of jails.components.
  • Fix on props(), scoped values into attributes nodelist. Some names like status wasn't being parsed on .data attributes as expected.
  • unsubscribe was using an undefined variable.
Jails - 2.2.0

Published by Javiani over 7 years ago

Hephaestus

  • Code was completely rewritten from scratch
  • props() function interface to get element attributes available in component arguments.
  • Improving event delegation on jails.events, now everything is "delegable" including custom events.
  • Components startup improved. Annotations are now part of element attributes, parsed only on props() call.
  • Separate polyfills for modern browsers and legacy browsers.
  • Improvements on destroy() and render() methods.
  • Killed .listen() method.
  • Added .off() method on components interface.
Jails - 2.1.8

Published by Javiani almost 8 years ago

  • Fixing .matches error, when js is async and document.body isnt present yet.
Jails - 2.1.7

Published by Javiani almost 8 years ago

  • Fixes on duplicated calls of .execute(), improving matchesSelector function
Jails - 2.1.6

Published by Javiani about 8 years ago

  • Fixes on .listen()/.emit() methods, instances was not being found on callback calls.
Jails - 2.1.5

Published by Javiani about 8 years ago

  • Emergencial Fix, on .listen() method.
Jails - 2.1.4 ( Triton )

Published by Javiani about 8 years ago

  • Fixes on annotations containing @ chars, e.g [email protected]
  • .on() method can be used in favor of .listen()
Jails - 2.1.3 ( Triton )

Published by Javiani about 8 years ago

  • The most stable version of Triton
  • Added star on .listen() methods, you can listen to a custom event triggered from any components.
component.listen('*:eventname')
Jails - Jails 2 ( Triton )

Published by Javiani about 8 years ago

Jails 2.0 - Triton

Triton

  • Simplicity
  • Flexibility
  • Functional Oriented

  • R.I.P Controllers . Everything is a component now.
  • No more jails.components() calls, every component should be created as jails('my-component')
  • Every module now can have a html @annotation.
  • Components can listen to each other, even if they are in the same markup.
  • More power to Components, .get(), .publish() and .subscribe() are now available.
  • Functional oriented, components now is sent to jails() as a parameter.
  • Less Code, more simple.