Skip to content

Commit d279841

Browse files
authored
chore: update NEWS and release 1.4.3 (#799)
* rename master to main * update 1.4.3 in readme
1 parent 3a4ebbf commit d279841

File tree

9 files changed

+33
-29
lines changed

9 files changed

+33
-29
lines changed

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.4.3: October 17, 2023
2+
3+
- Optionally hide rendered environment variables ([#798](/../../pull/798))
4+
15
# 1.4.2: February 2, 2022
26

37
- Avoid instantiating arbitrary classes ([#758](/../../pull/758)) thanks to [@vlsi](https://github.com/vlsi) for the report and [@raboof](https://github.com/raboof) for the patch

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ You can find published releases on Maven Central.
101101
<dependency>
102102
<groupId>com.typesafe</groupId>
103103
<artifactId>config</artifactId>
104-
<version>1.4.2</version>
104+
<version>1.4.3</version>
105105
</dependency>
106106

107107
sbt dependency:
108108

109-
libraryDependencies += "com.typesafe" % "config" % "1.4.2"
109+
libraryDependencies += "com.typesafe" % "config" % "1.4.3"
110110

111111
Link for direct download if you don't use a dependency manager:
112112

RELEASING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Making a release
22

33
To make a release you'll need to be a maintainer with GitHub
4-
permissions to push to the master and gh-pages branches, and
4+
permissions to push to the main and gh-pages branches, and
55
Sonatype permissions to publish.
66

77
Here are the steps, which should be automated but aren't (PR
@@ -22,9 +22,9 @@ welcome!):
2222
9. make a separate clone of the repo in another directory and
2323
check out the gh-pages branch
2424
10. /bin/rm -rf latest/api on gh-pages checkout
25-
11. copy config/target/api from master checkout to vX.Y.Z in
25+
11. copy config/target/api from main checkout to vX.Y.Z in
2626
gh-pages so you have vX.Y.Z/index.html
27-
12. copy config/target/api from master checkout into latest/
27+
12. copy config/target/api from main checkout into latest/
2828
so you have latest/api/index.html
2929
13. commit all that to gh-pages, check the diff for sanity
3030
(latest/api should be mostly just changed timestamps)

config/src/main/java/com/typesafe/config/Config.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*
3737
* <p>
3838
* You can find an example app and library <a
39-
* href="https://github.com/lightbend/config/tree/master/examples">on
39+
* href="https://github.com/lightbend/config/tree/main/examples">on
4040
* GitHub</a>. Also be sure to read the <a
4141
* href="package-summary.html#package_description">package overview</a> which
4242
* describes the big picture as shown in those examples.
@@ -56,7 +56,7 @@
5656
* in a JSON object; it's just a string that's the key in a map. A "path" is a
5757
* parseable expression with a syntax and it refers to a series of keys. Path
5858
* expressions are described in the <a
59-
* href="https://github.com/lightbend/config/blob/master/HOCON.md">spec for
59+
* href="https://github.com/lightbend/config/blob/main/HOCON.md">spec for
6060
* Human-Optimized Config Object Notation</a>. In brief, a path is
6161
* period-separated so "a.b.c" looks for key c in object b in object a in the
6262
* root object. Sometimes double quotes are needed around special characters in
@@ -110,7 +110,7 @@
110110
* <p>
111111
* <em>Substitutions</em> are the <code>${foo.bar}</code> syntax in config
112112
* files, described in the <a href=
113-
* "https://github.com/lightbend/config/blob/master/HOCON.md#substitutions"
113+
* "https://github.com/lightbend/config/blob/main/HOCON.md#substitutions"
114114
* >specification</a>. Resolving substitutions replaces these references with real
115115
* values.
116116
*
@@ -189,7 +189,7 @@ public interface Config extends ConfigMergeable {
189189
/**
190190
* Returns a replacement config with all substitutions (the
191191
* <code>${foo.bar}</code> syntax, see <a
192-
* href="https://github.com/lightbend/config/blob/master/HOCON.md">the
192+
* href="https://github.com/lightbend/config/blob/main/HOCON.md">the
193193
* spec</a>) resolved. Substitutions are looked up using this
194194
* <code>Config</code> as the root object, that is, a substitution
195195
* <code>${foo.bar}</code> will be replaced with the result of
@@ -670,7 +670,7 @@ public interface Config extends ConfigMergeable {
670670
* the value is already a number, then it's left alone; if it's a string,
671671
* it's parsed understanding unit suffixes such as "128K", as documented in
672672
* the <a
673-
* href="https://github.com/lightbend/config/blob/master/HOCON.md">the
673+
* href="https://github.com/lightbend/config/blob/main/HOCON.md">the
674674
* spec</a>.
675675
*
676676
* @param path
@@ -690,7 +690,7 @@ public interface Config extends ConfigMergeable {
690690
* the value is already a number, then it's left alone; if it's a string,
691691
* it's parsed understanding unit suffixes such as "128K", as documented in
692692
* the <a
693-
* href="https://github.com/lightbend/config/blob/master/HOCON.md">the
693+
* href="https://github.com/lightbend/config/blob/main/HOCON.md">the
694694
* spec</a>.
695695
*
696696
* @since 1.3.0
@@ -711,7 +711,7 @@ public interface Config extends ConfigMergeable {
711711
* Get value as a duration in milliseconds. If the value is already a
712712
* number, then it's left alone; if it's a string, it's parsed understanding
713713
* units suffixes like "10m" or "5ns" as documented in the <a
714-
* href="https://github.com/lightbend/config/blob/master/HOCON.md">the
714+
* href="https://github.com/lightbend/config/blob/main/HOCON.md">the
715715
* spec</a>.
716716
*
717717
* @deprecated As of release 1.1, replaced by {@link #getDuration(String, TimeUnit)}
@@ -754,7 +754,7 @@ public interface Config extends ConfigMergeable {
754754
* number, then it's taken as milliseconds and then converted to the
755755
* requested TimeUnit; if it's a string, it's parsed understanding units
756756
* suffixes like "10m" or "5ns" as documented in the <a
757-
* href="https://github.com/lightbend/config/blob/master/HOCON.md">the
757+
* href="https://github.com/lightbend/config/blob/main/HOCON.md">the
758758
* spec</a>.
759759
*
760760
* @since 1.2.0
@@ -778,7 +778,7 @@ public interface Config extends ConfigMergeable {
778778
* already a number, then it's taken as milliseconds; if it's
779779
* a string, it's parsed understanding units suffixes like
780780
* "10m" or "5ns" as documented in the <a
781-
* href="https://github.com/lightbend/config/blob/master/HOCON.md">the
781+
* href="https://github.com/lightbend/config/blob/main/HOCON.md">the
782782
* spec</a>. This method never returns null.
783783
*
784784
* @since 1.3.0
@@ -800,7 +800,7 @@ public interface Config extends ConfigMergeable {
800800
* already a number, then it's taken as days; if it's
801801
* a string, it's parsed understanding units suffixes like
802802
* "10d" or "5w" as documented in the <a
803-
* href="https://github.com/lightbend/config/blob/master/HOCON.md">the
803+
* href="https://github.com/lightbend/config/blob/main/HOCON.md">the
804804
* spec</a>. This method never returns null.
805805
*
806806
* @since 1.3.0

config/src/main/java/com/typesafe/config/ConfigFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* from a resource and nothing else.
3232
*
3333
* <p> You can find an example app and library <a
34-
* href="https://github.com/lightbend/config/tree/master/examples">on
34+
* href="https://github.com/lightbend/config/tree/main/examples">on
3535
* GitHub</a>. Also be sure to read the <a
3636
* href="package-summary.html#package_description">package
3737
* overview</a> which describes the big picture as shown in those
@@ -674,7 +674,7 @@ public static Config systemEnvironment() {
674674
/**
675675
* Converts a Java {@link java.util.Properties} object to a
676676
* {@link ConfigObject} using the rules documented in the <a
677-
* href="https://github.com/lightbend/config/blob/master/HOCON.md">HOCON
677+
* href="https://github.com/lightbend/config/blob/main/HOCON.md">HOCON
678678
* spec</a>. The keys in the <code>Properties</code> object are split on the
679679
* period character '.' and treated as paths. The values will all end up as
680680
* string values. If you have both "a=foo" and "a.b=bar" in your properties

config/src/main/java/com/typesafe/config/ConfigMergeable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface ConfigMergeable {
2727
*
2828
* <p>
2929
* The semantics of merging are described in the <a
30-
* href="https://github.com/lightbend/config/blob/master/HOCON.md">spec
30+
* href="https://github.com/lightbend/config/blob/main/HOCON.md">spec
3131
* for HOCON</a>. Merging typically occurs when either the same object is
3232
* created twice in the same file, or two config files are both loaded. For
3333
* example:

config/src/main/java/com/typesafe/config/ConfigResolveOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* A set of options related to resolving substitutions. Substitutions use the
88
* <code>${foo.bar}</code> syntax and are documented in the <a
9-
* href="https://github.com/lightbend/config/blob/master/HOCON.md">HOCON</a>
9+
* href="https://github.com/lightbend/config/blob/main/HOCON.md">HOCON</a>
1010
* spec.
1111
* <p>
1212
* Typically this class would be used with the method

config/src/main/java/com/typesafe/config/ConfigSyntax.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* The syntax of a character stream (<a href="http://json.org">JSON</a>, <a
8-
* href="https://github.com/lightbend/config/blob/master/HOCON.md">HOCON</a>
8+
* href="https://github.com/lightbend/config/blob/main/HOCON.md">HOCON</a>
99
* aka ".conf", or <a href=
1010
* "http://download.oracle.com/javase/7/docs/api/java/util/Properties.html#load%28java.io.Reader%29"
1111
* >Java properties</a>).
@@ -21,7 +21,7 @@ public enum ConfigSyntax {
2121
JSON,
2222
/**
2323
* The JSON-superset <a
24-
* href="https://github.com/lightbend/config/blob/master/HOCON.md"
24+
* href="https://github.com/lightbend/config/blob/main/HOCON.md"
2525
* >HOCON</a> format. Associated with the <code>.conf</code> file extension
2626
* and <code>application/hocon</code> Content-Type.
2727
*/

config/src/main/java/com/typesafe/config/package.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<p>
1717
Typically you would load configuration with a static method from {@link com.typesafe.config.ConfigFactory} and then use
1818
it with methods in the {@link com.typesafe.config.Config} interface. Configuration may be in the form of JSON files,
19-
Java properties, or <a href="https://github.com/lightbend/config/blob/master/HOCON.md">HOCON files</a>; you may also
19+
Java properties, or <a href="https://github.com/lightbend/config/blob/main/HOCON.md">HOCON files</a>; you may also
2020
build your own configuration in code or from your own file formats.
2121
</p>
2222

@@ -26,8 +26,8 @@
2626
If you use the default configuration from {@link com.typesafe.config.ConfigFactory#load()}
2727
there's no need to pass a configuration to your libraries
2828
and frameworks, as long as they all default to this same default, which they should.
29-
<br/><strong>Example application code:</strong> <a href="https://github.com/lightbend/config/tree/master/examples/java/simple-app/src/main">Java</a> and <a href="https://github.com/lightbend/config/tree/master/examples/scala/simple-app/src/main">Scala</a>.
30-
<br/>Showing a couple of more special-purpose features, <strong>a more complex example:</strong> <a href="https://github.com/lightbend/config/tree/master/examples/java/complex-app/src/main">Java</a> and <a href="https://github.com/lightbend/config/tree/master/examples/scala/complex-app/src/main">Scala</a>.
29+
<br/><strong>Example application code:</strong> <a href="https://github.com/lightbend/config/tree/main/examples/java/simple-app/src/main">Java</a> and <a href="https://github.com/lightbend/config/tree/main/examples/scala/simple-app/src/main">Scala</a>.
30+
<br/>Showing a couple of more special-purpose features, <strong>a more complex example:</strong> <a href="https://github.com/lightbend/config/tree/main/examples/java/complex-app/src/main">Java</a> and <a href="https://github.com/lightbend/config/tree/main/examples/scala/complex-app/src/main">Scala</a>.
3131
</p>
3232

3333
<p>
@@ -36,21 +36,21 @@
3636
call {@link com.typesafe.config.ConfigFactory#load()}
3737
to get the default one. Typically a library might offer two constructors, one with a <code>Config</code> parameter
3838
and one which uses {@link com.typesafe.config.ConfigFactory#load()}.
39-
<br/><strong>Example library code:</strong> <a href="https://github.com/lightbend/config/tree/master/examples/java/simple-lib/src/main">Java</a> and <a href="https://github.com/lightbend/config/tree/master/examples/scala/simple-lib/src/main">Scala</a>.
39+
<br/><strong>Example library code:</strong> <a href="https://github.com/lightbend/config/tree/main/examples/java/simple-lib/src/main">Java</a> and <a href="https://github.com/lightbend/config/tree/main/examples/scala/simple-lib/src/main">Scala</a>.
4040
</p>
4141

4242
<p>
43-
Check out the full <a href="https://github.com/lightbend/config/tree/master/examples">examples directory on GitHub</a>.
43+
Check out the full <a href="https://github.com/lightbend/config/tree/main/examples">examples directory on GitHub</a>.
4444
</p>
4545

4646
<p>
4747
What else to read:
4848
<ul>
4949
<li>The overview documentation for interface {@link com.typesafe.config.Config}.</li>
50-
<li>The <a href="https://github.com/lightbend/config/blob/master/README.md">README</a> for the library.</li>
50+
<li>The <a href="https://github.com/lightbend/config/blob/main/README.md">README</a> for the library.</li>
5151
<li>If you want to use <code>.conf</code> files in addition to <code>.json</code> and <code>.properties</code>,
52-
see the <a href="https://github.com/lightbend/config/blob/master/README.md">README</a> for some short examples
53-
and the full <a href="https://github.com/lightbend/config/blob/master/HOCON.md">HOCON spec</a> for the long version.</li>
52+
see the <a href="https://github.com/lightbend/config/blob/main/README.md">README</a> for some short examples
53+
and the full <a href="https://github.com/lightbend/config/blob/main/HOCON.md">HOCON spec</a> for the long version.</li>
5454
</ul>
5555
</p>
5656

0 commit comments

Comments
 (0)