mongochangestream
Advanced tools
Comparing version 0.28.0 to 0.29.0
@@ -0,1 +1,5 @@ | ||
# 0.29.0 | ||
- Make schema change event more specific - `change` is now `schemaChange`. | ||
# 0.28.0 | ||
@@ -2,0 +6,0 @@ |
@@ -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' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54191