Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: readium/go-toolkit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: readium/go-toolkit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: develop
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on May 29, 2024

  1. Copy the full SHA
    6c1939d View commit details
  2. Fix Dockerfile

    chocolatkey committed May 29, 2024
    Copy the full SHA
    c78e26d View commit details
  3. Update Dockerfile

    chocolatkey committed May 29, 2024
    Copy the full SHA
    d5261d5 View commit details
  4. Copy the full SHA
    1b3743b View commit details
  5. Copy the full SHA
    2463a84 View commit details
  6. Copy the full SHA
    733d594 View commit details
  7. fix demo EPUB permissions

    chocolatkey committed May 29, 2024
    Copy the full SHA
    f3fc0c0 View commit details
  8. Copy the full SHA
    a30cf1d View commit details
  9. Copy the full SHA
    b712bea View commit details
  10. Improvements to build

    chocolatkey committed May 29, 2024
    Copy the full SHA
    e022f93 View commit details
  11. Copy the full SHA
    7f71e92 View commit details
  12. Copy the full SHA
    90e2084 View commit details

Commits on Jun 17, 2024

  1. Update cmd/rwp/cmd/serve.go

    Co-authored-by: Mickaël Menu <mickael.menu@gmail.com>
    chocolatkey and mickael-menu authored Jun 17, 2024
    Copy the full SHA
    916550e View commit details

Commits on Jul 3, 2024

  1. Compressed resource optimization (#93)

    Co-authored-by: Mickaël Menu <mickael.menu@gmail.com>
    chocolatkey and mickael-menu authored Jul 3, 2024
    Copy the full SHA
    cbc0d22 View commit details

Commits on Aug 5, 2024

  1. Copy the full SHA
    c5f4054 View commit details
  2. Copy the full SHA
    20dcb7f View commit details

Commits on Sep 11, 2024

  1. Copy the full SHA
    7cd7937 View commit details

Commits on Sep 12, 2024

  1. [StepSecurity] Apply security best practices (#98)

    Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    step-security-bot and chocolatkey authored Sep 12, 2024
    Copy the full SHA
    b76a953 View commit details
  2. Bump golang from af9b40f to 1a5326b (#104)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 12, 2024
    Copy the full SHA
    d413702 View commit details
  3. Bump actions/upload-artifact from 4.3.4 to 4.4.0 (#105)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Sep 12, 2024
    Copy the full SHA
    b3367b5 View commit details
  4. Bump step-security/harden-runner from 2.9.0 to 2.10.1 (#107)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Sep 12, 2024
    Copy the full SHA
    3ab6984 View commit details
  5. Bump golang.org/x/text from 0.14.0 to 0.18.0 (#108)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Sep 12, 2024
    Copy the full SHA
    c1785a1 View commit details
  6. Bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#109)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Sep 12, 2024
    Copy the full SHA
    9fa9e0c View commit details
  7. Bump github.com/deckarep/golang-set from 1.7.1 to 1.8.0 (#110)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Sep 12, 2024
    Copy the full SHA
    a3da7c4 View commit details
  8. Bump github.com/relvacode/iso8601 from 1.1.0 to 1.4.0 (#111)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Sep 12, 2024
    Copy the full SHA
    3946006 View commit details
  9. Bump github/codeql-action from 3.25.15 to 3.26.6 (#112)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Sep 12, 2024
    Copy the full SHA
    e383270 View commit details
  10. Bump golang.org/x/net from 0.23.0 to 0.29.0 (#113)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Sep 12, 2024
    Copy the full SHA
    b9adfd6 View commit details
  11. Bump golang.org/x/image from 0.11.0 to 0.18.0 (#114)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Sep 12, 2024
    Copy the full SHA
    497974a View commit details
  12. Copy the full SHA
    5285f17 View commit details
  13. Bump github.com/go-viper/mapstructure/v2 from 2.0.0 to 2.1.0 (#120)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 12, 2024
    Copy the full SHA
    07795b4 View commit details
  14. Bump github.com/gorilla/mux from 1.7.4 to 1.8.1 (#118)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Sep 12, 2024
    Copy the full SHA
    2758605 View commit details
  15. Bump github.com/spf13/cobra from 1.6.1 to 1.8.1 (#117)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Sep 12, 2024
    Copy the full SHA
    2d2a67f View commit details

Commits on Sep 22, 2024

  1. Bump github/codeql-action from 3.26.6 to 3.26.8 (#122)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 22, 2024
    Copy the full SHA
    26e773e View commit details

Commits on Sep 27, 2024

  1. Bump actions/checkout from 4.1.7 to 4.2.0 (#126)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 27, 2024
    Copy the full SHA
    31c6a65 View commit details

Commits on Oct 3, 2024

  1. Bump github/codeql-action from 3.26.8 to 3.26.10 (#128)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 3, 2024
    Copy the full SHA
    3bd9f3c View commit details
  2. Bump golang from 1a5326b to b95f2e2 (#127)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Oct 3, 2024
    Copy the full SHA
    8398e01 View commit details

Commits on Oct 9, 2024

  1. Bump actions/checkout from 4.2.0 to 4.2.1 (#138)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 9, 2024
    Copy the full SHA
    7c0b1e6 View commit details
  2. Bump actions/upload-artifact from 4.4.0 to 4.4.1 (#137)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Oct 9, 2024
    Copy the full SHA
    17cfbeb View commit details
  3. Bump golang from b95f2e2 to 18d2f94 (#131)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Oct 9, 2024
    Copy the full SHA
    70285fc View commit details
  4. Bump docker/setup-buildx-action from 3.6.1 to 3.7.1 (#133)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Oct 9, 2024
    Copy the full SHA
    afb3f35 View commit details
  5. Bump golang.org/x/net from 0.29.0 to 0.30.0 (#135)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Oct 9, 2024
    Copy the full SHA
    30a02b7 View commit details
  6. Bump github/codeql-action from 3.26.10 to 3.26.12 (#136)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 9, 2024
    Copy the full SHA
    49642a2 View commit details
  7. Copy the full SHA
    9305ff9 View commit details

Commits on Nov 18, 2024

  1. Bump golang.org/x/text from 0.19.0 to 0.20.0 (#150)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 18, 2024
    Copy the full SHA
    3c7ecd4 View commit details
  2. Bump actions/checkout from 4.2.1 to 4.2.2 (#148)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Nov 18, 2024
    Copy the full SHA
    beac180 View commit details
  3. Bump github.com/relvacode/iso8601 from 1.4.0 to 1.5.0 (#144)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Nov 18, 2024
    Copy the full SHA
    d922ce5 View commit details
  4. Bump golang from 18d2f94 to 2eb2527 (#145)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Nov 18, 2024
    Copy the full SHA
    4ac4393 View commit details
  5. Bump actions/dependency-review-action from 4.3.4 to 4.4.0 (#149)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Nov 18, 2024
    Copy the full SHA
    86ca697 View commit details
  6. Bump actions/upload-artifact from 4.4.1 to 4.4.3 (#142)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Nov 18, 2024
    Copy the full SHA
    2780ca5 View commit details
  7. Bump github/codeql-action from 3.26.12 to 3.27.4 (#155)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry <chocolatkey@gmail.com>
    dependabot[bot] and chocolatkey authored Nov 18, 2024
    Copy the full SHA
    5b12865 View commit details
Showing with 9,221 additions and 3,345 deletions.
  1. +0 −13 .eslintrc.js
  2. +24 −0 .github/dependabot.yml
  3. +14 −5 .github/workflows/build.yml
  4. +78 −0 .github/workflows/codeql.yml
  5. +27 −0 .github/workflows/dependency-review.yml
  6. +0 −30 .github/workflows/release.yml
  7. +76 −0 .github/workflows/scorecards.yml
  8. +1 −2 .gitignore
  9. +0 −39 .goreleaser.yaml
  10. +14 −0 .pre-commit-config.yaml
  11. +74 −6 CHANGELOG.md
  12. 0 LICENSE.md → LICENSE
  13. +0 −15 Makefile
  14. +2 −55 README.md
  15. +0 −123 cmd/rwp/cmd/manifest.go
  16. +0 −27 cmd/rwp/cmd/root.go
  17. +0 −7 cmd/rwp/main.go
  18. +0 −5 cmd/server/README.MD
  19. +0 −242 cmd/server/api/server.go
  20. +0 −11 cmd/server/api/structs.go
  21. +0 −1 cmd/server/configs/.gitignore
  22. +0 −12 cmd/server/configs/config.local.toml.example
  23. +0 −124 cmd/server/internal/config/config.go
  24. +0 −7 cmd/server/internal/consts/consts.go
  25. +0 −57 cmd/server/internal/logging/logging.go
  26. +0 −46 cmd/server/main.go
  27. +75 −32 go.mod
  28. +216 −395 go.sum
  29. +454 −0 pkg/analyzer/image.go
  30. +151 −0 pkg/analyzer/image_test.go
  31. BIN pkg/analyzer/testdata/animated.png
  32. BIN pkg/analyzer/testdata/animated.webp
  33. BIN pkg/analyzer/testdata/catsink.jpg
  34. BIN pkg/analyzer/testdata/corrupt.png
  35. BIN pkg/analyzer/testdata/frame1.jxl
  36. BIN pkg/analyzer/testdata/frame1.png
  37. BIN pkg/analyzer/testdata/frame2.png
  38. +32 −10 pkg/archive/archive.go
  39. +25 −4 pkg/archive/archive_exploded.go
  40. +102 −0 pkg/archive/archive_gcs.go
  41. +143 −0 pkg/archive/archive_http.go
  42. +125 −0 pkg/archive/archive_s3.go
  43. +3 −1 pkg/archive/archive_test.go
  44. +127 −9 pkg/archive/archive_zip.go
  45. +10 −0 pkg/archive/compression.go
  46. +12 −0 pkg/archive/gzip.go
  47. +342 −0 pkg/archive/remote.go
  48. +38 −17 pkg/asset/asset_file.go
  49. +144 −0 pkg/asset/asset_gcs.go
  50. +144 −0 pkg/asset/asset_http.go
  51. +5 −3 pkg/asset/asset_publication.go
  52. +152 −0 pkg/asset/asset_s3.go
  53. +8 −7 pkg/content/content.go
  54. +0 −3 pkg/content/element/element.go
  55. +13 −12 pkg/content/iterator/html.go
  56. +25 −23 pkg/content/iterator/html_converter.go
  57. +16 −12 pkg/content/iterator/iterator.go
  58. +24 −22 pkg/content/iterator/publication.go
  59. +9 −5 pkg/fetcher/fetcher.go
  60. +90 −27 pkg/fetcher/fetcher_archive.go
  61. +36 −34 pkg/fetcher/fetcher_archive_test.go
  62. +29 −38 pkg/fetcher/fetcher_file.go
  63. +52 −51 pkg/fetcher/fetcher_file_test.go
  64. +257 −0 pkg/fetcher/fetcher_gcs.go
  65. +257 −0 pkg/fetcher/fetcher_http.go
  66. +279 −0 pkg/fetcher/fetcher_s3.go
  67. +9 −5 pkg/fetcher/fetcher_transforming.go
  68. +184 −0 pkg/fetcher/fs.go
  69. +3 −2 pkg/fetcher/reader.go
  70. +290 −58 pkg/fetcher/resource.go
  71. +9 −24 pkg/fetcher/resource_bytes.go
  72. +17 −0 pkg/fetcher/traits.go
  73. +93 −5 pkg/manifest/a11y.go
  74. +30 −2 pkg/manifest/a11y_test.go
  75. +12 −11 pkg/manifest/collection.go
  76. +23 −22 pkg/manifest/collection_test.go
  77. +8 −8 pkg/manifest/contributor.go
  78. +4 −6 pkg/manifest/contributor_test.go
  79. +24 −0 pkg/manifest/guided_navigation.go
  80. +111 −0 pkg/manifest/href.go
  81. +62 −0 pkg/manifest/href_normalizer.go
  82. +70 −0 pkg/manifest/href_test.go
  83. +93 −119 pkg/manifest/link.go
  84. +55 −54 pkg/manifest/link_test.go
  85. +57 −11 pkg/manifest/locator.go
  86. +66 −11 pkg/manifest/locator_test.go
  87. +115 −97 pkg/manifest/manifest.go
  88. +99 −95 pkg/manifest/manifest_test.go
  89. +93 −0 pkg/manifest/manifest_transformer.go
  90. +7 −0 pkg/manifest/media_overlay.go
  91. +73 −19 pkg/manifest/metadata.go
  92. +19 −5 pkg/manifest/metadata_test.go
  93. +1 −1 pkg/manifest/profile.go
  94. +22 −6 pkg/manifest/properties.go
  95. +103 −0 pkg/manifest/properties_hash.go
  96. +7 −7 pkg/manifest/subject.go
  97. +8 −8 pkg/manifest/subject_test.go
  98. +72 −0 pkg/manifest/tdm.go
  99. +50 −0 pkg/manifest/tdm_test.go
  100. +32 −5 pkg/mediatype/mediatype.go
  101. +39 −22 pkg/mediatype/mediatype_of.go
  102. +40 −24 pkg/mediatype/sniffer.go
  103. +52 −10 pkg/mediatype/sniffer_content.go
  104. +26 −7 pkg/mediatype/sniffer_context.go
  105. +0 −10 pkg/mediatype/sniffer_mimes.go
  106. +22 −22 pkg/mediatype/sniffer_test.go
  107. +29 −24 pkg/mediatype/types.go
  108. +70 −0 pkg/mediatype/types_matcher.go
  109. +1 −3 pkg/parser/epub/clock_value.go
  110. +2 −0 pkg/parser/epub/consts.go
  111. +86 −16 pkg/parser/epub/deobfuscator.go
  112. +11 −11 pkg/parser/epub/deobfuscator_test.go
  113. +7 −6 pkg/parser/epub/factory.go
  114. +124 −0 pkg/parser/epub/media_overlay_service.go
  115. +164 −75 pkg/parser/epub/metadata.go
  116. +115 −72 pkg/parser/epub/metadata_test.go
  117. +24 −30 pkg/parser/epub/parser.go
  118. +13 −9 pkg/parser/epub/parser_encryption.go
  119. +20 −12 pkg/parser/epub/parser_encryption_test.go
  120. +11 −17 pkg/parser/epub/parser_navdoc.go
  121. +32 −30 pkg/parser/epub/parser_navdoc_test.go
  122. +19 −16 pkg/parser/epub/parser_ncx.go
  123. +28 −26 pkg/parser/epub/parser_ncx_test.go
  124. +12 −10 pkg/parser/epub/parser_packagedoc.go
  125. +43 −38 pkg/parser/epub/parser_packagedoc_test.go
  126. +141 −0 pkg/parser/epub/parser_smil.go
  127. +57 −0 pkg/parser/epub/parser_smil_test.go
  128. +25 −21 pkg/parser/epub/positions_service.go
  129. +1 −1 pkg/parser/epub/positions_service_test.go
  130. +1 −0 pkg/parser/epub/property_data_type.go
  131. +6 −0 pkg/parser/epub/testdata/package/accessibility-epub2.opf
  132. +6 −0 pkg/parser/epub/testdata/package/accessibility-epub3.opf
  133. +27 −0 pkg/parser/epub/testdata/package/accessibility-refines.opf
  134. +15 −0 pkg/parser/epub/testdata/package/tdm-epub2.opf
  135. +15 −0 pkg/parser/epub/testdata/package/tdm-epub3.opf
  136. +22 −0 pkg/parser/epub/testdata/smil/audio-clip.smil
  137. +38 −0 pkg/parser/epub/testdata/smil/audio1.smil
  138. +65 −0 pkg/parser/epub/testdata/smil/w3-10.smil
  139. +17 −0 pkg/parser/epub/testdata/smil/w3-2.smil
  140. +61 −0 pkg/parser/epub/testdata/smil/w3-3.smil
  141. +20 −0 pkg/parser/epub/testdata/smil/w3-4.smil
  142. +29 −0 pkg/parser/epub/testdata/smil/w3-8.smil
  143. +53 −7 pkg/parser/epub/utils.go
  144. +3 −1 pkg/parser/parser.go
  145. +18 −13 pkg/parser/parser_audio.go
  146. +24 −20 pkg/parser/parser_image.go
  147. +10 −7 pkg/parser/parser_image_test.go
  148. +11 −9 pkg/parser/parser_readium_webpub.go
  149. +13 −8 pkg/parser/pdf/parser.go
  150. +12 −12 pkg/parser/pdf/parser_metadata.go
  151. +15 −11 pkg/parser/pdf/positions_service.go
  152. +6 −5 pkg/parser/utils.go
  153. +9 −9 pkg/parser/utils_test.go
  154. +3 −3 pkg/{drm → protection}/drm.go
  155. +22 −34 pkg/pub/publication.go
  156. +11 −6 pkg/pub/service.go
  157. +12 −10 pkg/pub/service_content.go
  158. +74 −0 pkg/pub/service_guided_navigation.go
  159. +22 −20 pkg/pub/service_positions.go
  160. +25 −21 pkg/pub/service_positions_test.go
  161. +51 −11 pkg/streamer/a11y_infer.go
  162. +67 −12 pkg/streamer/a11y_infer_test.go
  163. +32 −20 pkg/streamer/streamer.go
  164. BIN pkg/streamer/testdata/file.png
  165. +0 −112 pkg/util/href.go
  166. +0 −212 pkg/util/href_test.go
  167. +0 −102 pkg/util/uri_template.go
  168. +0 −55 pkg/util/uri_template_test.go
  169. +47 −0 pkg/util/url/scheme.go
  170. +2 −0 pkg/util/url/uritemplates/README.txt
  171. +248 −0 pkg/util/url/uritemplates/uritemplates.go
  172. +280 −0 pkg/util/url/uritemplates/uritemplates_test.go
  173. +32 −0 pkg/util/url/uritemplates/utils.go
  174. +426 −0 pkg/util/url/url.go
  175. +37 −0 pkg/util/url/url_remote.go
  176. +427 −0 pkg/util/url/url_test.go
  177. +67 −0 pkg/util/version/version.go
13 changes: 0 additions & 13 deletions .eslintrc.js

This file was deleted.

24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
open-pull-requests-limit: 5

- package-ecosystem: docker
directory: /
schedule:
interval: monthly
open-pull-requests-limit: 5

- package-ecosystem: gomod
directory: /
schedule:
interval: monthly
open-pull-requests-limit: 5
groups:
golang:
applies-to: security-updates
patterns:
- "golang.org*"
19 changes: 14 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -2,21 +2,30 @@ name: Build and Test

on:
push:
branches: [ main ]
branches: [ main, develop ]
pull_request:
branches: [ '**' ]

permissions:
contents: read

jobs:

build:
runs-on: ubuntu-latest
runs-on: [self-hosted, arm64]
steps:
- uses: actions/checkout@v2
- name: Harden Runner
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
go-version: 1.21
go-version: '>=1.23.0'
cache: false

- name: Build
run: go build -v ./...
78 changes: 78 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: ["develop"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["develop"]
schedule:
- cron: "0 0 * * 1"

permissions:
contents: read

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["go"]
# CodeQL supports [ $supported-codeql-languages ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Harden Runner
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
with:
category: "/language:${{matrix.language}}"
27 changes: 27 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request,
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
# Once installed, if the workflow run is marked as required,
# PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: 'Checkout Repository'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Dependency Review'
uses: actions/dependency-review-action@ce3cf9537a52e8119d91fd484ab5b8a807627bf8 # v4.6.0
30 changes: 0 additions & 30 deletions .github/workflows/release.yml

This file was deleted.

76 changes: 76 additions & 0 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.

name: Scorecard supply-chain security
on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '20 7 * * 2'
push:
branches: ["develop"]

# Declare default permissions as read only.
permissions: read-all

jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
contents: read
actions: read

steps:
- name: Harden Runner
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: "Checkout code"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
with:
results_file: results.sarif
results_format: sarif
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
# - you want to enable the Branch-Protection check on a *public* repository, or
# - you are installing Scorecards on a *private* repository
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
# repo_token: ${{ secrets.SCORECARD_TOKEN }}

# Public repositories:
# - Publish results to OpenSSF REST API for easy access by consumers
# - Allows the repository to include the Scorecard badge.
# - See https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories:
# - `publish_results` will always be set to `false`, regardless
# of the value entered here.
publish_results: true

# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
with:
sarif_file: results.sarif
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
publications/*
*.old
dist/
*.old
39 changes: 0 additions & 39 deletions .goreleaser.yaml

This file was deleted.

14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks
- repo: https://github.com/golangci/golangci-lint
rev: v1.52.2
hooks:
- id: golangci-lint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Loading