v1.0.0-beta.34
Features
-
Synthetics push command now supports bundling external packages from
node_modules
folder for browser monitors, users can now use external packages utility packages likelodash, moment.js, etc,
in their synthetics scripts and push them instantaneously to Kibana. #580Example journey code below using an external package
is-positive
from NPM.// test.journey.ts import { journey, step, monitor, expect } from '@elastic/synthetics'; import isPositive from 'is-positive'; journey('bundle test', ({ page, params }) => { step('check if positive', () => { expect(isPositive(4)).toBe(true); }); });
If you run
npm run push
inside the synthetics project, we would bundle the whole journey file along with the packageis-positive
to make the experience smooth. However, there are a few caveats when pushing external modules.- Packages that use native bindings will not work.
- Users cannot push bundles that are more than
800 Kilobytes
.
-
Introduce configuring project monitor settings in the Synthetics config file #592. Comes in handy when running
push
command, users would be able to configure project-related settings likeprojectId
,kibana host
, andschedule
and save them for successive runs. -
Support the
SYNTHETICS_API_KEY
env variable for Kibana authentication when pushing monitors to Kibana #588
Full Changelog: v1.0.0-beta.33...v1.0.0-beta.34