Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bazel/jasmine

Package Overview
Dependencies
Maintainers
3
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bazel/jasmine - npm Package Versions

1
14

2.0.0-rc.1

Diff

Changelog

Source

2.0.0-rc.1 (2020-07-06)

Bug Fixes

  • builtin: fix linker bug when there are no third-party modules (becd9bc)
  • builtin: fixes nodejs_binary to collect JSNamedModuleInfo (4f95cc4), closes #1998
  • builtin: linker silently not generating expected links in windows (2979fad)
  • typescript: add .proto files from npm deps to inputs of ts_library (#1991) (c1d4885)
  • typescript: add json to ts_project DefaultInfo, fix #1988 (f6fa264)
  • typescript: Exclude .json from _out_paths (91d81b3)
  • allow multiple run_node calls to be made from the same rule context (48bb9cc)

Features

  • add support for capturing and overriding the exit code within run_node (#1990) (cbdd3b0)
  • cypress: add cypress_web_test rule and @bazel/cypress package (3bac870)
  • typescript: add OutputGroupInfo to ts_project with type definitions (d660ca1), closes #1978
gregmagolan
published 2.0.0-rc.0 •

Changelog

Source

2.0.0-rc.0 (2020-06-23)

Bug Fixes

  • builtin: fix linker common path reduction bug where reduced path conflicts with node_modules (65d6029)
  • builtin: fix linker issue when running test with "local" tag on osx & linux (#1835) (98d3321)
  • builtin: fix regression in 1.6.0 in linker linking root package when under runfiles (b4149d8), closes #1823 #1850
  • builtin: linker no longer makes node_modules symlink to the root of the workspace output tree (044495c)
  • builtin: rerun yarn_install and npm_install when node version changes (8c1e035)
  • builtin: scrub node-patches VERBOSE_LOGS when asserting on stderr (45f9443)
  • labs: handle const/let syntax in generated protoc js (96a0690)
  • labs: make grpc service files tree shakable (a3bd81b)
  • don't expose an npm dependency from builtin (7b2b4cf)
  • terser: allow fallback binary resolution (3ffb3b1)

chore

Code Refactoring

  • remove install_source_map_support from nodejs_binary since it is vendored in (72f19e7)

Features

  • add JSModuleInfo provider (d3fcf85)
  • angular: introduce an Angular CLI builder (c87c83f)
  • jasmine: make jasmine a peerDep (e6890fc)
  • add stdout capture to npm_package_bin (3f182f0)
  • builtin: add DeclarationInfo to js_library (2b89f32)
  • introduce generated_file_test (3fbf2c0), closes #1893
  • builtin: enable coverage on nodejs_test (2059ea9)
  • builtin: use linker for all generated :bin targets (007a8f6)
  • examples: show how to use ts_library(use_angular_plugin) with worker mode (#1839) (a167311)
  • examples: upgrade rules_docker to 0.14.1 (ad2eba1)
  • rollup: update the peerDependencies version range to >=2.3.0 <3.0.0 (e05f5be)
  • typescript: add outdir to ts_project (3942fd9)
  • typescript: include label in the ts_project progress message (#1944) (76e8bd1), closes #1927
  • support bazel+js packages that install into regular @npm//package:index.bzl location (4f508b1)

BREAKING CHANGES

  • Adds JSModuleInfo provider as the common provider for passing & consuming javascript sources and related files such as .js.map, .json, etc.

For 1.0 we added JSNamedModuleInfo and JSEcmaScriptModuleInfo which were provided by ts_library and consumed by rules that needed to differentiate between the two default flavors of ts_library outputs (named-UMD & esm). We left out JSModuleInfo as its use case was unclear at the time.

For 2.0 we're adding JSModuleInfo as generic javascript provided for the rules_nodejs ecosystem. It is not currently opinionated about the module format of the sources or the language level. Consumers of JSModuleInfo should be aware of what module format & language level is being produced if necessary.

The following rules provide JSModuleInfo:

  • ts_library (devmode named-UMD .js output flavor)
  • ts_proto_library (devmode named-UMD .js output flavor)
  • node_module_library (this is a behind the scenes rule used by yarn_install & npm_install)
  • js_library (.js, .js.map & . json files)
  • rollup_bundle
  • terser_minfied
  • ts_project

The following rules consume JSModuleInfo:

  • nodejs_binary & nodejs_test (along with derivate macros such as jasmine_node_test); these rules no longer consume JSNamedModuleInfo
  • npm_package_bin
  • pkg_npm; no longer consumes JSNamedModuleInfo
  • karma_web_test (for config file instead of JSNamedModuleInfo; JSNamedModuleInfo still used for test files)
  • protractor_web_test (for config & on_prepare files instead of JSModuleInfo; JSNamedModuleInfo still used for test files)
  • rollup_bundle (if JSEcmaScriptModuleInfo not provided)
  • terser_minified
  • builtin: Any nodejs_binary/nodejs_test processes with the linker enabled (--nobazel_patch_module_resolver is set) that were relying on standard node_module resolution to resolve manfest file paths such as my_workspace/path/to/output/file.js must now use the runfiles helper such as.

Previously:

const absPath = require.resolve('my_workspace/path/to/output/file.js');

With runfiles helper:

const runfiles = require(process.env['BAZEL_NODE_RUNFILES_HELPER']);
const absPath = runfiles.resolve('my_workspace/path/to/output/file.js');
  • builtin: Removed provide_declarations() factory function for DeclarationInfo. Use declaration_info() factory function instead.
  • install_source_map_support attribute removed from nodejs_binary. source-map-support is vendored in at /third_party/github.com/source-map-support so it can always be installed.
  • builtin: jasmine_node_test not longer has the coverage attribute
  • rules_nodejs now requires Bazel 2.1 or greater. Also the hide_build_files attribute was removed from pkg_npm, and always_hide_bazel_files was removed from yarn_install and npm_install. These are no longer needed since 1.3.0
  • builtin: If you use the generated nodejs_binary or nodejs_test rules in the npm workspace, for example @npm//typescript/bin:tsc, your custom rule must now link the node_modules directory into that process. A typical way to do this is with the run_node helper. See updates to examples in this commit.
gregmagolan
published 1.7.0 •

gregmagolan
published 1.6.1 •

gregmagolan
published 1.6.0 •

Changelog

Source

1.6.0 (2020-04-11)

Features

  • builtin: export version to npm/yarn install (011278e)
  • jasmine: check pkg version to rules_nodejs (22bebbc)
  • typescript: wire up use_angular_plugin attribute (520493d)

Bug Fixes

  • builtin: always symlink node_modules at execroot/my_wksp/node_modules even when running in runfiles (#1805) (5c2f6c1)
  • builtin: don't allow symlinks to escape or enter bazel managed node_module folders (#1800) (4554ce7)
  • builtin: fix for pkg_npm single directory artifact dep case (5a7c1a7)
  • builtin: fix node patches lstat short-circuit logic (#1818) (b0627be)
  • builtin: fix npm_version_check.js when running outside of bazel (#1802) (afabe89)
  • builtin: look in the execroot for nodejs_binary source entry_points (#1816) (b84d65e), closes #1787 #1787
  • builtin: preserve lone $ in templated_args for legacy support (#1772) (72c14d8)
  • builtin: under runfiles linker should link node_modules folder at root of runfiles tree (13510ad)
  • rollup: fix worker not picking up config file changes (a19eb2b), closes #1790
  • typescript: don't mix worker mode and linker (55c6c4a), closes #1803 #1803
  • typescript: include extended tsconfigs in _TsConfigInfo (cd8520d), closes #1754

Examples

  • examples: add support for server side rendering with universal (c09ca89)
  • examples: build and consume an Angular workspace library (#1633) (b459d6d)

Documentation

  • docs: yarn_urls should be string_list, not string (3357c08)
gregmagolan
published 1.5.0 •

Changelog

Source

1.5.0 (2020-03-28)

Bug Fixes

  • builtin: entry point of a .tsx file is .js (#1732) (24607ed), closes #1730
  • builtin: fix for nodejs_binary entry point in bazel-out logic (#1739) (a6e29c2) (863c7de) closes #1606
  • jasmine: user templated_args should be passed to jasmine after 3 internal templated_args (#1743) (baa68c1)
  • typescript: fix ts_library to allow deps with module_name but no module_root attrs (#1738) (0b5ad2a)
  • typescript: pass rootDir to ts_project tsc actions (#1748) (13caf8b)

Features

  • builtin: add LinkablePackageInfo to pkg_npm, js_library & ts_library (1023852)
  • builtin: add support for predefined variables and custom variable to params_file (34b8cf4)
  • builtin: support $(rootpath), $(execpath), predefined & custom variables in templated_args (5358d56)
  • labs: introduce a new ts_proto_library with grpc support (8b43896)
  • rollup: add worker support to rollup_bundle (66db579)
  • typescript: add devmode_target, devmode_module, prodmode_target & prodmode_module attributes (#1687) (1a83a7f)
  • typescript: add ts_project rule (#1710) (26f6698)

Examples

  • examples: fix angular examples prod serve doesn't work on windows (#1699) (063fb13),

Documentation

gregmagolan
published 1.4.1 •

Changelog

Source

1.4.1 (2020-03-06)

Bug Fixes

  • builtin: Bazel build failing when project is not on the system drive on Windows (C:) (#1641) (d9cbb99f
  • windows_utils: Escaping \ and " before passing args to bash scrip… (#1685) (f9be953d
gregmagolan
published 1.4.0 •

Changelog

Source

1.4.0 (2020-03-02)

Bug Fixes

  • builtin: don't include external files when pkg_npm is in root package (#1677) (8089999), closes #1499
  • examples: change build target label to //src:prodapp (a7f07d1)
  • examples: fix angular examples to use bazelisk (02e6462)
  • ensure BAZEL_NODE_RUNFILES_HELPER & BAZEL_NODE_PATCH_REQUIRE are absolute (#1634) (25600ea)
  • expand_variables helper should handle external labels (3af3a0d)
  • logic error in expand_variables (#1631) (32c003f)
  • yarn cache path should be a string (#1679) (a43809b)
  • builtin: use posix paths in assembler (d635dca), closes #1635
  • create: use latest typescript (a8ba18e), closes #1602
  • examples: add fixes to angular architect (f6f40c3)
  • remove empty arguments from launcher (#1650) (aa3cd6c)

Features

  • @bazel/jasmine: update dependencies to jasmine v3.5.0 (98fab93)
  • docs: add authroing instructions (4dde728)
  • docs: add header anchor links (2002046)
  • docs: add vscode debugging section (78d308f)
  • examples: add serve to angular architect (1569f4b)
  • jasmine: configure XML reporter to capture detailed testlogs (8abd20d)
  • rollup: add args attribute to rollup_bundle rule (#1681) (94c6182)
  • rollup: add silent attr to rollup_bundle to support --silent flag (#1680) (18e8001)
  • typescript: use run_node helper to execute tsc (066a52c)
google-wombot
published 1.3.0 •

Changelog

Source

1.3.0 (2020-02-07)

Bug Fixes

  • builtin: strip leading v prefix from stamp (#1591) (39bb821)
  • angular example ts_scripts path in Windows (30d0f37), closes #1604
  • html script injection is broken on windows (7f7a45b), closes #1604
  • unset YARN_IGNORE_PATH before calling yarn in @nodejs targets (aee3003), closes #1588

Features

  • builtin: add environment attribute to yarn_install & npm_install (#1596) (87b2a64)
  • builtin: expose @npm//foo__all_files filegroup that includes all files in the npm package (#1600) (8d77827)
  • examples: add protractor angular architect (#1594) (d420019)
gregmagolan
published 1.2.4 •

Changelog

Source

1.2.4 (2020-01-31)

Bug Fixes

  • builtin: fix logic error in linker conflict resolution (#1597) (b864223)
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc