source-map-sharp 1.0.9

dotnet add package source-map-sharp --version 1.0.9
NuGet\Install-Package source-map-sharp -Version 1.0.9
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="source-map-sharp" Version="1.0.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add source-map-sharp --version 1.0.9
#r "nuget: source-map-sharp, 1.0.9"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install source-map-sharp as a Cake Addin
#addin nuget:?package=source-map-sharp&version=1.0.9

// Install source-map-sharp as a Cake Tool
#tool nuget:?package=source-map-sharp&version=1.0.9

Source Map Sharp

Tests status

About

This is a direct rewrite (meaning, the goal was not to write 'idiomatic' F# code, but to resemble inital JS code as close as possible) of source map generation tool https://github.com/mozilla/source-map

Which is originally written in JS. The initial purpose is to use it with https://github.com/fable-compiler/Fable project

See https://github.com/fable-compiler/Fable/issues/2166 - "Bring back source map support"

UPD: The issue above was closed, and this project is now being used by Fable to generated Source Maps. Hooray!

Current support status

  • Fable - working fine
  • .NET - working fine

Running tests

dotnet:

dotnet test

Fable (js):

dotnet tool restore
pnpm install
pnpm test

Files - status

Legend:

๐Ÿ˜Š - Everything fine

๐Ÿคจ - Everything fine except minor details (or not important right now details)

๐Ÿ˜ด - Not needed / won't do

๐Ÿ˜จ - Should be done, but isn't

๐Ÿคฏ - Done but no tested

  1. ๐Ÿ˜Š ArraySet - Done & tested
  2. ๐Ÿ˜Š Base64 - Done & tested
  3. ๐Ÿ˜Š Base64-vlq - Done & tested
  4. ๐Ÿ˜ด binary-search - Not done, probably won't need
  5. ๐Ÿคจ mapping-list - Done, not tested specifically, coverage shows 95% via other tessts
  6. ๐Ÿ˜ด mapping.wasm - Not done, probably won't need
  7. ๐Ÿ˜ด read-wasm-browser - Not done, probably won't need
  8. ๐Ÿ˜ด read-wasm - Not done, probably won't need
  9. ๐Ÿ˜จ source-map-consumer - Not done, Don't know if will need it or not at the moment
  10. ๐Ÿ˜Š source-map-generator - Done except the consumer parts, tested except consumer parts
  11. ๐Ÿ˜Š source-node - Done except the consumer parts, tested except consumer parts
  12. ๐Ÿ˜ด url-browser - Not done, probably won't need
  13. ๐Ÿ˜ด url - Not done, probably won't need
  14. ๐Ÿคจ util - Done partially, what's needed
  15. ๐Ÿ˜ด wasm - Not done, probably won't need

Not done at the moment:

  1. SourceNode fromStringWithSourceMap function
  2. SourceMapGenerator fromSourceMap function
  3. SourceMapConsumer module
  4. SourceMapNode, SourceMapGenerator - consumer-related tests

Help needed

  1. Source map consumer
  2. Documentation & usage examples
  3. Decisions on WASM stuff - Rust repo https://github.com/fitzgen/source-map-mappings
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.9 11,246 2/17/2022
1.0.8 13,621 2/1/2022
1.0.7 3,690 4/12/2021
1.0.6 330 4/5/2021
1.0.5 539 3/22/2021
1.0.4 329 3/22/2021
1.0.3 364 3/21/2021
1.0.2 1,041 1/7/2021
1.0.1 390 1/5/2021
1.0.0 368 1/5/2021