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

3.2.1

Diff

Changelog

Source

3.2.1 (2021-02-23)

Bug Fixes

  • remove --keep-names (4a26898)
  • update node versions map (#2484) (9506fe0)
  • esbuild: add --preserve-symlinks flag by default (eb71285)
  • esbuild: add link_workspace_root for workspace absolute imports (#2476) (ba7e48e), closes #2474
  • use ':' instead of '=' for esbuild 'define' argument (#2469) (b0fddae)
  • use ':' instead of '=' for esbuild 'external' argument (#2475) (bc7dc82)

Features

  • add generate_local_modules_build_files flag to yarn_install and npm_install rules (#2449) (a6449b7)
  • typescript: add data attribute (ac2097c)
alexeagle
published 3.2.0 •

Changelog

Source

3.2.0 (2021-02-13)

Bug Fixes

  • multi-linker linking when only output files in sandbox (ebb9481)
  • builtin: fix coverage source file paths (ae4ec78)
  • docs: fix formatting of nodejs_binary#chdir (1caced8)
  • docs: fix regex that replaces //packages with @bazel (c31c0b6)
  • docs: version selector shows 3.x (38f4f78)
  • typescript: allow up to typescript 4.2, add tests for 3.7-4.1 (ea168a7)
  • typescript: fixed build for external ts_project targets (c89e0aa)
  • version number not edited after release candidate (ac2bb62)

Features

  • add esbuild package (e7e5286)
  • builtin: add coverage all: true support (8386b97)
  • support for nested node_modules in linker (2c2cc6e)
alexeagle
published 3.1.0 •

Changelog

Source

3.1.0 (2021-02-02)

Bug Fixes

  • forward srcs, deps and visibility of dummy_bzl_library to the filegroup when publishing (0466084)
  • linker fix for invalid symlink creation path in createSymlinkAndPreserveContents (14086a8)
  • relative data paths in yarn_install & npm_install when symlink_node_modules=False and package.json is not at root (3c12dfe)
  • builtin: only generate a .tar pkg_npm output when requested (#2428) (4d8f15c)
  • builtin: pass quiet attr though to build file generation on npm / yarn install (#2400) (ceb76d6)
  • builtin: when using chdir attribute, don't write to source dir (3eb4260)
  • typescript: capture js files in outputs of ts_project if allow_js (9d7827b)
  • remove mirror.bazel.build from list of node_urls used to fetch NodeJS by default (#2408) (67b494b)
  • skip update NodeJS versions action on forks (#2396) (4e40d25)
  • examples: angualr universal_server (d5e8413)
  • update-nodejs-versions: Fix NodeJS version for running GitHub Action (4ab8252)

Features

  • builtin: add a chdir attribute to nodejs_test and npm_package_bin (0fde42b), closes #2323
  • typescript: create a better ts_project worker (#2416) (99bfe5f)
  • add support for NodeJS 15.x (#2366) (924fa41)
alexeagle
published 2.3.3 •

alexeagle
published 3.0.0 •

Changelog

Source

3.0.0 (2020-12-22)

For a full list for the breaking changes in 3.0.0 and other notes on migrating, see the Migrating to 3.0.0 wiki page.

Bug Fixes

  • builtin: only pass kwargs to the test, not the .update binary (#2361) (afa095b)

Code Refactoring

  • builtin: remove node_modules attribute from nodejs_binary, nodejs_test & ts_library (c2927af)

BREAKING CHANGES

  • builtin: We removed the node_modules attribute from nodejs_binary, nodejs_test, jasmine_node_test & ts_library.

If you are using the node_modules attribute, you can simply add the target specified there to the data or deps attribute of the rule instead.

For example,

nodejs_test(
    name = "test",
    data = [
        "test.js",
        "@npm//:node_modules",
    ],
    entry_point = "test.js",
)

or

ts_library(
    name = "lib",
    srcs = glob(["*.ts"]),
    tsconfig = ":tsconfig.json",
    deps = ["@npm//:node_modules"],
)

We also dropped support for filegroup based node_modules target and removed node_modules_filegroup from index.bzl.

If you are using this feature for user-managed deps, you must now a js_library target with external_npm_package set to True instead.

For example,

js_library(
    name = "node_modules",
    srcs = glob(
        include = [
            "node_modules/**/*.js",
            "node_modules/**/*.d.ts",
            "node_modules/**/*.json",
            "node_modules/.bin/*",
        ],
        exclude = [
            # Files under test & docs may contain file names that
            # are not legal Bazel labels (e.g.,
            # node_modules/ecstatic/test/public/中文/檔案.html)
            "node_modules/**/test/**",
            "node_modules/**/docs/**",
            # Files with spaces in the name are not legal Bazel labels
            "node_modules/**/* */**",
            "node_modules/**/* *",
        ],
    ),
    # Provide ExternalNpmPackageInfo which is used by downstream rules
    # that use these npm dependencies
    external_npm_package = True,
)

nodejs_test(
    name = "test",
    data = [
        "test.js",
        ":node_modules",
    ],
    entry_point = "test.js",
)

See examples/user_managed_deps for a working example of user-managed npm dependencies.

alexeagle
published 3.0.0-rc.1 •

Changelog

Source

3.0.0-rc.1 (2020-12-18)

Bug Fixes

  • builtin: add DeclarationInfo sources from dependencies as inputs to npm_package_bin driven actions (#2353) (a549411)

Features

  • builtin: use npm ci as default behaviour for installing node_modules (#2328) (1d650fb), closes #159
  • allow running NPM tools from execroot (#2297) (2a4ba8f)
  • create symlink for build files present on node modules installed with relative paths (#2330) (6f4fc17)
  • builtin: yarn install use --frozen-lockfile as default (b6a8cbb), closes #941
alexeagle
published 2.3.2 •

alexeagle
published 3.0.0-rc.0 •

Changelog

Source

3.0.0-rc.0 (2020-12-11)

Bug Fixes

  • builtin: --nobazel_run_linker implies --bazel_patch_module_resolver (7100277)
  • remove jasmine-core as a peer dep (#2336) (bb2a302)
  • builtin: give a longer timeout for _create_build_files (5d405a7), closes #2231
  • builtin: give better error when linker runs on Node <10 (b9dc2c1), closes #2304
  • builtin: make linker deterministic when resolving from manifest & fix link_workspace_root with no runfiles (f7c342f)
  • examples: fix jest example on windows (3ffefa1), closes #1454
  • exmaples/nestjs: add module_name field in ts_library (3a4155c)
  • typescript: don't depend on protobufjs, it's transitive (1b344db)
  • typescript: fail the build when ts_project produces zero outputs (3ca6cac), closes #2301
  • npm_package.pack on Windows should not generate undefined.tgz (715ad22)
  • typescript: specify rootDir as absolute path (535fa51)
  • npm_package.pack should work in windows os (503d6fb)
  • typescript: don't include _valid_options marker file in outs (570e34d), closes #2078

chore

Code Refactoring

Features

  • builtin: flip the default of the strict_visibility flag on the npm and yarn install rules to True (2c34857)
  • concatjs: ts_devserver -> concatjs_devserver; move to @bazel/concatjs (baeae89), closes #1082
  • cypress: remove browiserify preprocessor (98ee87d)
  • examples: adds example for running jest with typescript (#2245) (d977c73)
  • node_repositories: Added auth option for downloading nodejs and yarn (c89ff38)
  • typescript: add allow_js support to ts_project (91a95b8)
  • typescript: worker mode for ts_project (#2136) (5d70997)

Performance Improvements

  • cypress: pack cypress runfiles into a single tar (e8484a0)

BREAKING CHANGES

  • By default, we no longer patch the require() function, instead you should rely on the linker to make node modules resolvable at the standard location if this breaks you, the quickest fix is to flip the flag back on a nodejs_binary/nodejs_test/npm_package_bin with templated_args = ["--bazel_patch_module_resolver"], see https://github.com/bazelbuild/rules_nodejs/pull/2344 as an example. Another fix is to explicitly use our runfiles helper library, see https://github.com/bazelbuild/rules_nodejs/pull/2341 as an example.
  • packages/karma:package.bzl is gone, in your WORKSPACE replace
load("//packages/karma:package.bzl", "npm_bazel_karma_dependencies")

npm_bazel_karma_dependencies()

with the equivalent

http_archive(
    name = "io_bazel_rules_webtesting",
    sha256 = "9bb461d5ef08e850025480bab185fd269242d4e533bca75bfb748001ceb343c3",
    urls = ["https://github.com/bazelbuild/rules_webtesting/releases/download/0.3.3/rules_webtesting.tar.gz"],
)

Then in BUILD files replace load("@npm//@bazel/karma:index.bzl", "karma_web_test_suite") with load("@npm//@bazel/concatjs:index.bzl", "concatjs_web_test_suite")

finally drop npm dependencies on @bazel/karma and depend on @bazel/concatjs instead

  • concatjs_web back to karma_web
  • typescript: any ts_project rule that produces no outputs must be fixed or removed
  • pkg_web#move_files helper is now a private API
    • rollup_bundle config_file no longer has substitutions from a "bazel_stamp_file" - use bazel_version_file instead
  • pkg_npm no longer has replace_with_version attribute, use substitutions instead
  • concatjs: users need to change their load statements for ts_devserver
  • Users will need to rename build_bazel_rules_typescript to npm_bazel_typescript and build_bazel_rules_karma to npm_bazel_karma in their projects
  • If you use the internal API of tsc_wrapped you need to update the CompilerHost constructor calls.
alexeagle
published 2.3.1 •

alexeagle
published 2.3.0 •

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