abstract-state-router
Advanced tools
Comparing version 7.5.0 to 7.5.1
@@ -438,3 +438,3 @@ 'use strict'; | ||
); | ||
const statesNamesToCheck = [ ...create, ...destroy ]; | ||
const statesNamesToCheck = Array.from(new Set([ ...create, ...destroy ]).values()); | ||
const canLeaveState = statesNamesToCheck.every(stateName => { | ||
@@ -441,0 +441,0 @@ const state = prototypalStateHolder.get(stateName); |
{ | ||
"name": "abstract-state-router", | ||
"version": "7.5.0", | ||
"version": "7.5.1", | ||
"description": "Like ui-router, but without all the Angular. The best way to structure a single-page webapp.", | ||
@@ -5,0 +5,0 @@ "main": "bundle.js", |
@@ -27,5 +27,5 @@ **[Changelog](./changelog.md) • [Join the chat on Discord](https://discord.gg/G8FrErC) • [API documentation](#api)** | ||
This project is currently published as CommonJS with modern JS syntax. | ||
This project is currently published as CommonJS with modern JS syntax. If you're targeting browsers more than 2-3 years old, I assume you're already compiling your code for your target environments. | ||
If you're supporting old browsers, you'll need to compile to whatever older syntax you target and use polyfills for `Promise` and `Object.assign`. Check out [polyfill.io](https://polyfill.io/) for automatic polyfills, it makes life super-easy. | ||
If you're supporting really old browsers pre-ES2015 browsers, you'll need polyfills for `Promise` and `Object.assign`. Check out [polyfill.io](https://polyfill.io/) for automatic polyfills, it makes life super-easy. | ||
@@ -44,14 +44,8 @@ # Current renderer implementations | ||
Using npm + your favorite CommonJS bundler is easiest. | ||
```sh | ||
npm install abstract-state-router -S | ||
npm i abstract-state-router | ||
``` | ||
You can also [download the stand-alone build from bundle.run](https://bundle.run/abstract-state-router@latest). If you include it in a `<script>` tag, a `abstractStateRouter` function will be included on the global scope. | ||
Your CommonJS-supporting bundler should be able to `import make_state_router from 'abstract-state-router'` without issue. | ||
Want to use the abstract-state-router without messing with bundlers or package managers? Check out the minimum-viable-project code (in a single HTML file!) over at the [simplest-abstract-state-router-usage](https://github.com/TehShrike/simplest-abstract-state-router-usage). | ||
# API | ||
@@ -58,0 +52,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91631
397