Skip to content
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 dependencies, now at version 2.0.0 #48

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package-lock = false
package-lock = true
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ Cloud Foundry app, based on whether the `VCAP_APPLICATION` environment variable
If not set, the functions run in "local" mode, otherwise they run in "cloud"
mode.

### upgrading to version 2.0.0

Version 2.0.0 is an upgrade to the package dependencies, including CoffeeScript.
The new version of CoffeeScript generates code which may not work in older
versions of node.js. For more info, see this note on the CoffeeScript page:
https://coffeescript.org/#compatibility

If you're running an older version of node.js (before 7.6), you should stick to
the 1.* version of this package.


quick start
================================================================================
Expand Down Expand Up @@ -325,6 +335,10 @@ When you visit the site, you'll see the output of various cfenv calls.
changes
================================================================================

**2.0.0** - 2021/02/25

- upgrade a lot of dependencies, including CoffeeScript

**1.2.2** - 2019/03/26

- handle ports package race condition by returning port 3000 - [pr #41][]
Expand Down
2 changes: 1 addition & 1 deletion jbuild.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ tasks.test = ->
ui: "bdd"
reporter: "spec"
slow: 300
compilers: "coffee:coffeescript"
# compilers: "coffee:coffeescript"
require: "coffeescript/register"

options = for key, val of options
Expand Down
2 changes: 1 addition & 1 deletion lib-src/cfenv.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ getName = (appEnv, options) ->

if fs.existsSync "manifest.yml"
yString = fs.readFileSync "manifest.yml", "utf8"
yObject = yaml.safeLoad yString, filename: "manifest.yml"
yObject = yaml.load yString, filename: "manifest.yml"

yObject = yObject.applications[0] if yObject.applications?
return yObject.name if yObject.name?
Expand Down
123 changes: 71 additions & 52 deletions lib/cfenv.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading