Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ember-one-way-controls

dockyard399.9kMIT3.1.0TypeScript support: included

Native one way controls

ember-addon

readme

DEPRECATED: ember-one-way-controls

ember-one-way-controls was built by DockYard, contact us for expert Ember.js consulting.

This project has been deprecated. When Ember 1.13 came out it became possible to use the native <input> element with one-way bindings. Unfortunately, that version contained a bug that made the cursor jump to the end of the text in the input. This addon was built to correct that bug.

That bug has since been fixed in Ember 2.3.1. In the meantime, we had added some other form components to the addon, like a radio component, a textarea component and a select component. This kept the addon useful to us for a while.

Recently we started noticing that we only really needed the select component from this addon. This made us decide to extract this component to its own addon and deprecate this addon.

The new addon is called ember-one-way-select.

You can find the README of the old version here.

Migrating

one-way-input

{{! old }}
{{one-way-input myValue update=(action (mut myValue))}}

{{! new }}
<input value={{myValue}} oninput={{action (mut myValue) value="target.value"}}>

one-way-textarea

{{! old }}
{{one-way-textarea myValue update=(action (mut myValue))}}

{{! new }}
<textarea value={{myValue}} oninput={{action (mut myValue) value="target.value"}}></textarea>

one-way-checkbox

{{! old }}
{{one-way-checkbox myValue update=(action (mut myValue))}}

{{! new }}
<input type="checkbox" checked={{myValue}} onclick={{action (mut myValue) value="target.checked"}}>

one-way-radio

{{! old }}
{{one-way-radio myValue option=myOption update=(action (mut myValue))}}

{{! new }}
<input type="radio" checked={{eq myValue myOption}} onclick={{action (mut myValue) myOption}}>

DockYard, Inc © 2016

@dockyard

Licensed under the MIT license

changelog

Change Log

v0.7.13 (2018-01-02)

:bug: Bug Fix

  • #297 Ensure templates are precompiled properly on ember-cli prior to 2.12. (@rwjblue)

:house: Internal

  • #296 Clean up and simplify setupRenderingContext. (@rwjblue)

Committers: 1

v0.7.12 (2017-12-31)

:rocket: Enhancement

  • #295 Use "real" rootElement for DOM interaction helpers. (@rwjblue)
  • #292 Refactor settled to leverage waitUntil. (@rwjblue)

:memo: Documentation

:house: Internal

Committers: 1

v0.7.11 (2017-12-27)

:memo: Documentation

Committers: 1

v0.7.10 (2017-12-20)

:rocket: Enhancement

  • #282 Refactor setupRenderingContext so that element is stable after setup. (@rwjblue)

:house: Internal

Committers: 1

v0.7.9 (2017-12-16)

:rocket: Enhancement

Committers: 1

v0.7.8 (2017-12-15)

:bug: Bug Fix

  • #276 Fix issues with IE11. All tests now passing on IE11, Chrome, FireFox, Edge, and Safari. 🎉 (@cibernox)

Committers: 1

v0.7.7 (2017-12-15)

:bug: Bug Fix

  • #275 Split cleanup into two buckets. Ensure tests can be ran on IE11. (@rwjblue)

:house: Internal

  • #274 Ensure vendor tree is transpiled when developing addon.. (@rwjblue)

Committers: 1

v0.7.6 (2017-12-15)

:bug: Bug Fix

:house: Internal

Committers: 2

v0.7.5 (2017-12-15)

:rocket: Enhancement

:bug: Bug Fix

  • #264 Wait for pending AJAX in acceptance tests. (@rwjblue)

:house: Internal

  • #269 Use nextTick and nextTickPromise throughout codebase. (@rwjblue)

Committers: 2

v0.7.4 (2017-12-13)

:rocket: Enhancement

  • #262 settled: Ramp up timeout values for isSettled() check. (@Turbo87)

:bug: Bug Fix

  • #263 Refactor settled to avoid triggering a new run-loop.. (@rwjblue)

:house: Internal

  • #261 Cleanup settle() integration tests. (@Turbo87)
  • #257 Run yarn lint and yarn test from the same job in first stage.. (@rwjblue)

Committers: 2

v0.7.3 (2017-12-05)

Full Changelog

Implemented enhancements:

  • Refactor isSettled to allow better insight into current state. #251 (rwjblue)
  • Expose isSettled utility function. #248 (rwjblue)

Fixed bugs:

Closed issues:

  • Remove ember-beta from allowed failures. #249
  • moduleForModel doesn't play nicely with application serializer. #165
  • Unit testing components with new attrs hash #63
  • Support non ember-data models #29
  • Generated controller test fails to lookup another controller factory (through needs) #8
  • Unit test for model requires inclusion of any other "referenced" model into needs. #6

Merged pull requests:

v0.7.2 (2017-11-30)

Full Changelog

Implemented enhancements:

  • Implement validateErrorHandler utility. #247 (rwjblue)

Closed issues:

  • Leaking states between tests (because of acceptance tests) #243
  • Allowing rejected promises in integration tests #197

v0.7.1 (2017-11-11)

Full Changelog

Implemented enhancements:

  • Automatically set resolver when setApplication is called. #242 (rwjblue)

v0.7.0 (2017-11-11)

Full Changelog

Implemented enhancements:

  • Rename to @ember/test-helpers #240
  • Rename to @ember/test-helpers. #241 (rwjblue)

v0.7.0-beta.11 (2017-11-10)

Full Changelog

Implemented enhancements:

  • Use Application.buildInstance if possible to create owner for use in tests. #234

Merged pull requests:

v0.7.0-beta.10 (2017-11-05)

Full Changelog

Implemented enhancements:

  • Make setupContext / teardownContext async #235

Merged pull requests:

  • Make setup and teardown of new API async. #236 (rwjblue)

v0.7.0-beta.9 (2017-11-05)

Full Changelog

Implemented enhancements:

  • Add pauseTest and resumeTest functionality. #233 (rwjblue)

Fixed bugs:

  • Broken tests in v0.7.0-beta.8 #231

Closed issues:

  • this.on() no longer supported in rendering tests? #232

v0.7.0-beta.8 (2017-10-20)

Full Changelog

Fixed bugs:

  • New setupRenderingTest seems to recreate the \#ember-testing-container for every test #228
  • Ensure ember-testing-container is reset properly. #229 (rwjblue)
  • Set Ember.testing only while actually running a test. #227 (rwjblue)

Closed issues:

  • TypeError: Cannot read property 'resolveRegistration' of undefined #230

v0.7.0-beta.7 (2017-10-17)

Full Changelog

Fixed bugs:

  • Ensure testing elements are properly reset/cleared. #226 (rwjblue)

v0.7.0-beta.6 (2017-10-17)

Full Changelog

Implemented enhancements:

Merged pull requests:

  • Update README for new API iteration. #225 (rwjblue)
  • Continue to flesh out more tests for new API's. #224 (rwjblue)
  • Move setContext into setupContext. #221 (rwjblue)

v0.7.0-beta.5 (2017-10-16)

Full Changelog

Implemented enhancements:

  • Expose element in component integration tests #184
  • Deprecate this.container and this.registry when using Ember 2.3.0. #120
  • Way to use extended EventDispatcher #20
  • Expose test helpers for component unit tests #3
  • Basic implementation for new testing API. #220 (rwjblue)

Fixed bugs:

  • Tests fail after upgrading to 0.5.17 - unable to find custom store #130
  • Document "integration: true" and "needs" #55

Closed issues:

  • Simplify support matrix. #206
  • contextualizeCallbacks prevents custom test instance helpers #204
  • 0.6.3 is breaking existing tests #203
  • initializers affect component integration tests if there is an acceptance test #146
  • Service injection fails in integration tests #109
  • Integration test with router injected into component #103
  • Failing test suite under 0.5.9 #97
  • Inject integration test helpers into component integration tests. #67
  • add-ons unit tests fail to retrieve custom factories #54
  • View-rendering with {{outlet}} in views template fails #36
  • If ED is being used and integration:true then I should be able to access the store #31
  • Working with new Container/Registry Implementation #7

Merged pull requests:

  • Use yarn instead of npm #219 (Turbo87)
  • Reorganize repo internals to prepare for RFC 232 implementation. #218 (rwjblue)

v0.7.0-beta.4 (2017-10-10)

Full Changelog

Closed issues:

  • Release via TravisCI #214

Merged pull requests:

v0.7.0-beta.3 (2017-10-08)

Full Changelog

Closed issues:

  • Convert to Ember addon #210

v0.7.0-beta.2 (2017-10-07)

Full Changelog

Implemented enhancements:

  • Autoregister event dispatcher in unit tests #205 (cibernox)

v0.7.0-beta.1 (2017-10-07)

Full Changelog

Implemented enhancements:

  • Migrate to an addon. #213 (rwjblue)
  • Ensure RSVP promises do not need manual Ember.run wrapping. #201 (rwjblue)
  • Updates to ensure ember-data from npm works properly. #200 (rwjblue)

Closed issues:

  • Document resolver option for modules #208

Merged pull requests:

v0.6.3 (2017-03-04)

Full Changelog

Fixed bugs:

  • Import require (avoid using global require). #198 (rwjblue)

v0.6.2 (2017-02-14)

Full Changelog

Fixed bugs:

  • Deprecation Warning thrown Even when needs:\[\] is passed #195

Merged pull requests:

  • Deprecation Warning thrown with needs:\[\] #196 (canufeel)

v0.6.1 (2017-01-24)

Full Changelog

Implemented enhancements:

  • Ember 2.12: Use factoryFor instead of lookupFactory, if available #194 (bwbuchanan)

Closed issues:

  • Release v0.6.0 #192
  • Integration component test issues after v0.5.31 #176

v0.6.0 (2016-12-21)

Full Changelog

Implemented enhancements:

  • JSHint not catching missing semicolon's aka. replace JSHint with ESLint #70
  • Replace JSHint with ESLint #190 (Turbo87)

Closed issues:

  • Use ESLint instead of JSHint #189
  • Update Ember CLI #185

Merged pull requests:

v0.6.0-beta.1 (2016-11-27)

Full Changelog

Implemented enhancements:

  • Publish to npm #58

Closed issues:

  • test-module-for-integration.js #182

Merged pull requests:

v0.5.34 (2016-10-03)

Full Changelog

Closed issues:

  • Reset test elements instead of emptying them #178
  • Regression with v0.5.26 #161

Merged pull requests:

  • Reset ember-testing div to initial state on teardown #180 (trentmwillis)
  • Fix the build (skipping a willDestroyElement test) for canary builds. #179 (rwjblue)

v0.5.33 (2016-08-18)

Full Changelog

Closed issues:

  • Ability to set Resolver per-module #173
  • Callback context is inconsistent #133

Merged pull requests:

v0.5.32 (2016-08-16)

Full Changelog

Merged pull requests:

  • Allow test frameworks to set context to use. #175 (rwjblue)

v0.5.31 (2016-08-03)

Full Changelog

Merged pull requests:

  • Enable usage when jQuery is not present. #172 (rwjblue)
  • Avoid duplication between test-module-for-component and test-module-for-integration. #171 (rwjblue)

v0.5.30 (2016-08-01)

Full Changelog

Merged pull requests:

v0.5.29 (2016-08-01)

Full Changelog

Merged pull requests:

  • Start working on making the alpha pass. #168 (rwjblue)

v0.5.28 (2016-07-30)

Full Changelog

Merged pull requests:

  • Call Ember.ApplicationInstance.setupRegistry if present. #167 (rwjblue)
  • Updating Package Versions within current range #166 (elwayman02)

v0.5.27 (2016-06-20)

Full Changelog

Closed issues:

  • Attempting to inject an unknown injection: router:main when running unit or integration tests for controllers or routes. #151

Merged pull requests:

  • Fix the module-for-integration tests on Ember canary. #163 (rwjblue)
  • export unsetContext from the main module #162 (CodeOfficer)

v0.5.26 (2016-06-07)

Full Changelog

Closed issues:

  • Minor version 0.5.24 -> 0.5.25 broke my tests #159

Merged pull requests:

  • Fix regression related to DOM structure. #160 (rwjblue)

v0.5.25 (2016-06-06)

Full Changelog

Closed issues:

  • can't test customEvents #75

Merged pull requests:

  • Refactor moduleForComponent rendering to use outlet system. #158 (rwjblue)

v0.5.24 (2016-05-25)

Full Changelog

Closed issues:

  • How should mutliple render calls in one test behave? #111

Merged pull requests:

  • Ensure prior render is cleared when calling this.render. #155 (rwjblue)

v0.5.23 (2016-05-05)

Full Changelog

Closed issues:

  • Component context should be cleaned up between integration tests? #149
  • Check Ember.Test.waiters in wait helper #139

Merged pull requests:

v0.5.22 (2016-01-31)

Full Changelog

Merged pull requests:

  • Test ember-data-2.3 in addon mode. #148 (rwjblue)
  • Add clearRender method to allow testing of willDestroyElement. #147 (rwjblue)
  • Add moduleForIntegration #144 (matteddy)

v0.5.21 (2016-01-24)

Full Changelog

Merged pull requests:

  • Avoid using DS.JSONAPIAdapter if module is present. #143 (rwjblue)
  • Load the JSONAPIAdapter out of require instead of assuming its on a D… #142 (bmac)
  • Add support for Ember Test registered waiters to wait helper #141 (adamjmcgrath)

v0.5.20 (2016-01-23)

Full Changelog

Closed issues:

  • Global DS with Ember Data 2.3 #140

Merged pull requests:

  • Make build-registry work correctly when ember-data addon is used #138 (pangratz)
  • Change callback context to deprecate test module properties #136 (trentmwillis)
  • Add moduleForAcceptance #129 (matteddy)

v0.5.19 (2015-12-12)

Full Changelog

v0.5.18 (2015-12-12)

Full Changelog

Closed issues:

  • Return passed value from set and setProperties on integration tests #131

Merged pull requests:

v0.5.17 (2015-12-07)

Full Changelog

Closed issues:

  • Tests fail for latest beta/canary #126
  • Can no longer override registry in acceptance tests #124

Merged pull requests:

  • Fix registry resolver for isolated container @2.3+ #127 (nickiaconis)
  • Restrict integration: 'legacy' to component tests. #122 (rwjblue)
  • Add support for integration: 'legacy' #121 (rwjblue)

v0.5.16 (2015-11-10)

Full Changelog

Merged pull requests:

  • Use newly exposed mixins to create owner. #119 (rwjblue)

v0.5.15 (2015-11-10)

Full Changelog

Closed issues:

  • Events are fired twice for onxxxx type of handlers #116
  • Injecting services for component integration tests doesn't seem to work #114

Merged pull requests:

v0.5.14 (2015-10-21)

Full Changelog

Closed issues:

  • Implicit service injection fails in unit tests for dasherized names #108

Merged pull requests:

  • Fix issues with normalization in primary (non-fallback) registry. #113 (rwjblue)

v0.5.13 (2015-10-20)

Full Changelog

Closed issues:

  • TestModuleFor{App,Acceptance} proposal #94

Merged pull requests:

v0.5.12 (2015-10-02)

Full Changelog

Merged pull requests:

v0.5.11 (2015-10-01)

Full Changelog

Merged pull requests:

  • Add public API for injection & registration #105 (ef4)
  • Add id and until to deprecations. #102 (rwjblue)

v0.5.10 (2015-09-13)

Full Changelog

Closed issues:

  • [CANARY] Test suite fails against ember-canary 2.2.0 #99
  • No way to call component.didInsertElement() in component integration test #84

Merged pull requests:

  • Move action handling from module to context #101 (ef4)
  • Do not register a router service for Ember <1.13 #100 (mixonic)
  • Fix typo in thrown error #98 (HeroicEric)

v0.5.9 (2015-08-20)

Full Changelog

Merged pull requests:

v0.5.8 (2015-07-30)

Full Changelog

Closed issues:

  • Recent view registry change breaks tests #91
  • Deprecation message You tried to look up 'store:main', but this has been deprecated in favor of 'service:store' #65
  • Deprecation message DS.FixtureAdapter has been deprecated #64

Merged pull requests:

  • Ensure view-registry is injected for unit tested components. #92 (rwjblue)

v0.5.7 (2015-07-28)

Full Changelog

Merged pull requests:

  • Consistently use the new view registry #90 (ef4)

v0.5.6 (2015-07-24)

Full Changelog

Merged pull requests:

  • Add support for closure actions in component integration test #89 (martndemus)
  • Remove dependencies that are actually dev dependencies #88 (chadhietala)

v0.5.5 (2015-07-23)

Full Changelog

Closed issues:

  • Angle bracket components error when resolving #77

Merged pull requests:

v0.5.4 (2015-07-21)

Full Changelog

Merged pull requests:

v0.5.3 (2015-07-21)

Full Changelog

Closed issues:

  • "Render node exists without concomitant env" in 1.13.4 #76

Merged pull requests:

  • Only override container methods if present. #85 (rwjblue)

v0.5.2 (2015-07-20)

Full Changelog

Closed issues:

  • Does not work with Ember 2.0.0 beta 3 #80
  • Component integration tests used deprecated Ember.View #59

Merged pull requests:

  • Prevent errors when Ember.View / Ember._MetamorphView are undefined. #79 (rwjblue)
  • allow getProperties and setProperties for component integration tests #68 (CodeOfficer)

v0.5.1 (2015-07-06)

Full Changelog

Closed issues:

  • remove dependency on klassy, prefer raw JS or core-object #56
  • Accessing store and other services from #50
  • this.subject() throws error in moduleForModel if { integration: true } #46
  • TestModuleForComponent, integration: true, and {{link-to}} incompatible #41

Merged pull requests:

  • Update test-module-for-model.js #74 (quaertym)
  • Guard against exceptions in the setup steps. #73 (winding-lines)
  • Ember.keys is deprecated in favor of Object.keys #71 (jpadilla)
  • punctual punctuation #69 (CodeOfficer)
  • Add a test for {{component}} helper #62 (ef4)
  • Don't replace Ember's internal view:toplevel #61 (ef4)
  • Compatibility with Ember 1.13+ #60 (ef4)

v0.5.0 (2015-05-18)

Full Changelog

Merged pull requests:

  • Remove isolatedContainer and use Ember.Application.buildRegistry. #49 (rwjblue)

v0.4.6 (2015-05-18)

Full Changelog

Closed issues:

  • moduleForComponent accepts 3 or 1 argument, should also accept 2 #52
  • Feature request: support for block-params #40
  • Proposal: switching to template-driven component integration tests #25

Merged pull requests:

  • Ensure moduleForComponent with description works. #53 (rwjblue)

v0.4.5 (2015-05-14)

Full Changelog

Closed issues:

  • Needs no longer optional in v0.4.4? Unit tests deprecated? #47
  • New factories in isolatedContainer for Glimmer #43

Merged pull requests:

  • Allow missing arguments for moduleForComponent. #48 (rwjblue)
  • Add javascript syntax highlighting to README example #45 (HeroicEric)

v0.4.4 (2015-05-06)

Full Changelog

Merged pull requests:

  • Add container items required for Glimmer. #44 (rwjblue)
  • Delegate to DS._setupContainer when available to register service:store #39 (bmac)
  • Support component integration tests #38 (ef4)
  • Add automated testing against many Ember versions. #35 (rwjblue)

v0.4.3 (2015-04-04)

Full Changelog

Merged pull requests:

  • Use container to register custom DS keys. #34 (dgeb)

v0.4.2 (2015-04-04)

Full Changelog

Closed issues:

  • isolated-container depends on private view #30

Merged pull requests:

  • Register some built in Ember Data objects if ED exists on the page. #33 (bmac)
  • Asynchronous module hooks #32 (ef4)

v0.4.1 (2015-03-24)

Full Changelog

Merged pull requests:

  • Ensure moduleForModel uses the correct store for subject. #28 (rwjblue)

v0.4.0 (2015-03-17)

Full Changelog

Merged pull requests:

  • [breaking] Remove view.$\(\) call in render\(\) of module for component #27 (bantic)

v0.3.6 (2015-03-12)

Full Changelog

Merged pull requests:

  • Move integration container logic to TestModule #24 (nikz)

v0.3.5 (2015-03-11)

Full Changelog

Closed issues:

  • setup and teardown are not passing original arguments from frameworks #22

Merged pull requests:

  • Set registry.normalizeFullName to resolver.normalize. #23 (dgeb)
  • Adding standalone integration test support #21 (ef4)

v0.3.4 (2015-02-22)

Full Changelog

Merged pull requests:

v0.3.3 (2015-02-19)

Full Changelog

Merged pull requests:

v0.3.2 (2015-02-10)

Full Changelog

Merged pull requests:

  • Expose registry methods from isolatedContainer without deprecations. #15 (dgeb)
  • Ensure callbacks are called in the test module's context. #14 (dgeb)

v0.3.1 (2015-02-08)

Full Changelog

Merged pull requests:

  • Upgrade ember to 1.10.0 and remove handlebars. #13 (dgeb)

v0.3.0 (2015-01-31)

Full Changelog

Merged pull requests:

  • Ensure that setup callback is invoked with the correct context. #12 (rwjblue)
  • Use ember-cli for easier building. #11 (rwjblue)

v0.2.0 (2015-01-22)

Full Changelog

v0.1.0 (2015-01-22)

Full Changelog

Merged pull requests:

v0.0.7 (2014-11-19)

Full Changelog

Merged pull requests:

  • The isolated container exposes Ember's controllers. #4 (cyril-sf)
  • Make sure container and resolver normalize the same way #2 (marcoow)

v0.0.6 (2014-10-20)

Full Changelog

v0.0.5 (2014-10-14)

Full Changelog

v0.0.4 (2014-10-14)

Full Changelog

v0.0.3 (2014-10-07)

Full Changelog

Closed issues:

  • Configure testem for CI testing #1

v0.0.2 (2014-10-02)

Full Changelog

v0.0.1 (2014-05-03)