From 74bcfa188d8f7403b1dd560c8b0720b3663d4545 Mon Sep 17 00:00:00 2001 From: Bj Date: Wed, 29 May 2019 12:09:45 -0400 Subject: [PATCH 1/4] Enhance README --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e225a86..4f94519 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Using angle bracket invocation, available in Ember 3.4+ Or you can control when each message is closed: ```js -let message = this.notify.alert('You can control how long it\'s displayed', { +let message = this.notify.alert(`You can control how long it's displayed`, { closeAfter: 10000 // or set to null to disable auto-hiding }); ``` @@ -75,7 +75,7 @@ this.notify.info({ html: '
Hooray!
' }); Rounded corners, if that's your thing: ```js -this.notify.alert('This one\'s got rounded corners.', { +this.notify.alert(`This one's got rounded corners.`, { radius: true }); ``` @@ -103,7 +103,7 @@ The others you will need to provide a `source` property, so secondary containers {{ember-notify source=someProperty}} ``` -Using angle bracket invocation +Using angle bracket invocation: ```hbs @@ -137,14 +137,14 @@ You can pass a block with template you want to use for each message (instead of {{/ember-notify}} ``` -Using angle bracket invocation +Using angle bracket invocation: ```hbs - + close from block - + {{message.text}} @@ -159,16 +159,16 @@ you are using *Closure Actions* syntax passing the action (e. g. ` to top level element--> + {{ember-notify defaultClass="custom-notify"}} ``` -Using angle bracket invocation +Using angle bracket invocation: ```hbs - - + + ``` From c70c0fce7d20a37a9d4d7d324da0a9d9b0a5f6c7 Mon Sep 17 00:00:00 2001 From: Bj Date: Wed, 29 May 2019 12:22:41 -0400 Subject: [PATCH 2/4] Update changelog --- CHANGELOG.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a7d62a..51fa48f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## v6.0 + - Don't require jquery #119 + - Document `importCss` #124 + - Document angle bracket invocations #128 + - Transfer addon to `adopted-ember-addons` #130 + - Fix notifications in IE #125 + - Use SVG for the badge #118 + - Update modules to new style of import #131 + - Update README with new `inject` import #126 + - Cleanup code #132 + - Add support for unique identifier #132 + - Update `ember` blueprints to `3.10` #133 + - Drop support for `ember` < `3.4` #133 + - Lint templates, fix deprecations #133 + - Cleanup code and update documentation #134 + - Refactor to avoid using `observer` #135 + - Remove `Notify.testing` and custom `Runner` #135 + - Update changelog, release `6.0.0` #136 + ## v5.0 - The default theme is now compatible with Foundation 6. If you want to use Foundation 5 then use `{{ember-notify messageStyle='foundation-5'}}` From 1502cc33d4931eccc7364b6b7fe1d44b504fdf59 Mon Sep 17 00:00:00 2001 From: Bj Date: Wed, 29 May 2019 12:39:55 -0400 Subject: [PATCH 3/4] Remove unneeded `reopenClass` --- addon/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/addon/index.js b/addon/index.js index 701d2fe..ecc5a4c 100644 --- a/addon/index.js +++ b/addon/index.js @@ -55,9 +55,6 @@ let Notify = Service.extend({ this.pending = []; } } -}).reopenClass({ - // set to true to disable testing optimizations that are enabled when Ember.testing is true - testing: false }); export default Notify.reopenClass({ From 1d7f6fbdabeb1951c139fde9b86121b574e9857e Mon Sep 17 00:00:00 2001 From: Bj Date: Wed, 29 May 2019 12:40:13 -0400 Subject: [PATCH 4/4] Release `6.0.0` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4ea8368..34d47e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-notify", - "version": "5.2.1", + "version": "6.0.0", "description": "Easy, wee little notifications", "keywords": [ "ember-addon"