Socket
Socket
Sign inDemoInstall

mongochangestream

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongochangestream - npm Package Compare versions

Comparing version 0.28.0 to 0.29.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 0.29.0
- Make schema change event more specific - `change` is now `schemaChange`.
# 0.28.0

@@ -2,0 +6,0 @@

2

dist/mongoChangeStream.js

@@ -328,3 +328,3 @@ "use strict";

// Emit change
emit('change', { previousSchema, currentSchema });
emit('schemaChange', { previousSchema, currentSchema });
// Previous schema is now the current schema

@@ -331,0 +331,0 @@ previousSchema = currentSchema;

@@ -33,2 +33,2 @@ import { ChangeStreamDocument, ChangeStreamInsertDocument, Document } from 'mongodb';

export declare type JSONSchema = Record<string, any>;
export declare type Events = 'change' | 'healthCheckFail';
export declare type Events = 'schemaChange' | 'healthCheckFail';
{
"name": "mongochangestream",
"version": "0.28.0",
"version": "0.29.0",
"description": "Sync MongoDB collections via change streams into any database.",

@@ -5,0 +5,0 @@ "author": "GovSpend",

@@ -411,3 +411,3 @@ import _ from 'lodash/fp.js'

// Emit change
emit('change', { previousSchema, currentSchema })
emit('schemaChange', { previousSchema, currentSchema })
// Previous schema is now the current schema

@@ -414,0 +414,0 @@ previousSchema = currentSchema

@@ -47,2 +47,2 @@ import {

export type Events = 'change' | 'healthCheckFail'
export type Events = 'schemaChange' | 'healthCheckFail'
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