Permalink
Browse files

Updated History & docs

  • Loading branch information...
1 parent 86507df commit 30cc46a740c0030565007bb6bc09838053bfe9e5 Loren West committed Sep 26, 2012
View
@@ -1,3 +1,10 @@
+0.4.17 / 2012-09-26
+===================
+
+ * Allow the location of runtime.json to be picked up from the environment
+ * Added documentation for the NODE_CONFIG_RUNTIME_JSON environment variable
+ * package.json cleanup - created optionalDependencies and devDependencies
+
0.4.16 / 2012-08-09
===================
@@ -4,11 +4,11 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>test 1-protected-test.js </title>
- <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1338821083.05" />
- <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1338821083.05" />
+ <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1348692006.46" />
+ <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1348692006.46" />
- <script type="text/javascript" src="assets/api-js?stamp=1338821083.05"></script>
- <script type="text/javascript" src="assets/ac-js?stamp=1338821083.05"></script>
+ <script type="text/javascript" src="assets/api-js?stamp=1348692006.46"></script>
+ <script type="text/javascript" src="assets/ac-js?stamp=1348692006.46"></script>
</head>
<body id="node-monitor">
@@ -163,7 +163,7 @@
<span class="nx">assert</span><span class="p">.</span><span class="nx">deepEqual</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_extendDeep</span><span class="p">(</span><span class="nx">orig</span><span class="p">,</span> <span class="nx">extWith</span><span class="p">),</span> <span class="nx">shouldBe</span><span class="p">);</span>
<span class="p">},</span>
<span class="s1">&#39;Correctly types new objects and arrays&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
- <span class="kd">var</span> <span class="nx">orig</span> <span class="o">=</span> <span class="p">{</span><span class="nx">e1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">};</span>
+ <span class="kd">var</span> <span class="nx">orig</span> <span class="o">=</span> <span class="p">{</span><span class="nx">e1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">,</span> <span class="nx">e3</span><span class="o">:</span><span class="p">[</span><span class="s2">&quot;val5&quot;</span><span class="p">]};</span>
<span class="kd">var</span> <span class="nx">extWith</span> <span class="o">=</span> <span class="p">{</span><span class="nx">e2</span><span class="o">:</span><span class="p">{</span><span class="nx">elem1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">},</span> <span class="nx">e3</span><span class="o">:</span><span class="p">[</span><span class="s2">&quot;val6&quot;</span><span class="p">,</span><span class="s2">&quot;val7&quot;</span><span class="p">]};</span>
<span class="kd">var</span> <span class="nx">shouldBe</span> <span class="o">=</span> <span class="p">{</span><span class="nx">e1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">,</span> <span class="nx">e2</span><span class="o">:</span><span class="p">{</span><span class="nx">elem1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">},</span> <span class="nx">e3</span><span class="o">:</span><span class="p">[</span><span class="s2">&quot;val6&quot;</span><span class="p">,</span><span class="s2">&quot;val7&quot;</span><span class="p">]};</span>
<span class="kd">var</span> <span class="nx">ext</span> <span class="o">=</span> <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_extendDeep</span><span class="p">({},</span> <span class="nx">orig</span><span class="p">,</span> <span class="nx">extWith</span><span class="p">);</span>
@@ -418,7 +418,7 @@
<div id="ft">
<hr />
Released on <a href="https://github.com/lorenwest/node-config">github</a> under the <a href="https://github.com/lorenwest/node-config/blob/master/LICENSE">Apache License 2.0</a>
-<span class="subtitle">version 0.4.15</span>
+<span class="subtitle">version 0.4.17</span>
</div>
</div>
<script type="text/javascript">
@@ -4,11 +4,11 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>test 2-config-test.js </title>
- <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1338821083.05" />
- <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1338821083.05" />
+ <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1348692006.46" />
+ <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1348692006.46" />
- <script type="text/javascript" src="assets/api-js?stamp=1338821083.05"></script>
- <script type="text/javascript" src="assets/ac-js?stamp=1338821083.05"></script>
+ <script type="text/javascript" src="assets/api-js?stamp=1348692006.46"></script>
+ <script type="text/javascript" src="assets/ac-js?stamp=1348692006.46"></script>
</head>
<body id="node-monitor">
@@ -314,7 +314,7 @@
<div id="ft">
<hr />
Released on <a href="https://github.com/lorenwest/node-config">github</a> under the <a href="https://github.com/lorenwest/node-config/blob/master/LICENSE">Apache License 2.0</a>
-<span class="subtitle">version 0.4.15</span>
+<span class="subtitle">version 0.4.17</span>
</div>
</div>
<script type="text/javascript">
View
@@ -4,11 +4,11 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>config Config </title>
- <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1338821083.07" />
- <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1338821083.07" />
+ <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1348692006.48" />
+ <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1348692006.48" />
- <script type="text/javascript" src="assets/api-js?stamp=1338821083.07"></script>
- <script type="text/javascript" src="assets/ac-js?stamp=1338821083.07"></script>
+ <script type="text/javascript" src="assets/api-js?stamp=1348692006.48"></script>
+ <script type="text/javascript" src="assets/ac-js?stamp=1348692006.48"></script>
</head>
<body id="node-monitor">
@@ -1358,7 +1358,7 @@ <h3 id="methods">Methods</h3>
<div id="ft">
<hr />
Released on <a href="https://github.com/lorenwest/node-config">github</a> under the <a href="https://github.com/lorenwest/node-config/blob/master/LICENSE">Apache License 2.0</a>
-<span class="subtitle">version 0.4.15</span>
+<span class="subtitle">version 0.4.17</span>
</div>
</div>
<script type="text/javascript">
View
@@ -4,11 +4,11 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>test ConfigTest </title>
- <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1338821083.05" />
- <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1338821083.05" />
+ <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1348692006.46" />
+ <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1348692006.46" />
- <script type="text/javascript" src="assets/api-js?stamp=1338821083.05"></script>
- <script type="text/javascript" src="assets/ac-js?stamp=1338821083.05"></script>
+ <script type="text/javascript" src="assets/api-js?stamp=1348692006.46"></script>
+ <script type="text/javascript" src="assets/ac-js?stamp=1348692006.46"></script>
</head>
<body id="node-monitor">
@@ -120,7 +120,7 @@
<div id="ft">
<hr />
Released on <a href="https://github.com/lorenwest/node-config">github</a> under the <a href="https://github.com/lorenwest/node-config/blob/master/LICENSE">Apache License 2.0</a>
-<span class="subtitle">version 0.4.15</span>
+<span class="subtitle">version 0.4.17</span>
</div>
</div>
<script type="text/javascript">
@@ -4,11 +4,11 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>test ProtectedTest </title>
- <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1338821083.05" />
- <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1338821083.05" />
+ <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1348692006.46" />
+ <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1348692006.46" />
- <script type="text/javascript" src="assets/api-js?stamp=1338821083.05"></script>
- <script type="text/javascript" src="assets/ac-js?stamp=1338821083.05"></script>
+ <script type="text/javascript" src="assets/api-js?stamp=1348692006.46"></script>
+ <script type="text/javascript" src="assets/ac-js?stamp=1348692006.46"></script>
</head>
<body id="node-monitor">
@@ -120,7 +120,7 @@
<div id="ft">
<hr />
Released on <a href="https://github.com/lorenwest/node-config">github</a> under the <a href="https://github.com/lorenwest/node-config/blob/master/LICENSE">Apache License 2.0</a>
-<span class="subtitle">version 0.4.15</span>
+<span class="subtitle">version 0.4.17</span>
</div>
</div>
<script type="text/javascript">
View
@@ -4,11 +4,11 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>config config.js </title>
- <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1338821083.07" />
- <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1338821083.07" />
+ <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1348692006.48" />
+ <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1348692006.48" />
- <script type="text/javascript" src="assets/api-js?stamp=1338821083.07"></script>
- <script type="text/javascript" src="assets/ac-js?stamp=1338821083.07"></script>
+ <script type="text/javascript" src="assets/api-js?stamp=1348692006.48"></script>
+ <script type="text/javascript" src="assets/ac-js?stamp=1348692006.48"></script>
</head>
<body id="node-monitor">
@@ -57,8 +57,9 @@
<span class="kd">var</span> <span class="nx">DEFAULT_CLONE_DEPTH</span> <span class="o">=</span> <span class="mi">6</span><span class="p">,</span>
<span class="nx">FILE_WATCHER_INTERVAL</span> <span class="o">=</span> <span class="mi">2500</span><span class="p">,</span> <span class="c1">// For old style (pre-6.0) file watching</span>
<span class="nx">DIR</span> <span class="o">=</span> <span class="s1">&#39;NODE_CONFIG_DIR&#39;</span><span class="p">,</span>
- <span class="nx">CONFIG_DIR</span> <span class="o">=</span> <span class="nx">process</span><span class="p">.</span><span class="nx">env</span><span class="p">[</span><span class="nx">DIR</span><span class="p">]</span> <span class="o">?</span> <span class="nx">process</span><span class="p">.</span><span class="nx">env</span><span class="p">[</span><span class="nx">DIR</span><span class="p">]</span> <span class="o">:</span> <span class="nx">process</span><span class="p">.</span><span class="nx">cwd</span><span class="p">()</span> <span class="o">+</span> <span class="s1">&#39;/config&#39;</span><span class="p">,</span>
- <span class="nx">runtimeJsonFilename</span> <span class="o">=</span> <span class="nx">CONFIG_DIR</span> <span class="o">+</span> <span class="s1">&#39;/runtime.json&#39;</span><span class="p">,</span>
+ <span class="nx">CONFIG_DIR</span> <span class="o">=</span> <span class="nx">process</span><span class="p">.</span><span class="nx">env</span><span class="p">[</span><span class="nx">DIR</span><span class="p">]</span> <span class="o">||</span> <span class="nx">process</span><span class="p">.</span><span class="nx">cwd</span><span class="p">()</span> <span class="o">+</span> <span class="s1">&#39;/config&#39;</span><span class="p">,</span>
+ <span class="nx">RUNTIME</span> <span class="o">=</span> <span class="s1">&#39;NODE_CONFIG_RUNTIME_JSON&#39;</span><span class="p">,</span>
+ <span class="nx">runtimeJsonFilename</span> <span class="o">=</span> <span class="nx">process</span><span class="p">.</span><span class="nx">env</span><span class="p">[</span><span class="nx">RUNTIME</span><span class="p">]</span> <span class="o">||</span> <span class="nx">CONFIG_DIR</span> <span class="o">+</span> <span class="s1">&#39;/runtime.json&#39;</span><span class="p">,</span>
<span class="nx">originalConfig</span> <span class="o">=</span> <span class="kc">null</span><span class="p">,</span> <span class="c1">// Not including the runtime.json values</span>
<span class="nx">runtimeJson</span> <span class="o">=</span> <span class="p">{},</span> <span class="c1">// Current runtimeJson extensions</span>
<span class="nx">runtimeJsonWatcher</span> <span class="o">=</span> <span class="kc">null</span><span class="p">,</span> <span class="c1">// Filesystem watcher for runtime.json</span>
@@ -469,7 +470,7 @@
<span class="nx">Config</span><span class="p">.</span><span class="nx">prototype</span><span class="p">.</span><span class="nx">watchForConfigFileChanges</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">interval</span><span class="p">)</span> <span class="p">{</span>
<span class="c1">// Turn off any prior watching</span>
- <span class="kd">var</span> <span class="nx">t</span> <span class="o">=</span> <span class="k">this</span><span class="p">,</span> <span class="nx">watchInterval</span> <span class="o">=</span> <span class="nx">interval</span> <span class="o">||</span> <span class="nx">FILE_WATCHER_INTERVAL</span><span class="p">;</span>
+ <span class="kd">var</span> <span class="nx">t</span> <span class="o">=</span> <span class="k">this</span><span class="p">,</span> <span class="nx">watchInterval</span> <span class="o">=</span> <span class="p">(</span><span class="k">typeof</span> <span class="nx">interval</span> <span class="o">===</span> <span class="s1">&#39;undefined&#39;</span> <span class="o">?</span> <span class="nx">FILE_WATCHER_INTERVAL</span> <span class="o">:</span> <span class="nx">interval</span><span class="p">);</span>
<span class="k">if</span> <span class="p">(</span><span class="nx">FileSystem</span><span class="p">.</span><span class="nx">watch</span><span class="p">)</span> <span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="nx">runtimeJsonWatcher</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">runtimeJsonWatcher</span><span class="p">.</span><span class="nx">close</span><span class="p">();</span>
@@ -910,7 +911,7 @@
<span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">prop</span> <span class="k">in</span> <span class="nx">object1</span><span class="p">)</span> <span class="p">{</span>
<span class="c1">// Call recursively if an object or array</span>
- <span class="k">if</span> <span class="p">(</span><span class="nx">object1</span><span class="p">[</span><span class="nx">prop</span><span class="p">]</span> <span class="o">&amp;&amp;</span> <span class="k">typeof</span><span class="p">(</span><span class="nx">object1</span><span class="p">[</span><span class="nx">prop</span><span class="p">]</span> <span class="o">==</span> <span class="s1">&#39;object&#39;</span><span class="p">))</span> <span class="p">{</span>
+ <span class="k">if</span> <span class="p">(</span><span class="nx">object1</span><span class="p">[</span><span class="nx">prop</span><span class="p">]</span> <span class="o">&amp;&amp;</span> <span class="k">typeof</span><span class="p">(</span><span class="nx">object1</span><span class="p">[</span><span class="nx">prop</span><span class="p">])</span> <span class="o">===</span> <span class="s1">&#39;object&#39;</span><span class="p">)</span> <span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">t</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">(</span><span class="nx">object1</span><span class="p">[</span><span class="nx">prop</span><span class="p">],</span> <span class="nx">object2</span><span class="p">[</span><span class="nx">prop</span><span class="p">],</span> <span class="nx">depth</span> <span class="o">-</span> <span class="mi">1</span><span class="p">))</span> <span class="p">{</span>
<span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
<span class="p">}</span>
@@ -1174,7 +1175,7 @@
<div id="ft">
<hr />
Released on <a href="https://github.com/lorenwest/node-config">github</a> under the <a href="https://github.com/lorenwest/node-config/blob/master/LICENSE">Apache License 2.0</a>
-<span class="subtitle">version 0.4.15</span>
+<span class="subtitle">version 0.4.17</span>
</div>
</div>
<script type="text/javascript">
View
@@ -4,11 +4,11 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>test default.js </title>
- <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1338821083.05" />
- <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1338821083.05" />
+ <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1348692006.46" />
+ <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1348692006.46" />
- <script type="text/javascript" src="assets/api-js?stamp=1338821083.05"></script>
- <script type="text/javascript" src="assets/ac-js?stamp=1338821083.05"></script>
+ <script type="text/javascript" src="assets/api-js?stamp=1348692006.46"></script>
+ <script type="text/javascript" src="assets/ac-js?stamp=1348692006.46"></script>
</head>
<body id="node-monitor">
@@ -98,7 +98,7 @@
<div id="ft">
<hr />
Released on <a href="https://github.com/lorenwest/node-config">github</a> under the <a href="https://github.com/lorenwest/node-config/blob/master/LICENSE">Apache License 2.0</a>
-<span class="subtitle">version 0.4.15</span>
+<span class="subtitle">version 0.4.17</span>
</div>
</div>
<script type="text/javascript">
View
@@ -4,11 +4,11 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title> </title>
- <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1338821083.09" />
- <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1338821083.09" />
+ <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1348692006.51" />
+ <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1348692006.51" />
- <script type="text/javascript" src="assets/api-js?stamp=1338821083.09"></script>
- <script type="text/javascript" src="assets/ac-js?stamp=1338821083.09"></script>
+ <script type="text/javascript" src="assets/api-js?stamp=1348692006.51"></script>
+ <script type="text/javascript" src="assets/ac-js?stamp=1348692006.51"></script>
</head>
<body id="node-monitor">
@@ -100,7 +100,9 @@
</p>
<p>
The runtime.json file contains configuration changes made at runtime either
- manually, or by the application setting a configuration value. Node-config
+ manually, or by the application setting a configuration value. The location is
+ specified by <i>NODE_CONFIG_RUNTIME_JSON</i> environment variable. By default, it
+ is a file called runtime.json in <i>NODE_CONFIG_DIR</i> directory. Node-config
monitors this file and loads any new configurations it detects.
</p>
<p>
@@ -288,7 +290,7 @@
<div id="ft">
<hr />
Released on <a href="https://github.com/lorenwest/node-config">github</a> under the <a href="https://github.com/lorenwest/node-config/blob/master/LICENSE">Apache License 2.0</a>
-<span class="subtitle">version 0.4.15</span>
+<span class="subtitle">version 0.4.17</span>
</div>
</div>
<script type="text/javascript">
Oops, something went wrong.

0 comments on commit 30cc46a

Please sign in to comment.