Skip to content

Conversation

@lairjr
Copy link

@lairjr lairjr commented Sep 30, 2020

This PR adds the classes needed to interop with the merge addon.

  • Add the MergeView and DiffView wrapper;
  • Bump the codemirror.dart wrapper version;

<link rel="x-dart-test" href="all_test.dart">
<script src="packages/test/dart.js"></script>
<!-- Required dependency for merge addon -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/diff_match_patch/20121119/diff_match_patch.js"></script>
Copy link
Member

Choose a reason for hiding this comment

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

No. We include the full release in the bundle, we don't rely on CloudFlare's CDN. See updating_codemirror.md for the update process.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the PR!

wrt what @domesticmouse - should this script reference be moved down to ~line 20 (<script src="packages/codemirror/codemirror.js...), and be converted to a relative reference?

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, I've read the updating_codemirror.md file, but it did not say anything regarding extra dependencies that are from a different JS package than codemirror is.

I was thinking in download the most recent JS diff-match-patch and put it on the third_party folder. Does that make sense?

Copy link
Member

Choose a reason for hiding this comment

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

I'm not up to speed on the legals of including Apache libs into a BSD 3 codebase, but this sounds like a good plan to me.

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.

3 participants