Skip to content

Commit

Permalink
update dependencies, now at version 1.2.4
Browse files Browse the repository at this point in the history
- upgrade most dependencies, but not CoffeeScript, since the latest
  version generates code that can't be run in older versions of node

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

  ```
  Error: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default.
  ```
  • Loading branch information
pmuellr committed Apr 3, 2021
1 parent 63e072a commit fb0a2aa
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
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"
}
}

0 comments on commit fb0a2aa

Please sign in to comment.