mojave

A library of commonly used JavaScript tools and helpers by Becklyn

BSD-3-CLAUSE License

Downloads
405
Stars
5
Committers
9

Bot releases are hidden (Show)

mojave -

Published by keichinger over 5 years ago

πŸ› Bug Fixes

  • Update Promise polyfill to also support Promise.finally

Commits

  • Merge pull request #217 from Becklyn/new-promise-polyfill-v3 feeae96
  • Remove redundant global window assignment as the polyfill does it as well 572aacd
  • Replace promiscuous with promise-polyfill b666931

https://github.com/Becklyn/mojave/compare/v3.1.2...3.1.3

mojave -

Published by keichinger over 5 years ago

πŸ› Bug Fixes

  • Update Promise polyfill to also support Promise.finally

Commits

  • Merge pull request #216 from Becklyn/new-promise-polyfill 977e915
  • Remove redundant global window assignment as the polyfill does it as well e0e6771
  • Replace promiscuous with promise-polyfill for better support 649cac1

https://github.com/Becklyn/mojave/compare/4.3.1...4.3.2

mojave - 4.3.1

Published by keichinger over 5 years ago

✨ Improvements

  • Allow passing in array of event targets that are null to on and off.

πŸ› Bug Fixes

  • Fix mount's type definition for functional components to receive additional parameters.

Commits

  • Merge pull request #215 from Becklyn/events-ignore-null-elements 2d79cc9
  • Update tests to no longer check for an exception as we're TypeScript only and it'd fail on compilation 887e0e5
  • Extract custom type and be more specific about what event targets can be passed in 08b403e
  • Merge pull request #214 from Becklyn/mount-function-parameters 2ec92dc
  • Allow functional components to receive additional parameters 8b6e673
  • Remove redundant ifs, now that we're filtering inside the loop a5e196f
  • Filter out null elements from array of elements passed into on and off c7c4b3c

https://github.com/Becklyn/mojave/compare/4.3.0...4.3.1

mojave -

Published by apfelbox over 5 years ago

🎁 New Features

  • Added isChildElement().
  • Added scrollToElement().

✨ Improvements

  • Improved the return types of request(). Also several type guard helper functions were added, to more easily handle failed requests.

Commits

  • Fix changelog dad6fb5
  • Improve request implementation + add type guards (#213) 33f9558
  • Improve request implementation + add type guards 057b8d8
  • Added scroll to element (#211) 0ec6294
  • Added scroll to element 3d4b526
  • Add isChildElement (#212) 765bc9c
  • Add isChildElement 20008fc

https://github.com/Becklyn/mojave/compare/4.2.0...4.3.0

mojave -

Published by apfelbox over 5 years ago

🎁 New Features

  • Added parseElementAsJson() that automatically parses JSON from the content of a node and removes HTML escaping.
  • Added getScrollParent(), that fetches a scrollable parent of an element.
  • Added onNextAnimationFrame().

Commits

  • Add onNextAnimationFrame() (#210) 75c242a
  • Add onNextAnimationFrame. d1de5c8
  • Add getScrollParent() (#209) 966172b
  • Add getScrollParent 2c64732
  • Add parseElementAsJson() (#208) 3427918
  • Fix test file name d8ebd22
  • Use new function in mount fd7d75e
  • Add parseElementAsJson() 7366455
  • Fix ignore file 5f6a112
  • Add tests for safe parse json fbd2bfc

https://github.com/Becklyn/mojave/compare/v4.1.0...4.2.0

mojave -

Published by apfelbox over 5 years ago

🎁 New Features

  • Added new function hasOwnProperty().
  • Added a new hydrate option when mounting JSX components. It decides whether
    • hydrate: false/undefined -> the body is parsed as JSON (and passed as props) and the mounting node is removed
    • hydrate: true -> the mounting node is left untouched and preact mounts on this node (if possible). The content is not parsed as JSON.

Commits

  • Merge pull request #207 from Becklyn/simplify-test 34cb597
  • Simplify tests ff531be
  • Add hydrate mode + smaller bugfixes in mount + tests (#206) 159c62b
  • Clean up test environments f878eda
  • Add hydrate mode + smaller bugfixes in mount + tests 26ffe9e
  • New function: hasOwnProperty (#205) ae7a161
  • Update changelog faf78da
  • Fix ignore file 457e8e8
  • Add own hasOwnProp implementation 148aead
  • Merge pull request #204 from Becklyn/renovate/configure c1246d1
  • Use "replace" range strategy in renovate.json 5a797ab
  • Use range strategy auto a8b0a27
  • Add renovate.json e4d98f0
  • Reset renovate 85d9584
  • CS 307c7ca
  • Move renovate.json to .github + preserve semver b703401
  • Move config to package.json 7199edd
  • Properly clean up after JSX mount (#201) f03312d
  • Clean up mounted container 89e9848

https://github.com/Becklyn/mojave/compare/v4.0.3...v4.1.0

mojave -

Published by apfelbox over 5 years ago

This release has no user-facing changes.

πŸ› οΈ Internal

  • Properly clean build dir before releasing

Commits

  • Merge pull request #199 from Becklyn/improve 46dbf99
  • Update npm ignore 39bcb1b
  • Add clean command 85f0f00
  • Move types to @types directory a90cd43

https://github.com/Becklyn/mojave/compare/v4.0.2...v4.0.3

mojave -

Published by apfelbox over 5 years ago

This build is broken, jump directly to 4.0.3+

Fixed built files

Commits

  • Add prepublish script + prettify package.json d0ea611

https://github.com/Becklyn/mojave/compare/v4.0.1...v4.0.2

mojave -

Published by apfelbox over 5 years ago

This build is broken, jump directly to 4.0.3+

This release has (effectively) no user-faced changes.

✨ Improvements

  • don't pin dependencies

Commits

  • Update renovate.json 2537f67
  • Merge pull request #197 from Becklyn/unpin df397e9
  • Don’t use removed method 172bdc4
  • Unpin dependencies + update c62666a
  • Update GH infrastructure 8605ad1

https://github.com/Becklyn/mojave/compare/v4.0.0...v4.0.1

mojave - Republish of 3.1.1

Published by apfelbox over 5 years ago

3.1.1 was apparently a broken build, so use this one instead.

mojave -

Published by apfelbox over 5 years ago

πŸ’₯ Breaking Changes

  • IE 10 support was dropped.
  • The previous mount() and mountJsx() were removed and replaced with a new mount().
  • getData(element) and setData(element) were removed. Use element.dataset directly instead.
  • getAttr(element) was removed. Use element.getAttribute() directly instead.
  • addClass() and removeClass() were removed. Use element.classList directly instead.
  • preact was bumped to 10.x

🎁 New Features

  • Add safeParseJson()
  • New mount() and mountLazy()
  • You can now mount functions as well

Commits

  • Bump kaba version 093276d
  • Rename tsconfig + fix npmignore ad8de4f
  • Fix small BC in preact 078e838
  • Bump preact version 369014c
  • Merge pull request #192 from Becklyn/renovate/kaba-7.x a6190b0
  • Update dependency kaba to v7.2.0 e16cfb0
  • Finalize mount (#191) 2cbbe1e
  • Fix types 8cd8df9
  • Use importer() instead of native import e8e3456
  • Fix internal type dc1d661
  • Simplify types of mountLazy() f5cca67
  • Fix instantiation 9813493
  • Rename local tsconfig.json to avoid issues with kaba a3cb55f
  • Use correct types b50b9ab
  • Fix even more issues with using mount() 1058298
  • Update options implementation 18bde7f
  • Update signatures in mount() f0c4ad1
  • GH infrastructure + docs (#189) 2ed2c3e
  • Add rest of messages and unify changelog df51ab3
  • Add UPGRADE.md and update changelog bd33ce6
  • Add GH infrastructure 02ebfab
  • Prepare v4 (#188) f05483d
  • Fix more removed functions 3a70ede
  • Remove tests that are only testing types d9bd761
  • Fully remove data traces 248c88a
  • Fix gitignore d653ee6
  • Use smaller function 7df99a2
  • Remove obsolete functionality 69fdd72
  • Simplify Element.matches a2569dd
  • [WIP] Refactor mount + prepare 4.0 (#187) 6e4d050
  • Remove comment 1de51ee
  • Merge pull request #172 from Becklyn/renovate/qunit-2.x a8156b5
  • Rename test descriptions f9333ea
  • Pass additional arguments to mount function 6f9aa33
  • Add support for mountable functions 396aa13
  • Remove debug output a1ef712
  • Update mount() tests 514c4e2
  • Fix build with dynamic import() cd08be8
  • Fix imports & exports 21836fb
  • Move mount c763296
  • Make JSON function smaller 60e21bc
  • Simplify code by using internal functions 93d4228
  • Change default value of safeParseJson() 2f58e9e
  • Add safeParseJson() e9995a6
  • Update dependency qunit to v2.9.2 0b02baa

https://github.com/Becklyn/mojave/compare/v3.1.0...v4.0.0

mojave - 3.1.1: Deprecations for v4

Published by apfelbox over 5 years ago

⚠️ Broken build, go to 3.1.2 directly.

πŸ‘΅ Deprecations

  • Deprecated addClass()
  • Deprecated removeClass()
  • Deprecated setData()
  • Deprecated getData()
  • Deprecated hasData()
  • Deprecated getAllCustomData()

Commits

  • Add deprecation messages for everything that will be removed in v4 (#190) 5c6cf65
  • Add deprecation messages for everything that will be removed in v4 4a2ec6f

https://github.com/Becklyn/mojave/compare/v3.1.0...v3.1.1

mojave -

Published by keichinger over 5 years ago

🎁 New Features

  • Made quite a few methods accept a generic type to reduce unnecessary casting on the consuming side. E.g. let input = findOne<HTMLInputElement>(".my-input"); instead of let input = findOne(".my-input") as HTMLInputElement;
  • Added new request function that performs fetch requests and parses a standard response protocol

πŸ› οΈ Internal

  • Pinned TypeScript version to v3.4.5
  • Updated dependencies
  • Added npm script for dev mode

Commits

  • request() finalization (#184) c4a5bba
  • Add docs, only resolve for 2xx & 400 and add success return type. 4fd9f11
  • Clean up types 6168dd0
  • Add dev mode as npm run script fb95448
  • Make credentials configurable 3d6a495
  • Return reason why the request failed 4031919
  • Wrap request() data properly a604f80
  • Add request() function (#183) dcf902d
  • Add request function 254ed69
  • Make explicit when T returns to a list bad880b
  • Merge pull request #180 from Becklyn/generic-methods 4abdc14
  • Merge pull request #182 from Becklyn/renovate/typescript-3.x a724875
  • Update dependency typescript to v3.4.5 e957d72
  • Don't make parseHtml generic ebbf61d
  • Use same return type as list type 3008f8b
  • Merge pull request #181 from Becklyn/renovate/typescript-3.x 20b402f
  • Update dependency typescript to v3.4.3 075642a
  • Merge pull request #179 from Becklyn/renovate/typescript-3.x 02daf9c
  • Use generic parameter instead of very broad return type 385f399
  • Enable TypeScript for tests b042749
  • Update dependency typescript to v3.4.2 1423c1a
  • Merge pull request #178 from Becklyn/renovate/typescript-3.x 0695db6
  • Merge pull request #176 from Becklyn/renovate/unfetch-4.x f3bb98a
  • Merge pull request #171 from Becklyn/renovate/kaba-7.x 2a67617
  • Update dependency typescript to v3.3.4000 85c1b3d
  • Update dependency unfetch to v4.1.0 b020d69
  • Update dependency kaba to v7.1.0 ac24119
  • Merge pull request #174 from Becklyn/renovate/pin-dependencies 1929994
  • Pin dependency typescript to 3.3.3333 645cd55

https://github.com/Becklyn/mojave/compare/3.0.6...v3.1.0

mojave - 3.0.6

Published by keichinger over 5 years ago

πŸ› Bug Fixes

  • Improve handling of element properties that have direct element getters/setters.
mojave - 3.0.5

Published by apfelbox over 5 years ago

πŸ› Bug Fixes

  • fix and unify types of create*Element()
mojave - 3.0.4: bugfix release

Published by apfelbox almost 6 years ago

πŸ› Bug Fixes

  • Fixed an issue where mount was passing the wrong parameters when it found more than one element
mojave - 3.0.3: context for mount

Published by apfelbox almost 6 years ago

✨ Improvements

  • mount*() now has a new optional parameter, where you can specify in which container this component should be mounted into.
mojave -

Published by apfelbox almost 6 years ago

mojave -

Published by apfelbox almost 6 years ago

mojave - 2.4.1

Published by apfelbox over 6 years ago

✨ Improvements

  • Don't break in mountJsx*() if the tag is empty
Package Rankings
Top 7.82% on Npmjs.org
Related Projects