jaredhanson / jaredhanson/electrolyte

version 0.3.0 returns objects while 0.4.0 returns promises

Open
#58 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
555
Forks
60
PR merge metrics
No merged PRs in 30d

Description

Can someone explain why the new version of electrolyte breaks the way of working. On doing `ioc.create() `it is returning promise in version 0.4.0 while in 0.3.0 it returns the object exported via the `component`. Nested promises as well....

Any pointers on how to use the new version of electrolyte and reconcile old code with new version of electrolyte?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the documented or implemented behavior of ioc.create() between electrolyte 0.3.0 and 0.4.0. Trace how the returned value and nested dependencies are produced, then verify whether the current API documents a migration path or expected promise handling for existing code.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.