Skip to content

Commit

Permalink
⬆️ v3.9.0...v3.10.1 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadnoslen authored Apr 17, 2022
1 parent 188cff9 commit e7a88b3
Show file tree
Hide file tree
Showing 11 changed files with 889 additions and 836 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['ember'],
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set Node.js
uses: actions/setup-node@master
with:
node-version: 10.24.1
node-version: 12.22.8

- name: Get yarn cache
id: yarn-cache
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 10.24.1
nodejs 12.22.8
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: node_js
node_js:
# we recommend testing addons with the same minimum supported node version as Ember CLI
# so that your addon works for all apps
- '6'
- '8'

sudo: false
dist: trusty
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ A textbox that will guess the date you want and assign it to your model or query

- Ember.js v2.18 or above
- Ember CLI v2.13 or above
- Node.js v8 or above

## Installation

Expand Down
28 changes: 13 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,25 @@
"update-browserslist": "npx browserslist@latest --update-db"
},
"dependencies": {
"ember-cli-babel": "^7.1.2",
"ember-cli-babel": "^7.7.3",
"ember-cli-node-assets": "^0.2.2"
},
"devDependencies": {
"@ember/jquery": "^1",
"@ember/jquery": "^2.0.0",
"@ember/optional-features": "^2.0.0",
"bootstrap": "~3.4.1",
"bootstrap-sass": "~3.4.3",
"bootswatch": "~3.4.1",
"broccoli-asset-rev": "^2.7.0",
"broccoli-asset-rev": "^3.0.0",
"ember-auto-import": "~1.11",
"ember-cli": "~3.9.0",
"ember-cli": "~3.10.1",
"ember-cli-dependency-checker": "^3.1.0",
"ember-cli-deploy": "^1.0.2",
"ember-cli-deploy-build": "^1.1.1",
"ember-cli-deploy-gzip": "^1.0.1",
"ember-cli-deploy-s3": "^3.1.0",
"ember-cli-eslint": "^4.2.3",
"ember-cli-htmlbars": "^3.0.0",
"ember-cli-eslint": "^5.1.0",
"ember-cli-htmlbars": "^3.0.1",
"ember-cli-htmlbars-inline-precompile": "^3.0.2",
"ember-cli-inject-live-reload": "^2.1.0",
"ember-cli-moment-shim": "^3.7.1",
Expand All @@ -79,32 +79,30 @@
"ember-cli-template-lint": "^1.0.0-beta.1",
"ember-cli-text-support-mixins": "~3.9.0",
"ember-cli-uglify": "^3.0.0",
"ember-cli-update": "0.56",
"ember-cli-update": "^1.0.1",
"ember-disable-prototype-extensions": "^1.1.3",
"ember-export-application-global": "^2.0.0",
"ember-load-initializers": "^2.1.2",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-moment": "^7.8.0",
"ember-qunit": "^3.4.1",
"ember-qunit": "^4.4.1",
"ember-resolver": "^8.0.3",
"ember-route-action-helper": "^2.0.6",
"ember-source": "~3.9.0",
"ember-source": "~3.10.0",
"ember-source-channel-url": "^3.0.0",
"ember-try": "^1.0.0",
"ember-welcome-page": "^3.0.0",
"eslint-plugin-ember": "^5.2.0",
"eslint-plugin-ember": "^6.2.0",
"eslint-plugin-node": "^11.1.0",
"font-awesome": "4.7",
"keyevent": "^1.1.0",
"loader.js": "^4.7.0",
"mockdate": "^3.0.5",
"prettier": "^2.6.2",
"qunit-dom": "^0.8.0",
"sass": "~1.48",
"qunit-dom": "^0.8.4",
"sass": "^1.50.0",
"sugar-date": "^2.0.4"
},
"engines": {
"node": "6.* || 8.* || >= 10.*"
"node": "8.* || >= 10.*"
},
"ember-addon": {
"configPath": "tests/dummy/config",
Expand Down
16 changes: 14 additions & 2 deletions tests/dummy/app/controllers/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
import { isPresent } from '@ember/utils';
import { computed } from '@ember/object';
import Controller from '@ember/controller';
import { computed } from '@ember/object';
import { isPresent } from '@ember/utils';

export default Controller.extend({
actions: {
submitDate() {
const dateString = isPresent(this.submittedDate) ? this.submittedDate.toString() : null;
window.alert(`Form was submitted and this is the String value: ${dateString}`);
return false;
},
submitIso8601() {
window.alert(`Form was submitted and this is the String value: ${this.submittedIso8601}`);
return false;
},
},

ambiguousFuture: null,

ambiguousFutureISOString: computed('ambiguousFuture', function () {
Expand Down
16 changes: 1 addition & 15 deletions tests/dummy/app/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
import { hash } from 'rsvp';
import { isPresent } from '@ember/utils';

import Route from '@ember/routing/route';

export default Route.extend({
actions: {
submitDate() {
const dateString = isPresent(this.get('controller.submittedDate'))
? this.get('controller.submittedDate').toString()
: null;
window.alert(`Form was submitted and this is the String value: ${dateString}`);
return false;
},
submitIso8601() {
window.alert(`Form was submitted and this is the String value: ${this.get('controller.submittedIso8601')}`);
return false;
},
},

model() {
return hash({
naftaSigned: new Date(1987, 9, 3),
Expand Down
21 changes: 19 additions & 2 deletions tests/dummy/app/templates/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
date=demoDate
classNames="form-control"
displayFormat="LLLL"
enterSubmitsForm?=false
placeholder="Try typing a date and then press enter."
aria-describedby="demo-date-addon"
}}
Expand All @@ -54,6 +55,7 @@
date=ambiguousFuture
classNames="form-control"
displayFormat="LLLL"
enterSubmitsForm?=false
future?=true
placeholder="Try an ambiguous date like `jan` or `wed`"
aria-describedby="demo-date-addon"
Expand All @@ -79,6 +81,7 @@
{{input-date
classNames="form-control"
date=model.naftaSigned
enterSubmitsForm?=false
placeholder="You cleared the date. Now we don't know when NAFTA was signed."
}}
</div>
Expand Down Expand Up @@ -107,6 +110,7 @@
classNames="form-control"
date=dateWithTimezone
displayFormat="llll z"
enterSubmitsForm?=false
timezone="Europe/Rome"
placeholder="Try typing a date and then press enter."
aria-describedby="date-addon"
Expand Down Expand Up @@ -144,6 +148,7 @@
<div class="input-group">
{{input-date
classNames="form-control"
enterSubmitsForm?=false
placeholder="You cleared the date. Try entering another."
date=model.now
displayFormat="LT"
Expand Down Expand Up @@ -171,6 +176,7 @@
<div class="input-group">
{{input-date
classNames="form-control"
enterSubmitsForm?=false
placeholder="You cleared the date. Try entering another."
date=model.now
displayFormat="LTS"
Expand All @@ -191,6 +197,7 @@
<div class="input-group">
{{input-date
classNames="form-control"
enterSubmitsForm?=false
placeholder="You cleared the date. Try entering another."
date=model.now
displayFormat="L"
Expand All @@ -211,6 +218,7 @@
<div class="input-group">
{{input-date
classNames="form-control"
enterSubmitsForm?=false
placeholder="You cleared the date. Try entering another."
date=model.now
displayFormat="l"
Expand All @@ -231,6 +239,7 @@
<div class="input-group">
{{input-date
classNames="form-control"
enterSubmitsForm?=false
placeholder="You cleared the date. Try entering another."
date=model.now
displayFormat="LL"
Expand All @@ -251,6 +260,7 @@
<div class="input-group">
{{input-date
classNames="form-control"
enterSubmitsForm?=false
placeholder="You cleared the date. Try entering another."
date=model.now
displayFormat="ll"
Expand All @@ -271,6 +281,7 @@
<div class="input-group">
{{input-date
classNames="form-control"
enterSubmitsForm?=false
placeholder="You cleared the date. Try entering another."
date=model.now
displayFormat="LLL"
Expand All @@ -291,6 +302,7 @@
<div class="input-group">
{{input-date
classNames="form-control"
enterSubmitsForm?=false
placeholder="You cleared the date. Try entering another."
date=model.now
displayFormat="lll"
Expand All @@ -311,6 +323,7 @@
<div class="input-group">
{{input-date
classNames="form-control"
enterSubmitsForm?=false
placeholder="You cleared the date. Try entering another."
date=model.now
displayFormat="LLLL"
Expand All @@ -331,6 +344,7 @@
<div class="input-group">
{{input-date
classNames="form-control"
enterSubmitsForm?=false
placeholder="You cleared the date. Try entering another."
date=model.now
displayFormat="llll"
Expand All @@ -353,7 +367,7 @@
</fieldset>
</div>

<form class="form" onsubmit={{action (route-action "submitDate")}}>
<form class="form" onsubmit={{action "submitDate"}}>
<fieldset>
<legend>Submitting In A Form</legend>
<div class="form-group">
Expand Down Expand Up @@ -406,6 +420,7 @@
<label class="control-label">Change The Date And Check The Address Bar</label>
{{input-iso8601
classNames="form-control"
enterSubmitsForm?=false
placeholder="Try another date. It appears as `dateAsParam` in the page url."
iso8601=dateAsParam
displayFormat="LLL Z"
Expand All @@ -424,6 +439,7 @@
<label class="control-label">Choose Any Date And See It In The URL</label>
{{input-iso8601
classNames="form-control"
enterSubmitsForm?=false
placeholder="Choose a date..."
iso8601=wasEmptyUntilNow
displayFormat="LLL Z"
Expand All @@ -447,6 +463,7 @@
<label class="control-label">Choose A Date And See It In The URL</label>
{{input-iso8601
classNames="form-control"
enterSubmitsForm?=false
iso8601=iso8601WithTimezone
displayFormat="llll z"
timezone="Pacific/Honolulu"
Expand All @@ -462,7 +479,7 @@
</fieldset>
</div>

<form class="form" onsubmit={{action (route-action "submitIso8601")}}>
<form class="form" onsubmit={{action "submitIso8601"}}>
<fieldset>
<legend>Submitting In A Form</legend>
<div class="form-group">
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/config/ember-cli-update.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packages": [
{
"name": "ember-cli",
"version": "3.9.0",
"version": "3.10.1",
"blueprints": [
{
"name": "addon",
Expand Down
Loading

0 comments on commit e7a88b3

Please sign in to comment.