-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
sys: Removing after many years of deprecation #2405
Conversation
+1 |
Was the disagreement (about what is necessary and sufficient to finally do this) at #1704 ever resolved? |
This will break some modules. And not all of that are unmaintained and forgotten modules, for example, see pm2 (one, two). Personally, I'm +1 for the removal. There is a sys module as the final work-around, and one could install that if he or she uses some unmaintained module that won't be updated in time. I think I'll prepare an updated list of modules in some time, when I resync my local npm packages. |
Find all cases of require('sys') on GitHub and leave an issue? I for one am really +1 on this one. |
Does it make sense to deprecate a module ..... forever? |
@bnoordhuis Anything in the nodejs org will have a maintenance cost. @ChALkeR thanks for pointing those cases out, I will submit a PR to pm2 |
Partial (and outdated) list of other modules: https://gist.github.com/ChALkeR/60c95b60bbfa3296c2f8 An updated list wil follow, it this won't be rejected by that time =). |
@nodejs/tsc ... any objections to closing this based on the prior decision? |
@jasnell I object. We should do the right thing... @ChALkeR already submitted PRs to modules found to use sys. This module is safe to remove and should be removed... if we don't then we will end up having to submit more PRs to modules that end up finding and using sys as well as having conversations like this in the future. |
@geek Correction: I did not submit PR to all modules found to use sys, but only to 6 of them. |
We need at least one node release with it issuing the runtime deprecation warning. You can blame this commit for not re-deprecating it as a runtime warning. |
@Fishrock123 it was released with a deprecated warning previously: dc42e1f $ iojs -v
v3.1.0
$ iojs
> var sys = require('sys')
(node) sys is deprecated. Use util instead. |
For the purposes of this, io.js does not count as a "node version", let's rephrase: an LTS cycle because past mistakes were stupid and we don't have control of that. |
A decision was made and I don't see a reason to revisit that. I'm okay with closing this. |
I notice this has been added to the 6.0.0 milestone. Assuming that this could actually be removed in v6, and @geek wanted to do the work, what is the best way to track long running issues? Closing it will likely lead to it being forgotten about, but keeping it open for over a year leads to a cluttered issue tracker. |
@bnoordhuis we should listen to the decision of the community to not use sys. People want a clean codebase, not something with broken modules. |
@geek That's a bit extreme. Have you looked at 'use strict';
const util = require('internal/util');
module.exports = require('util');
util.printDeprecationMessage('sys is deprecated. Use util instead.'); That's the entire thing. It's a namespace change is all. We don't use sys internally, and I'm not sure what your comment about listening to the community is about. In short, it's not a broken module. It's an extra few lines of code to forward the namespace to the current module so we stay backwards compatible. |
@trevnorris the community isn't using sys. Its a broke module in that when you try to use it you get a warning. What is extreme about stating that? |
@trevnorris removing this implicit API should be safe to do in v4, as it was part of our v1 release. These are the guidelines for the deprecation policy:
It has now existed in an undocumented state for years as well as in an explicitly deprecated state for 3 major releases. |
Merging upstream
It's been in an explicitly deprecated state for io.js. There has never been a node release in which it was deprecated. First, we need to get it out as deprecated in v4, then we can consider removing it in v6. |
@Qard sounds like a plan |
Relates to nodejs/node-v0.x-archive#8880
Before we release a major version of node we should remove
sys
, which has been deprecated and undocumented for a long time.