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 1.2.4 #50

Merged
merged 1 commit into from
Apr 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,26 @@ When you visit the site, you'll see the output of various cfenv calls.
changes
================================================================================

**1.2.4** - 2021/04/03

- upgrade most dependencies, but not CoffeeScript, since the latest
version generates code that can't be run in older versions of node - [pr #50][]

- change to call `yaml.load()` instead of `yaml.safeLoad()` since it's no
longer supported, noticed via an error message: - [pr #50][]

```
Error: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default.
```

[pr #50]: https://github.com/cloudfoundry-community/node-cfenv/pull/50

**1.2.3** - 2020/07/24

- remove `.cfignore` file - [commit #02bb92d][]

[commit #02bb92d]: https://github.com/cloudfoundry-community/node-cfenv/commit/02bb92dacf5f59244b188dae11fd2fe732c4940e

**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
2 changes: 1 addition & 1 deletion lib/cfenv.js

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cfenv",
"main": "./lib/cfenv",
"description": "easy access to your Cloud Foundry application environment",
"version": "1.2.3",
"version": "1.2.4",
"author": "pmuellr",
"license": "Apache-2.0",
"homepage": "https://github.com/cloudfoundry-community/node-cfenv",
Expand All @@ -17,14 +17,14 @@
"watch": "jbuild watch"
},
"dependencies": {
"js-yaml": "3.13.x",
"js-yaml": "4.0.x",
"ports": "1.1.x",
"underscore": "1.9.x"
"underscore": "1.12.x"
},
"devDependencies": {
"coffeescript": "1.12.x",
"expect.js": "0.3.x",
"jbuild": "1.0.x",
"mocha": "5.1.x"
"mocha": "8.3.x"
}
}