Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

#73: update dependencies (closes #73) #75

Merged
merged 6 commits into from
Dec 27, 2018
Merged

Conversation

fes300
Copy link
Contributor

@fes300 fes300 commented Dec 23, 2018

Closes #73
Closes #74

Test Plan

tests performed

To test the changes I build a new app with createReactApp, installed a local version of react-avenger with my changes and used both queries and commands in various ways.

@@ -72,7 +72,7 @@ withFooAndBarProps = withFooAndBar.Props;
declare const C2: React.ComponentType<typeof withFooAndBar.Props>;
const WithFooAndBar = withFooAndBar(C2);

// $ExpectError Property 'token' is missing in type '{}'.
// $ExpectError Property 'token' is missing in type '{}' but required in type '{ token: string; }'.
Copy link
Contributor Author

@fes300 fes300 Dec 23, 2018

Choose a reason for hiding this comment

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

these changes should fix the CI but for some reason, the old version of the file seems to still run..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

also I'm not sure if we want to maintain this type checks in the future, do they really bring value?

Copy link
Member

Choose a reason for hiding this comment

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

these changes should fix the CI but for some reason, the old version of the file seems to still run..

meaning it doesn't fail on your machine but it fails on the CI without these changes? Looks like a different version of TS or related libraries issue?

also I'm not sure if we want to maintain this type checks in the future, do they really bring value?

I would say yes until the d.ts are written manually - too easy to break them otherwise

Copy link
Contributor Author

Choose a reason for hiding this comment

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

meaning it doesn't fail on your machine but it fails on the CI without these changes? Looks like a different version of TS or related libraries issue?

yesterday the CI was failing with comments related to the "pre-changes" code, today everything works fine 👍

src/queries.js Outdated
@@ -3,7 +3,7 @@ import debug from 'debug';
import shallowEqual from 'buildo-state/lib/shallowEqual'; // TODO(split)
import pick from 'lodash/pick';
import _displayName from './displayName';
import 'rxjs/add/operator/debounceTime';
import { debounceTime } from 'rxjs/operators';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@giogonzo giogonzo Dec 24, 2018

Choose a reason for hiding this comment

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

This will probably require to have rxjs upgraded in avenger too. Otherwise we'll end up having two different versions of the lib (and it will probably break)

Maybe we can postpone this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it works with "avenger": "^4.0.3" but I agree that I don't like having two different versions of rxjs.. maybe the solution could be to drop rxjs in react-avenger (it is only used here I think...)?

Copy link
Member

@giogonzo giogonzo left a comment

Choose a reason for hiding this comment

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

👍 LGTM except for a couple inline comments

yarn.lock Outdated
@@ -0,0 +1,4910 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
Copy link
Member

Choose a reason for hiding this comment

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

since this is a library repo, yarn.lock shouldn't be versioned

package.json Outdated
@@ -56,9 +52,10 @@
"react": ">=0.14.9 <15 || >=15.3.x"
},
"dependencies": {
"@devexperts/remote-data-ts": "^0.4.2",
Copy link
Member

Choose a reason for hiding this comment

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

(still) unrelated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ops, this shouldn't be here :)

@nemobot nemobot added WIP and removed in review labels Dec 24, 2018
@FrancescoCioria FrancescoCioria removed their request for review December 24, 2018 09:30
@@ -3,3 +3,4 @@ npm-debug.log
lib
.eslintcache
package-lock.json
yarn.lock
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this line (not sure but it seems legit if we don't want to version the file)

@fes300 fes300 merged commit dd5c92f into master Dec 27, 2018
@fes300 fes300 deleted the 73-update_dependencies branch December 27, 2018 09:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants