From 088f04ab97b2d5ebf99bfe7fc1b92116e2c25ce6 Mon Sep 17 00:00:00 2001 From: Matt Levy Date: Sun, 2 Oct 2022 19:34:18 +0100 Subject: [PATCH] feat: emit outlet-change event --- .github/dependabot.yml | 11 + .ncurc.json | 3 + CHANGELOG.md | 9 + README.md | 4 +- cypress.config.mjs | 13 + cypress.json | 10 - .../routed-app-child-outlets/app.cy.js} | 0 .../routed-app-error-handler/app.cy.js} | 0 .../app.cy.js} | 0 .../routed-app-guards/app.cy.js} | 0 .../routed-app-hash-error-handler/app.cy.js} | 0 .../app.cy.js} | 0 .../routed-app-hash-guards/app.cy.js} | 0 .../routed-app-hash-redirects/app.cy.js} | 0 .../routed-app-hash-url-params/app.cy.js} | 0 .../routed-app-hash/app.cy.js} | 0 .../routed-app-lazy-views/app.cy.js} | 0 .../routed-app-login/app.cy.js} | 0 .../routed-app-redirects/app.cy.js} | 0 .../routed-app-sticky-outlets/app.cy.js} | 0 .../routed-app-url-params/app.cy.js} | 0 .../app.spec.js => e2e/routed-app/app.cy.js} | 0 cypress/support/{index.js => e2e.js} | 0 dist/router.mjs | 2 +- package-lock.json | 804 ++++++++++-------- package.json | 13 +- src/router.mjs | 50 ++ src/util/emit.mjs | 18 + 28 files changed, 570 insertions(+), 367 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .ncurc.json create mode 100644 cypress.config.mjs delete mode 100644 cypress.json rename cypress/{integration/routed-app-child-outlets/app.spec.js => e2e/routed-app-child-outlets/app.cy.js} (100%) rename cypress/{integration/routed-app-error-handler/app.spec.js => e2e/routed-app-error-handler/app.cy.js} (100%) rename cypress/{integration/routed-app-guards-resolve-route/app.spec.js => e2e/routed-app-guards-resolve-route/app.cy.js} (100%) rename cypress/{integration/routed-app-guards/app.spec.js => e2e/routed-app-guards/app.cy.js} (100%) rename cypress/{integration/routed-app-hash-error-handler/app.spec.js => e2e/routed-app-hash-error-handler/app.cy.js} (100%) rename cypress/{integration/routed-app-hash-guards-resolve-route/app.spec.js => e2e/routed-app-hash-guards-resolve-route/app.cy.js} (100%) rename cypress/{integration/routed-app-hash-guards/app.spec.js => e2e/routed-app-hash-guards/app.cy.js} (100%) rename cypress/{integration/routed-app-hash-redirects/app.spec.js => e2e/routed-app-hash-redirects/app.cy.js} (100%) rename cypress/{integration/routed-app-hash-url-params/app.spec.js => e2e/routed-app-hash-url-params/app.cy.js} (100%) rename cypress/{integration/routed-app-hash/app.spec.js => e2e/routed-app-hash/app.cy.js} (100%) rename cypress/{integration/routed-app-lazy-views/app.spec.js => e2e/routed-app-lazy-views/app.cy.js} (100%) rename cypress/{integration/routed-app-login/app.spec.js => e2e/routed-app-login/app.cy.js} (100%) rename cypress/{integration/routed-app-redirects/app.spec.js => e2e/routed-app-redirects/app.cy.js} (100%) rename cypress/{integration/routed-app-sticky-outlets/app.spec.js => e2e/routed-app-sticky-outlets/app.cy.js} (100%) rename cypress/{integration/routed-app-url-params/app.spec.js => e2e/routed-app-url-params/app.cy.js} (100%) rename cypress/{integration/routed-app/app.spec.js => e2e/routed-app/app.cy.js} (100%) rename cypress/support/{index.js => e2e.js} (100%) create mode 100644 src/util/emit.mjs diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..73c3047 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + + - package-ecosystem: "npm" + directory: "/site" + schedule: + interval: "weekly" diff --git a/.ncurc.json b/.ncurc.json new file mode 100644 index 0000000..85fc22d --- /dev/null +++ b/.ncurc.json @@ -0,0 +1,3 @@ +{ + "reject": ["standard"] +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e71c02..6817560 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.2.0] - 2022-10-02 + +### New +- Emit `outlet-change` event when an outlet is populated + +### Updates +- Uplift devDependencies +- Convert e2e tests to Cypress v10.x + ## [3.1.1] - 2021-11-16 ### Fixes diff --git a/README.md b/README.md index 9847f0d..945cae5 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ Create an `index.html` file and copy the following between the `` tags.