Skip to content

chore: {N} 7 updates #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 3, 2020
Merged

Conversation

NathanWalker
Copy link
Contributor

cd src
npm run clean
npm run build

And you'll be all set.
Went ahead and bumped major version to 3.0.0 👍 - thank you for this plugin.

closes #39

@jdnichollsc
Copy link
Member

Hello Nathan, let me try to publish a new version ASAP :)

@NathanWalker
Copy link
Contributor Author

@jdnichollsc awesome - we should mention in readme that the usage is from:

import InAppBrowser from 'nativescript-inappbrowser';

to:

import { InAppBrowser } from 'nativescript-inappbrowser';

which gives a nice tree shakeable esm symbol. Would be a breaking change that we should mention.

@jdnichollsc
Copy link
Member

But what're the advantages? I mean, can we avoid breaking changes in this case?

@NathanWalker
Copy link
Contributor Author

Honestly everything with {N} 7 is moving to symbols like that due to advantages with tree shaking and es2015+ so I would recommend going with it like this. import Thing would generally be non standard with the stack's direction.

@jdnichollsc
Copy link
Member

Oh ok, I need to modify the other library similar to this to maintain consistency. I'm busy until October 1st, so please wait mate :)

@aquinn637
Copy link

@jdnichollsc Any progress on this? I need this plugin for my project. :)

@lukasjuhas
Copy link

Thank you very much! Looking forward to having this in.

@bmacdonald
Copy link

@jdnichollsc Any progress on this? I need this plugin for my project. :)

@aquinn637 I am in the same boat. This is the only plugin preventing us from going to NativeScript 7.

@aquinn637
Copy link

@jdnichollsc @bmacdonald I made a temporary repository here: https://github.com/aquinn637/aquinn/tree/master/packages/inappbrowser
Of course, giving credit to the original author

@jdnichollsc
Copy link
Member

There're new features in the next release, we're going to publish that this next weekend. I'm busy as I said before, thanks for your patience :)

@jdnichollsc
Copy link
Member

Ok, checking about tree shakeable esm symbol

@jdnichollsc jdnichollsc merged commit ad9c6af into proyecto26:master Oct 3, 2020
@jdnichollsc
Copy link
Member

Ok, LGTM! Thanks for your help Nathan! I'm going to update README and add new changes before to publish this, let me confirm you tomorrow :)

@andreacappadona17
Copy link

Any updates on the release date for the plugin?

@jdnichollsc
Copy link
Member

Today :)

@jdnichollsc
Copy link
Member

Sorry folks, still working in some issues before to publish a new version (hope to finish that during this weekend), in the meantime please use this package

@jdnichollsc @bmacdonald I made a temporary repository here: https://github.com/aquinn637/aquinn/tree/master/packages/inappbrowser
Of course, giving credit to the original author

@bmacdonald
Copy link

Is there an update on this plugin?

@jdnichollsc
Copy link
Member

I'm planning to move these changes for this lib today, we're testing the changes :) proyecto26/react-native-inappbrowser#195

@bmacdonald
Copy link

bmacdonald commented Oct 20, 2020

This is a critical plugin for us and is actually prevent us from porting to NativeScript 7. We have a large enterprise grade application which requires this for SSO. I see you have published react-native-inappbrowser. However, is there a timeline to get the nativescript inappbrowser updated?

We have a small window to upgrade the framework due to the nature of enterprise developement.

We can't use @aquinn637 repo as it just throws can't resolve module errors.

@jdnichollsc
Copy link
Member

I'm moving these fixes before to publish a new release, during the week is complicated for me (Because I'm not working with NativeScript, it's really just a hobby without sponsors), I'm trying to do that for this weekend :)

@aquinn637
Copy link

@jdnichollsc Thank you so much for this plugin. I'm in the same boat as @bmacdonald. You'll let us know when v3 is ready?

@jdnichollsc
Copy link
Member

Hello folks, please help me to validate the next release here: #46

@NathanWalker I'm getting this error when I try to run the demo project:

Error while loading nativescript-cloud is: ENOENT: no such file or directory, scandir '/Users/jdnichollsc/.local/share/.nativescript-cli/extensions/node_modules'
Error while loading nativescript-starter-kits is: ENOENT: no such file or directory, scandir '/Users/jdnichollsc/.local/share/.nativescript-cli/extensions/node_modules'
No project found at or above '/Users/jdnichollsc/dev/nativescript/nativescript-inappbrowser/demo' and neither was a --path specified.

What do you think?
Thanks for your help! <3

@farfromrefug
Copy link
Contributor

@jdnichollsc tried your demo and it works fine here.

@bmacdonald
Copy link

@jdnichollsc The demo for iOS and Android ran successfully.

I also published it to a private self-hosted npm repository to verify the import.

Thank you for the work you put in to this plugin! We do appreciate it.

@jdnichollsc
Copy link
Member

ohh do you know if we need to update nativescript cli? also CI iOS builds are failing 🤔

@bmacdonald
Copy link

I would. Everything I tested under is using NS CLI 7.0.11.

@jdnichollsc
Copy link
Member

We can continue the discussion here #46, thanks a lot for your help! <3

@jdnichollsc
Copy link
Member

Check the new version, thanks for your amazing help guys! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

plugin crashes app after NS7 & Angular 10 upgrade System.err: TypeError: Class constructor Observable cannot be invoked without 'new'
7 participants