Releases: visionmedia/page.js
1.11.5
1.11.4
1.11.3
1.11.2
1.11.1
1.11.0
This is a minor release that adds the clickHandler property.
1.10.2
1.10.1
1.10.0
This is a minor release, adding the new page.create()
API, for creating distinct page objects.
Calling page.create(options) create a new page function that behaves just like the global page. It contains its own internal state, options, and event handlers. You can target the page to another window, like an iframe or a popup, if you want.
var newPage = page.create({
window: someIframe.contentWindow
});
The main reason for adding this feature was to clean up or testing infrastructure. Numerous things had to be done in the past to make sure each test was cleanly in isolation. That stuff is no longer necessary now that we can just create a new page instance for each test.
1.9.0
This is a minor release, adding a new ES module bundle to the distributed package. This module is available as page.mjs
. It contains one export, the default export which is the usual page object.
<script type="module">
import page from "//unpkg.com/page/page.mjs";
page('/home', () => {
showHome();
});
page();
</script>