-
Notifications
You must be signed in to change notification settings - Fork 13
Release to be compatible with NodeJS 14+? #73
Comments
…`4.0.0`, and NodeJS to `12.22.5`. These are the latest Bazel and `rules_nodejs` versions, necessary to include some fixes/improvements for re-exporting `js_library()` and `ts_library()` targets, see #39 (comment). `rules_nodejs@4.0.0` actually updates NodeJS to `14.17.5`, however this breaks `@bazel/postcss@0.5.0` and there is no later release for it. There is actually a fix, but it hasn't been released. I filed bazelbuild/rules_postcss#73 to request a release, but for now I'm keeping NodeJS at `12.22.5`, which is the current latest release that does not include the v14 breaking change. Note that NodeJS v13 is already unsupported as it is not an LTS release. This is the most I can upgrade Bazel/`rules_nodejs` without breaking `@bazel/postcss`.
…`4.0.0`, and NodeJS to `12.22.5`. Refs #39. These are the latest Bazel and `rules_nodejs` versions, necessary to include some fixes/improvements for re-exporting `js_library()` and `ts_library()` targets, see #39 (comment). `rules_nodejs@4.0.0` actually updates NodeJS to `14.17.5`, however this breaks `@bazel/postcss@0.5.0` and there is no later release for it. There is actually a fix, but it hasn't been released. I filed bazelbuild/rules_postcss#73 to request a release, but for now I'm keeping NodeJS at `12.22.5`, which is the current latest release that does not include the v14 breaking change. Note that NodeJS v13 is already unsupported as it is not an LTS release. This is the most I can upgrade Bazel/`rules_nodejs` without breaking `@bazel/postcss`.
I'm not sure who publishes the npm package. @alexeagle is it you? |
If this is referring to I'll resolve this. |
hey while we're chatting maintenance, @rzhw I'm curious what your experience has been maintaining a ruleset outside of the rules_nodejs monorepo. We are starting planning for our next major release and I'm considering whether we could reduce scope of the monorepo and follow this model for new rules (Jest, Webpack seem likely soon) and possibly fork out some that are currently in there. Anything you would do differently now that you've been operating this for a while? |
@dgp1130 I just released It's been pretty smooth so far with the current setup we have here, but I think a lot of that can be owed to how these external rules aren't under active heavy development, nor is there any sizeable user base at the moment. I'm sure that if that wasn't the case, things I might want to revisit might become lot more obvious. So far looking back, I think the only thing I might revisit (but still have the opportunity to revisit) is whether the dual Bazel-style and Node-style distribution still makes sense, but it doesn't exactly add much overhead either. Not that big of a deal at the moment. Otherwise I was concerned about needing to follow rules_nodejs version bumps as well. But I suppose if you're spinning out rules from the monorepo there'll be a bunch of new repos that encounter this same problem, and it'll be good to be in a crowd for these kinds of problems rather than staking it out alone as has been the case thus far :) Plus not being able to rely on things like common monorepo scripts for publishing. If things have to be done in a non-standard way, having it be done through a centralised place is pretty nice. Using Just now I ended up manually doing a Overall I'm pretty happy that this repo works as it has thus far. |
Thanks @rzhw! I'll try it out as soon as I get a chance. |
@rzhw, unfortunately it seems that a dependency on an old
Tracking the dependency it's definitely coming from
I'm guessing this was introduced either when worker support was added (30d1ba5) or when the I think we either need to upgrade this dep to |
We relaxed that constraint in the last 3.x release of @bazel/worker just for this reason. |
I'll take the approach of upgrading the |
Just a heads up I believe Node v12 is now EOL and no longer supported by the Node.js team and |
Maybe it's a good idea to archive this repo to set user expectations? You can always unarchive if there's some new energy to maintain it. |
Alex, we're currently reviewing all repos under bazelbuild and marked this repo as potentially abandoned half a year ago. We share your conclusion and will archive it and keep it archived until there is someone who would like to take the lead. |
Refs #46. This is blocking the Node.js upgrade past v12 and the feature doesn't really work anyways as it isn't currently linked properly in the output. See: bazelbuild/rules_postcss#73. Hopefully a future migration to Parcel will put us back in a position where CSS sourcemaps can be used.
rules_nodejs@4.0.0
uses NodeJS14.17.5
by default. This is not compatible with@bazel/postcss@0.5.0
as it will not generate source maps. Attempting to usepostcss_binary(sourcemap = True)
fails with:This appears to have been fixed a couple months ago in #69, which solved the problem in google3, but this doesn't appear to have been released to NPM. Considering that
rules_nodejs@4
uses Node 14 by default,@bazel/postcss
is not usable out of the box and requires an older Node version to run.Workarounds include:
sourcemap = True
, which is a functionality regression.12.22.5
is the current latest supported version that works with@bazel/postcss@0.5.0
.rules_postcss
via a repository rule linked against 95fefe3 or later. This is highly discouraged and a lot of effort to work around a simple bug.@bazel/rules_postcss
to include 95fefe3. Also a lot of effort for a simple bug.Any chance we can get a release with this fix?
The text was updated successfully, but these errors were encountered: