-
Notifications
You must be signed in to change notification settings - Fork 62
Update requireindex #210
Comments
@bradzacher can you close this one: it got updated in #186 |
I know it is updated for Also, |
@chrisblossom a healthy distrust of semver is always valid. That being said, I do prefer to I'd like to do a patch release, but it'd be a bit of a PITA with the commit history in the state that it is. Are you using yarn? I think this is the right syntax for it:
|
if you are using npm you will have to use this: https://www.npmjs.com/package/npm-force-resolutions |
@bradzacher I'm sorry to add noise but I saw you fixed this and I'm asking if is it possible to publish a new minor release with the parser upgraded and the new indent rule? |
Unfortunately not. In order to publish a patch release, we'd have to branch off the 0.14.0 tag, bump the dep, test it, and then we can publish it. It's a lot of work when the 1.0.0 release is very, very close! |
I was thinking more to release master as is in a 0.15.0 release, since semver doesn't explicitly forbids breaking changes in 0.x.y releases. But I didn't realize 1.0.0 was close. Thank you for your time @bradzacher |
I would disagree with that statement:
https://semver.org/#spec-item-8
I will close this as it will be resolved as part of the next release. |
https://semver.org/#spec-item-4 Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable. |
Good point, I missed that part of the spec! Though (in regards to the JS ecosystem) I disagree with that part of the spec because npm/yarn don't differentiate between 0/1 releases, and the default operator (the caret Esp considering our breaking changes in 1.0.0 will affect everyone, because users must upgrade to our parser for most rules to work. |
Good thoughts, no problem 😄 |
This is how I've temporarily solved the issue:
// jest typescript testing file
require('../fix-eslint-plugin-typescript');
test('test typescript', () => {}) // fix-eslint-plugin-typescript.js
/**
* eslint-plugin-typescript is not using a version of 'requireindex'
* that is compatible with jest.
*
* Temporarily fix. Remove when eslint-plugin-typescript updates
*/
'use strict';
const path = require('path');
const fs = require('fs');
const del = require('del');
const eslintPluginTypescriptPath = require.resolve('eslint-plugin-typescript');
const base = path.resolve(
eslintPluginTypescriptPath,
'../../node_modules/requireindex'
);
const exists = fs.existsSync(base);
if (exists === true) {
del.sync(base, { force: true });
} |
According to the repo npm uses to resolve version ranges, versions starting with a 0 are handled properly @bradzacher. |
Please change
"requireindex": "~1.1.0"
to update to minor versions^1.1.0
and release an updated npm package. I need 1.2.0 in-order to test this plugin in my eslint-config.Thank you!
The text was updated successfully, but these errors were encountered: