GithubHelp home page GithubHelp logo

poteto / ember-deep-set Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 8.0 600 KB

Deeply set values on an Ember Object or POJO

License: MIT License

JavaScript 87.94% HTML 11.14% Handlebars 0.92%
ember ember-addon nested-objects

ember-deep-set's Introduction

You may have a screen reader, but you still got rick rolled. Yes, this is a gif of Rick Astley's famous "Never Gonna Give You Up".

ember-deep-set's People

Contributors

0xadada avatar ember-tomster avatar jelhan avatar nucleartide avatar poteto avatar scottkidder avatar snewcomer avatar wozny1989 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ember-deep-set's Issues

Explain reason to use over Ember.set

It isn't immediately obvious from the README why someone would want to use ember-deep-set over Ember.set.

Maybe add some rationale about why folks should care?

๐Ÿ‘‹ Please provide a changelog

Hi @poteto ๐Ÿ‘‹

It would be useful to get the list of changes and bugfixes between versions, with migrations notes or recommendations if any. For now we have to search in the code or the Git history for API changes, and it can take some time when you have a lot of dependencies to update.

Please publish a GitHub release for the lastest versions (0.2.0, 0.1.4) with some explanations like about what changed and the recommendations to migrate and/or provide a CHANGELOG.md file.

See for example https://keepachangelog.com/en/1.0.0/

Thank you. โค๏ธ

warnings issued by outdated version of ember-cli-babel

ember-cli-babel warnings in ember build are occurring like so:

DEPRECATION: ember-cli-babel 5.x has been deprecated. Please upgrade to at least ember-cli-babel 6.6. Version 5.2.4 located: /Users/0xadada/mirai-audio/mir/node_modules/ember-i18n-changeset-validations/node_modules/ember-deep-set/node_modules/ember-cli-babel

upgrading to a new version of ember-cli-babel will fix this.

deepSet where path leading up to key contains non-objects

Hey @poteto, sorry to bother you โ€“

I'm running into this issue where I want to deepSet a key, but the path leading up to that key contains non-objects. Here's an example:

let o = { foo: 'bar' };
deepSet(o, 'foo.bar.baz', 'something'); // will currently error

Lodash's _.set implementation will overwrite the 'bar' string, and I'm thinking we could follow that behavior.

It's easy for me to work around this in ember-changeset (see here), but would you like to add this behavior to ember-deep-set as well? If not, it's no big deal.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.