Skip to content

Commit 1235b45

Browse files
committed
Add deprecation warning for JSON type
This should make the JSON -> Value rename a non-breaking one. Existing code using the JSON type will continue to work, but will also prompt users to switch to the Value type.
1 parent 66be851 commit 1235b45

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Argo.xcodeproj/project.pbxproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@
160160
F862E0AE1A519D5C0093B028 /* types_fail_embedded.json in Resources */ = {isa = PBXBuildFile; fileRef = EA4EAF7219DD96330036AE0D /* types_fail_embedded.json */; };
161161
F874B7EA1A66BF52004CCE5E /* root_array.json in Resources */ = {isa = PBXBuildFile; fileRef = F874B7E91A66BF52004CCE5E /* root_array.json */; };
162162
F874B7EB1A66C221004CCE5E /* root_array.json in Resources */ = {isa = PBXBuildFile; fileRef = F874B7E91A66BF52004CCE5E /* root_array.json */; };
163+
F874DE8F1F7FFDE600D885C3 /* Deprecations.swift in Sources */ = {isa = PBXBuildFile; fileRef = F874DE8E1F7FFDE600D885C3 /* Deprecations.swift */; };
164+
F874DE901F7FFDE600D885C3 /* Deprecations.swift in Sources */ = {isa = PBXBuildFile; fileRef = F874DE8E1F7FFDE600D885C3 /* Deprecations.swift */; };
165+
F874DE911F7FFDE600D885C3 /* Deprecations.swift in Sources */ = {isa = PBXBuildFile; fileRef = F874DE8E1F7FFDE600D885C3 /* Deprecations.swift */; };
166+
F874DE921F7FFDE600D885C3 /* Deprecations.swift in Sources */ = {isa = PBXBuildFile; fileRef = F874DE8E1F7FFDE600D885C3 /* Deprecations.swift */; };
163167
F87897EF1A927864009316A5 /* Argo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EAD9FACF19D0EAB50031E006 /* Argo.framework */; };
164168
F87EB6A41ABC5F1300E3B0AB /* decode.swift in Sources */ = {isa = PBXBuildFile; fileRef = F87EB69A1ABC5F1300E3B0AB /* decode.swift */; };
165169
F87EB6A51ABC5F1300E3B0AB /* decode.swift in Sources */ = {isa = PBXBuildFile; fileRef = F87EB69A1ABC5F1300E3B0AB /* decode.swift */; };
@@ -329,6 +333,7 @@
329333
F85F93431D42C8D6001C8EA7 /* Curry.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Curry.framework; path = Carthage/Checkouts/Curry/build/Debug/Curry.framework; sourceTree = "<group>"; };
330334
F85F93451D42C8DD001C8EA7 /* Curry.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Curry.framework; path = "Carthage/Checkouts/Curry/build/Debug-appletvos/Curry.framework"; sourceTree = "<group>"; };
331335
F874B7E91A66BF52004CCE5E /* root_array.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = root_array.json; sourceTree = "<group>"; };
336+
F874DE8E1F7FFDE600D885C3 /* Deprecations.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Deprecations.swift; sourceTree = "<group>"; };
332337
F87EB69A1ABC5F1300E3B0AB /* decode.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = decode.swift; sourceTree = "<group>"; };
333338
F87EB69B1ABC5F1300E3B0AB /* flatReduce.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = flatReduce.swift; sourceTree = "<group>"; };
334339
F87EB69C1ABC5F1300E3B0AB /* sequence.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = sequence.swift; sourceTree = "<group>"; };
@@ -469,6 +474,7 @@
469474
F87EB69D1ABC5F1300E3B0AB /* Types */,
470475
F87EB6981ABC5F1300E3B0AB /* Functions */,
471476
F8CBE6651A6451F800316FBC /* Extensions */,
477+
F874DE8E1F7FFDE600D885C3 /* Deprecations.swift */,
472478
);
473479
name = Argo;
474480
path = Sources/Argo;
@@ -964,6 +970,7 @@
964970
isa = PBXSourcesBuildPhase;
965971
buildActionMask = 2147483647;
966972
files = (
973+
F874DE921F7FFDE600D885C3 /* Deprecations.swift in Sources */,
967974
EA9159F81BDE74E400D85292 /* Monad.swift in Sources */,
968975
809754DF1BADF36D00C409E6 /* (null) in Sources */,
969976
EA9159F71BDE74C700D85292 /* catDecoded.swift in Sources */,
@@ -1017,6 +1024,7 @@
10171024
files = (
10181025
EA04D59B1BBF1FA4001DE23B /* Applicative.swift in Sources */,
10191026
D0592EC11B77DD8E00EFEF39 /* StandardTypes.swift in Sources */,
1027+
F874DE911F7FFDE600D885C3 /* Deprecations.swift in Sources */,
10201028
EA04D59F1BBF1FB9001DE23B /* Alternative.swift in Sources */,
10211029
D0592EC01B77DD8E00EFEF39 /* Decodable.swift in Sources */,
10221030
D0592EC51B77DD9A00EFEF39 /* decode.swift in Sources */,
@@ -1041,6 +1049,7 @@
10411049
files = (
10421050
F87EB6AA1ABC5F1300E3B0AB /* Decoded.swift in Sources */,
10431051
EA04D5991BBF1FA4001DE23B /* Applicative.swift in Sources */,
1052+
F874DE8F1F7FFDE600D885C3 /* Deprecations.swift in Sources */,
10441053
BF92789D1B9365900038A7E1 /* RawRepresentable.swift in Sources */,
10451054
EA04D59D1BBF1FB9001DE23B /* Alternative.swift in Sources */,
10461055
F87EB6AE1ABC5F1300E3B0AB /* Decodable.swift in Sources */,
@@ -1091,6 +1100,7 @@
10911100
files = (
10921101
F87EB6AB1ABC5F1300E3B0AB /* Decoded.swift in Sources */,
10931102
EA04D59A1BBF1FA4001DE23B /* Applicative.swift in Sources */,
1103+
F874DE901F7FFDE600D885C3 /* Deprecations.swift in Sources */,
10941104
F87EB6AF1ABC5F1300E3B0AB /* Decodable.swift in Sources */,
10951105
EA04D59E1BBF1FB9001DE23B /* Alternative.swift in Sources */,
10961106
F87EB6A51ABC5F1300E3B0AB /* decode.swift in Sources */,

Sources/Argo/Deprecations.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@available(*, deprecated, renamed: "Value")
2+
public typealias JSON = Value

0 commit comments

Comments
 (0)