-
-
Notifications
You must be signed in to change notification settings - Fork 772
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
Update compatibility docs #2366
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice 👍
You might also want to update |
@mroderick I got some new questions after inspecting the README and the linked COMPATIBILITY.md file. The compat file touts itself as being the canonical reference. This prompts some questions.
|
I agree, that's a better approach.
I have not figured that out yet. What do you mean by copy-on-install? Maybe that's the solution?
It is installed in consuming projects as a dependency of |
Mange tak, Morgan!
Since the browserlist file is text and in our code base, and our docs are also in the same code base, then we could use that file to update other documents by running some
and replace the bits between the magic start and end comments each time. For now, I guess it's much easier to talk in general terms and point to some code for the most specific up-to-date details. |
For the markdown documents, I think that's a great idea.
I agree, that's a good approach 👍 |
See sinonjs/sinon#2366 Makes it possible to reuse it.
See sinonjs/sinon#2366 Makes it possible to reuse it.
ea606e3
to
51d1e0b
Compare
If you could have a new look, I think I have removed most ambiguity by pointing to a single doc that is kept up-to-date by a script. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good 👍
I tried running npm run build
locally, which didn't fail at least :)
scripts/update-compatibility.js
Outdated
|
||
let changeLogData = ""; | ||
|
||
/* eslint-disable */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to disable ESLint entirely from this point on?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started just disabling the jsdoc rule, then I needed to disable another one, and then I was like: "screw it, this is just a util", but sure, I could list them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm ... added the rules, but now Prettier and ESLint are fighting between themselves 😭
./node_modules/.bin/eslint --fix script/*.js
will do one thing and npm run prettier:write --
will do another. That means I can get eslint content, but as soon as someone does prettier --write
it will be reverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed a fix to eslint-config
Purpose (TL;DR) - mandatory
Close #2359 by updating the docs to reflect our current stance.
Background (Problem in detail) - optional
Our docs state that we support Safari 9 and IE 11 - which we do not. This creates bugs such as #2358.
Solution
Point to the up-to-date reference and talk in general terms about our strategy.
How to verify - mandatory