Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Note that require.paths is gone in 0.5
Browse files Browse the repository at this point in the history
Rather than say it "may disappear", let's just be clear that it *has*
disappeared, and exactly how long it'll be supported for.
  • Loading branch information
isaacs committed Jul 25, 2011
1 parent e357acc commit bf08024
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/api/modules.markdown
Expand Up @@ -248,9 +248,10 @@ Loading from the `require.paths` locations is only performed if the
module could not be found using the `node_modules` algorithm above.
Global modules are lower priority than bundled dependencies.

#### **Note:** Please Avoid Modifying `require.paths`
#### **Note:** Please Avoid Using `require.paths`

`require.paths` may disappear in a future release.
`require.paths` will only be supported through the end of the v0.4
stable branch. It is removed from node as of v0.5.

While it seemed like a good idea at the time, and enabled a lot of
useful experimentation, in practice a mutable `require.paths` list is
Expand Down

0 comments on commit bf08024

Please sign in to comment.