Skip to content
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

Add splitio-adapter package #67

Merged
merged 8 commits into from
Nov 23, 2017
Merged

Add splitio-adapter package #67

merged 8 commits into from
Nov 23, 2017

Conversation

tdeekens
Copy link
Owner

Thanks for @Kerumen we will soon have an adapter for splitio. This branch aims to fix the last issues with build setup, documentation etc.

@tdeekens tdeekens self-assigned this Nov 23, 2017
@tdeekens
Copy link
Owner Author

This is the build error I was expecting. I will dive into another round of rollup debugging another day.

@tdeekens tdeekens force-pushed the feature/splitio-adapter branch 2 times, most recently from 0af8215 to fe8ef1a Compare November 23, 2017 21:16
@tdeekens
Copy link
Owner Author

tdeekens commented Nov 23, 2017

Couldn't resist. Debugging the plugin chain of rollup this comes from the babel-plugin which receives something like

import '../../modules/es6.string.iterator';
import '../../modules/es6.array.from';
import '../../modules/_core';
import 'commonjs-proxy:../../modules/es6.string.iterator';
import 'commonjs-proxy:../../modules/es6.array.from';
import require$$2 from 'commonjs-proxy:../../modules/_core';

which looks like the commonjs-plugin processes the core-js dependencies which it maybe shouldn't but it also shouldn't cause a problem. Unsure what a fix should or could be.

@codecov
Copy link

codecov bot commented Nov 23, 2017

Codecov Report

Merging #67 into master will increase coverage by 0.63%.
The diff coverage is 98.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
+ Coverage    95.4%   96.03%   +0.63%     
==========================================
  Files          23       24       +1     
  Lines         174      227      +53     
  Branches       20       25       +5     
==========================================
+ Hits          166      218      +52     
- Misses          8        9       +1
Impacted Files Coverage Δ
...ackages/splitio-adapter/modules/adapter/adapter.js 98.11% <98.11%> (ø)

@tdeekens
Copy link
Owner Author

I literally am baffled. There is a modulesOnly: true option for the plugin-resolve in rollup which does some funky things. Which stems from this issue and is exactly what we ran into. I am not even fully sure what it implies after reading the description five times. It seems like imports from a non ES module to an ES module without a pkg.main cause trouble at times to be detected correctly.

@tdeekens
Copy link
Owner Author

I will rebase one last time removing the replacing of the version from the package but rather reading it using the json-plugin.

@tdeekens tdeekens force-pushed the feature/splitio-adapter branch 2 times, most recently from dd6cd4a to 8a0141e Compare November 23, 2017 22:09
@tdeekens
Copy link
Owner Author

Is there anything you see missing @Kerumen? Otherwise I'd be pretty confident to release this as 1.0.0 unless you want to test the code for instance again.

@Kerumen
Copy link
Contributor

Kerumen commented Nov 23, 2017

@tdeekens No I'm fine, go release this! Thanks for giving your time to investigate. The library just got better!

@tdeekens tdeekens merged commit 2ccab9e into master Nov 23, 2017
@tdeekens tdeekens deleted the feature/splitio-adapter branch November 23, 2017 22:13
@tdeekens
Copy link
Owner Author

Sure. Let me know if you see any other areas or room for improvement. Always eager to hear other people's perspectives.

@tdeekens
Copy link
Owner Author

Voila. Let me know if there are problems.

https://github.com/tdeekens/flopflip/releases/tag/%40flopflip%2Fsplitio-adapter%401.0.0

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

Successfully merging this pull request may close these issues.

2 participants