Socket
Socket
Sign inDemoInstall

@statoscope/report-writer

Package Overview
Dependencies
5
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
234Next

5.28.1

Diff

Changelog

Source

5.28.1 (20 October 2023)

Fixes

  • [webpack-model] - revert chunk-asset linking logic from 5.25.1
smelukov
published 5.27.0 •

Changelog

Source

5.27.0 (24 August 2023)

Features

  • [webpack-model] - add module_retained_modules(module)-helper that returns retained modules by specific module

    In other words: retained ones will be removed from bundle along with the module

  • [webpack-ui] - support module_retained_modules in module tree. For example, you can see retained modules in the diff-page

  • [webpack-ui] - update discoveryjs from 1.0.0-beta.66 to 1.0.0-beta.77 (see changelog)

  • [webpack-ui] - expose Discovery namespace

    import Statoscope from '@statoscope/webpack-ui';
    
    console.log(Statoscope.Discovery);
    

    See usage example in dev.html

  • [webpack-ui] - expose Discovery data and view inspector that helps to debug custom statoscope reports

  • [webpack-ui] - add npm run dev to develop Statoscope UI more easily

  • [stats-validator-reporter-stats-report]: add disableReportCompression-option, disable it will increase the size a lot (false by default) (#210 by @icy0307)

  • [report-writer]: use jsonxl to compress stats in binary json (replacement for old solution)

Performance

  • [webpack-model] - improve initialization performance
smelukov
published 5.25.1 •

Changelog

Source

5.25.1 (19 February 2023)

Fixes

  • [report-writer] - fix decompression bug (closes #202)
  • [webpack-model] - fix assets collection when CompressionWebpackPlugin is used
  • [webpack-model] - fix trimming long module ids
  • [webpack-ui] - module search now works only for first 500 chars in module name (performance issue)
  • [webpack-ui] - fix incorrect badge for asset modules
smelukov
published 5.25.0 •

Changelog

Source

5.25.0 (17 February 2023)

Features

  • [webpack-plugin] - super-huge (up to 30 times) decrease of html-report size
  • [cli] - super-huge (up to 30 times) decrease of html-report size

Fixes

  • [webpack-model] - trim long module identifier (closes #200)
  • [webpack-ui] - fix descending modules sort on instant lists (related #162)
smelukov
published 5.25.0-alpha.0 •

smelukov
published 5.22.0 •

Changelog

Source

5.22.0 (03 July 2022)

This is 5.21 actually 🤦

Features

  • [cli] - add --custom-report and --config args for generate and serve commands (#157 by @amalitsky)
  • [config] - add generate.reports field (#157 by @amalitsky)
  • [webpack-model] - added helpers:
    • asset_getSize(asset: NormalizedAsset, hash: string, useCompressed: boolean): Size
    • assets_getTotalSize(assets: NormalizedAsset[], hash: string, useCompressed: boolean): Size
    • entrypoint_getChunks(entry: NormalizedEntrypointItem): NormalizedChunk[]
    • entrypoint_getInitialChunks(entry: NormalizedEntrypointItem): NormalizedChunk[]
    • entrypoint_getInitialSize(entry: NormalizedEntrypointItem, hash: string, useCompressed: boolean): Size
    • entrypoint_getAsyncChunks(entry: NormalizedEntrypointItem): NormalizedChunk[]
    • entrypoint_getAsyncSize(entry: NormalizedEntrypointItem, hash: string, useCompressed: boolean): Size
    • entrypoint_getAssets(entry: NormalizedEntrypointItem): NormalizedAsset[]
    • entrypoint_getInitialAssets(entry: NormalizedEntrypointItem): NormalizedAsset[]
    • entrypoint_getAsyncAssets(entry: NormalizedEntrypointItem): NormalizedAsset[]
    • resolveCompilationByAsset(asset: NormalizedAsset, filename: string): NormalizedCompilation | null
    • resolveCompilationByChunk(chunk: NormalizedChunk, filename: string): NormalizedCompilation | null
    • resolveCompilationByModule(module: NormalizedModule, filename: string): NormalizedCompilation | null
    • resolveCompilationByEntrypoint(entry: NormalizedEntrypointItem, filename: string): NormalizedCompilation | null

Fixes

  • [webpack-ui] - fix dashboard data
  • [webpack-model] - fix handling chunks with no files (#158 by @amalitsky)
smelukov
published 5.20.0 •

Changelog

Source

5.20.0 (23 January 2022)

Performance

  • [webpack-model] - huge performance improvement for stats normalization

Features

  • [webpack-plugin] - add normalizeStats that reduces stats size
  • [webpack-ui] - options and data props for chart-view as jora-query

Fixes

  • [cli] - minor fix for generate-command output

Other

  • [webpack-ui] - use the brand new Statoscope logo
  • [report-writer] - use logo as loading spinner
smelukov
published 5.14.1 •

Changelog

Source

5.14.1 (13 October 2021)

Fix

Republish all the packages because of npm bug

No changes

smelukov
published 5.9.0 •

Changelog

Source

5.9.0 (27 September 2021)

Features

  • [stats-extension-custom-reports] - add package for passing custom reports to the UI (#108)

  • [webpack-plugin] - support custom reports (#108)

  • [webpack-ui] - support custom reports (#108)

  • [helpers] - support lock/unlock for Resolver (#107) By default, all the resolvers is locked (no items can be added to resolver storage)

    const resolver = makeResolver(modules, m => m.identifier);
    modules.push(fooModule);
    resolver('foo'); // null
    resolver.unlock(); // allow to fetch resolver storage for new elements
    modules.push(fooModule);
    resolver('foo'); // fooModule
    

    In other words, locked resolver remembers its source items and ignores any source changes.

    It is useful for performance.

  • [helpers] - add Indexer to build an index (#108) Index is more complex of resolver. It provides some API to manipulate its storage:

    const moduleIndex = makeIndex(module => module.identifier); // no source needed
    moduleIndex.add(fooModule);
    moduleIndex.get('foo'); // fooModule
    moduleIndex.get('bar'); // null
    moduleIndex.add(barModule);
    moduleIndex.get('bar'); // barModule
    moduleIndex.getAll(); // [fooModule, barModule]
    
  • [stats-extension-compressed] - support indexer (#108)

  • [stats-extension-package-info] - support indexer (#108)

  • [stats-extension-stats-validation-result] - support indexer (#108)

  • [config] - add requireConfig (#108)

  • [cli] - support requireConfig (#108)

  • [cli] - add makeReplacer helper to create json replacer (#107)

  • [webpack-model] - add __statoscope.context field (#107)

  • [report-writer] - remove context path from stats (it makes all the path relative from context) (#107)

  • [webpack-plugin] - remove context path from stats (it makes all the path relative from context) (#107)

  • [webpack-stats-extension-package-info] - remove context path from stats (it makes all the path relative from context) (#107)

Refactor

  • [webpack-model] - use module.identifier to resolve a module (#107)

  • [webpack-model] - decouple extension and compilation (#108)

    Extensions have attached to files, not to compilations

  • [webpack-ui] - use module.identifier to resolve a module (#107)

  • [webpack-stats-extension-compressed] - use module.identifier to resolve a module (#107)

  • [stats-validator-plugin-webpack] - use module.identifier to resolve a module (#107)

Fixes

  • [webpack-model] - not fail when incomplete stats have used
smelukov
published 5.8.0 •

Changelog

Source

5.8.0 (15 September 2021)

Features

  • [cli, webpack-plugin, stats-validator-reporter-stats-report] - generate UI-reports with normalized stats (#104) It reduces generated UI-report size (sometimes it is more than 10x smaller)
  • [webpack-model, webpack-ui] - support normalized UI-reports (#104)
  • [stats-validator-plugin-webpack] - show changed reasons in diff-deprecated-modules/packages rules

Fixes

  • [webpack-model] - merge modules chunks info to collect more truthy info about modules chunks (#104)
234Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc