diff options
author | Pavel Savara <pavel.savara@gmail.com> | 2022-08-04 09:19:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 09:19:50 +0300 |
commit | 0d80733c267e5d19f78422b339b32923f0aa91c5 (patch) | |
tree | d9c0e638a55eb64a507011fef175cf288274ca66 /src/tasks/WasmAppBuilder/WasmAppBuilder.cs | |
parent | 0ea3031aaf195a5ba400708a24002f6a498097bb (diff) |
[wasm] deprecate legacy JS API and propose new (#73068)
- Added new API methods to top level next to MONO and BINDING namespaces
- marked MONO and BINDING namespaces obsolete
- separated legacy API into dotnet-legacy.d.ts
- renamed snake_case to camelCase names
Co-authored-by: Marek FiĊĦera <mara@neptuo.com>
Co-authored-by: Ankit Jain <radical@gmail.com>
Diffstat (limited to 'src/tasks/WasmAppBuilder/WasmAppBuilder.cs')
-rw-r--r-- | src/tasks/WasmAppBuilder/WasmAppBuilder.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tasks/WasmAppBuilder/WasmAppBuilder.cs b/src/tasks/WasmAppBuilder/WasmAppBuilder.cs index 38cf0e1a2e7..de25059d66d 100644 --- a/src/tasks/WasmAppBuilder/WasmAppBuilder.cs +++ b/src/tasks/WasmAppBuilder/WasmAppBuilder.cs @@ -54,7 +54,7 @@ public class WasmAppBuilder : Task // - Value: can be a number, bool, quoted string, or json string // // Examples: - // <WasmExtraConfig Include="enable_profiler" Value="true" /> + // <WasmExtraConfig Include="enableProfiler" Value="true" /> // <WasmExtraConfig Include="json" Value="{ "abc": 4 }" /> // <WasmExtraConfig Include="string_val" Value=""abc"" /> // <WasmExtraConfig Include="string_with_json" Value=""{ "abc": 4 }"" /> @@ -73,13 +73,13 @@ public class WasmAppBuilder : Task private sealed class WasmAppConfig { - [JsonPropertyName("assembly_root")] + [JsonPropertyName("assemblyRootFolder")] public string AssemblyRoot { get; set; } = "managed"; - [JsonPropertyName("debug_level")] + [JsonPropertyName("debugLevel")] public int DebugLevel { get; set; } = 0; [JsonPropertyName("assets")] public List<object> Assets { get; } = new List<object>(); - [JsonPropertyName("remote_sources")] + [JsonPropertyName("remoteSources")] public List<string> RemoteSources { get; set; } = new List<string>(); [JsonExtensionData] public Dictionary<string, object?> Extra { get; set; } = new(); @@ -117,14 +117,14 @@ public class WasmAppBuilder : Task private sealed class VfsEntry : AssetEntry { public VfsEntry(string name) : base(name, "vfs") {} - [JsonPropertyName("virtual_path")] + [JsonPropertyName("virtualPath")] public string? VirtualPath { get; set; } } private sealed class IcuData : AssetEntry { public IcuData(string name) : base(name, "icu") {} - [JsonPropertyName("load_remote")] + [JsonPropertyName("loadRemote")] public bool LoadRemote { get; set; } } |