Skip to content

PowerShellUniversal.Component.Pivot 0.7.1

Choose a tag to compare

@github-actions github-actions released this 18 Nov 12:44
· 49 commits to main since this release
5b60c0e

Added

  • -SchemaUrl takes a path on the PSU server, such as /assets/pivot/schema/view-file-2.json. One
    value fits every instance, a local one on http://localhost included
    (#138).
    • The browser writes the path with the page's origin.
    • The template stores and ConvertTo-UDPivotViewFile take the origin of an https default.
    • Without one, they take the origin of the request (Origin, the page address, Referer). A
      template store uses the request of the save.
    • Without either, they stop with an error.
  • A module-wide default for -SchemaUrl: the environment variable PSU_COMPONENT_PIVOT_SCHEMA_URL
    of the PSU process. An explicit -SchemaUrl still wins, '' included.
  • The module ships pivotkit-core's view-file-1.json, view-file-2.json and view-2.json in its
    schema folder. They come from the pivotkit-core version the bundle is built from, so a host can
    publish the matching copy.

Changed

  • New-UDPivotReport, ConvertTo-UDPivotViewFile and the template stores check -SchemaUrl the
    same way: '', an https address or a path; no spaces, at most 2,000 characters, no user name or
    password. The scheme may be in any case. ConvertTo-UDPivotViewFile and the stores took any text
    before: an http:// address or another value now stops them with an error. The error text is new
    in all of them (#110).
  • An address of your own names the schema of the current format (view file format 2). A file of
    format 1 keeps pivotkit's view-file-1.json address, so it never names the schema of another
    format (#110).
  • An address of your own for a file of format 1 is no longer possible.

In the PowerShell Gallery: https://www.powershellgallery.com/packages/PowerShellUniversal.Component.Pivot/0.7.1