Skip to content

Conversation

@kwonoj
Copy link
Member

@kwonoj kwonoj commented Apr 19, 2016

Description:

This PR replaces existing symbol declaration into symbol-observable package.

Related issue (if exists):

closes #1636

Notes
Blocked by benlesh/symbol-observable#4 .

@benlesh
Copy link
Member

benlesh commented Apr 19, 2016

@kwonoj FYI: the issue is resolved and a new version of symbol-observable has been published.

import {IfObservable} from './observable/IfObservable';
import {ErrorObservable} from './observable/ErrorObservable';

import * as observableSymbol from 'symbol-observable';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: I prefer $$name for symbols. Can we use $$observable? It's consistent with the rest of the library.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely, updated per suggestion.

@benlesh
Copy link
Member

benlesh commented Apr 19, 2016

So just one nitpick, other than that, it LGTM.

@kwonoj
Copy link
Member Author

kwonoj commented Apr 19, 2016

I'll wait travis to be happy before check this in.

@benlesh
Copy link
Member

benlesh commented Apr 19, 2016

Well, right now it looks like CJS will compile, but ES6 will not, for whatever reason. When compiling the ES6 it can't find the module.

@benlesh
Copy link
Member

benlesh commented Apr 19, 2016

Specifically: npm run build_cjs works, but npm run build_es6 does not

@kwonoj
Copy link
Member Author

kwonoj commented Apr 19, 2016

Yes, noticed that, thanks for pointing out. Looking into it now..

@kwonoj
Copy link
Member Author

kwonoj commented Apr 19, 2016

Just fyi, moduleResolution solves es15 build but not systemjs-builder complains about external dependencies. :/ looking into it also..

"typings": "./dist/cjs/Rx.d.ts"
"typings": "./dist/cjs/Rx.d.ts",
"dependencies": {
"symbol-observable": "^0.2.2"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed this to dependencies instead of devDependencies since it's required dependency not only dev perspective.

@kwonoj
Copy link
Member Author

kwonoj commented Apr 19, 2016

@Blesh - I've updated 2 parts more,

  • symbol-observable is now dependency instead of devDependency
  • systemjs bundler will mark symbol-observable externally resolved, let each consumer to provide it

and I believe both need to be approved. Will leave this to get suggestions & corrections if there's wrong I did.

@robwormald
Copy link
Contributor

the use case for the system bundles is to provide tool-free usage, so it seems to be it would be simpler just to include it, as its unlikely to be provided elsewhere, no?

@kwonoj
Copy link
Member Author

kwonoj commented Apr 19, 2016

so it seems to be it would be simpler just to include it, as its unlikely to be provided elsewhere, no?

: Yes, I wasn't sure if current change's legit so would like to ask to confirm it. I'll try to include it as well, my initial attempt wasn't successful while resolving external modules.

@kwonoj kwonoj added the blocked label Apr 19, 2016
@kwonoj kwonoj removed the blocked label Apr 19, 2016
@kwonoj
Copy link
Member Author

kwonoj commented Apr 19, 2016

Updated PR as suggested.

@kwonoj
Copy link
Member Author

kwonoj commented Apr 25, 2016

Merged with b626d97 .

@kwonoj kwonoj closed this Apr 25, 2016
@kwonoj kwonoj deleted the symbol-polyfill branch April 25, 2016 21:47
@lock
Copy link

lock bot commented Jun 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to use symbol-observable module

3 participants