Skip to content

Commit fb0a2aa

Browse files
committed
update dependencies, now at version 1.2.4
- 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. ```
1 parent 63e072a commit fb0a2aa

File tree

5 files changed

+27
-7
lines changed

5 files changed

+27
-7
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,26 @@ When you visit the site, you'll see the output of various cfenv calls.
325325
changes
326326
================================================================================
327327

328+
**1.2.4** - 2021/04/03
329+
330+
- upgrade most dependencies, but not CoffeeScript, since the latest
331+
version generates code that can't be run in older versions of node - [pr #50][]
332+
333+
- change to call `yaml.load()` instead of `yaml.safeLoad()` since it's no
334+
longer supported, noticed via an error message: - [pr #50][]
335+
336+
```
337+
Error: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default.
338+
```
339+
340+
[pr #50]: https://github.com/cloudfoundry-community/node-cfenv/pull/50
341+
342+
**1.2.3** - 2020/07/24
343+
344+
- remove `.cfignore` file - [commit #02bb92d][]
345+
346+
[commit #02bb92d]: https://github.com/cloudfoundry-community/node-cfenv/commit/02bb92dacf5f59244b188dae11fd2fe732c4940e
347+
328348
**1.2.2** - 2019/03/26
329349

330350
- handle ports package race condition by returning port 3000 - [pr #41][]

jbuild.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ tasks.test = ->
6868
ui: "bdd"
6969
reporter: "spec"
7070
slow: 300
71-
compilers: "coffee:coffeescript"
71+
# compilers: "coffee:coffeescript"
7272
require: "coffeescript/register"
7373

7474
options = for key, val of options

lib-src/cfenv.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ getName = (appEnv, options) ->
193193

194194
if fs.existsSync "manifest.yml"
195195
yString = fs.readFileSync "manifest.yml", "utf8"
196-
yObject = yaml.safeLoad yString, filename: "manifest.yml"
196+
yObject = yaml.load yString, filename: "manifest.yml"
197197

198198
yObject = yObject.applications[0] if yObject.applications?
199199
return yObject.name if yObject.name?

lib/cfenv.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cfenv",
33
"main": "./lib/cfenv",
44
"description": "easy access to your Cloud Foundry application environment",
5-
"version": "1.2.3",
5+
"version": "1.2.4",
66
"author": "pmuellr",
77
"license": "Apache-2.0",
88
"homepage": "https://github.com/cloudfoundry-community/node-cfenv",
@@ -17,14 +17,14 @@
1717
"watch": "jbuild watch"
1818
},
1919
"dependencies": {
20-
"js-yaml": "3.13.x",
20+
"js-yaml": "4.0.x",
2121
"ports": "1.1.x",
22-
"underscore": "1.9.x"
22+
"underscore": "1.12.x"
2323
},
2424
"devDependencies": {
2525
"coffeescript": "1.12.x",
2626
"expect.js": "0.3.x",
2727
"jbuild": "1.0.x",
28-
"mocha": "5.1.x"
28+
"mocha": "8.3.x"
2929
}
3030
}

0 commit comments

Comments
 (0)