Skip to content

Commit

Permalink
Merge branch 'release/2.2' into feature/bulk-redis-payload-processing
Browse files Browse the repository at this point in the history
  • Loading branch information
StorytellerCZ authored Dec 12, 2024
2 parents 372e1e4 + 4cbbc02 commit b043082
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 61 deletions.
45 changes: 25 additions & 20 deletions .npm/package/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 37 additions & 38 deletions .versions
Original file line number Diff line number Diff line change
@@ -1,68 +1,67 @@
accounts-base@2.2.4
accounts-password@2.3.1
accounts-base@2.2.8
accounts-password@2.3.4
alanning:roles@3.4.0
aldeed:collection2@3.0.6
allow-deny@1.1.1
babel-compiler@7.9.2
babel-compiler@7.10.4
babel-runtime@1.5.1
base64@1.0.12
binary-heap@1.0.11
boilerplate-generator@1.7.1
callback-hook@1.4.0
check@1.3.1
cultofcoders:redis-oplog@2.1.1
ddp@1.4.0
ddp-client@2.5.0
callback-hook@1.5.1
check@1.3.2
cultofcoders:redis-oplog@2.2.0
ddp@1.4.1
ddp-client@2.6.1
ddp-common@1.4.0
ddp-rate-limiter@1.1.0
ddp-server@2.5.0
diff-sequence@1.1.1
dynamic-import@0.7.2
ecmascript@0.16.2
ecmascript-runtime@0.8.0
ddp-rate-limiter@1.2.0
ddp-server@2.6.1
diff-sequence@1.1.2
dynamic-import@0.7.3
ecmascript@0.16.7
ecmascript-runtime@0.8.1
ecmascript-runtime-client@0.12.1
ecmascript-runtime-server@0.11.0
ejson@1.1.2
email@2.2.1
fetch@0.1.1
geojson-utils@1.0.10
ejson@1.1.3
email@2.2.5
fetch@0.1.3
geojson-utils@1.0.11
id-map@1.1.1
inter-process-messaging@0.1.1
local-test:cultofcoders:redis-oplog@2.1.1
local-test:cultofcoders:redis-oplog@2.2.0
localstorage@1.2.0
logging@1.3.1
logging@1.3.2
matb33:collection-hooks@1.1.4
meteor@1.10.0
meteor@1.11.2
meteortesting:browser-tests@0.1.2
meteortesting:mocha@0.4.4
minimongo@1.8.0
modern-browsers@0.1.8
modules@0.18.0
modules-runtime@0.13.0
mongo@1.15.0
minimongo@1.9.3
modern-browsers@0.1.9
modules@0.19.0
modules-runtime@0.13.1
mongo@1.16.6
mongo-decimal@0.1.3
mongo-dev-server@1.1.0
mongo-id@1.0.8
natestrauser:publish-performant-counts@0.1.2
npm-mongo@4.3.1
npm-mongo@4.16.0
ordered-dict@1.1.0
practicalmeteor:mocha-core@1.0.1
promise@0.12.0
promise@0.12.2
raix:eventemitter@0.1.3
random@1.2.0
rate-limit@1.0.9
react-fast-refresh@0.2.3
reactive-var@1.0.11
random@1.2.1
rate-limit@1.1.1
react-fast-refresh@0.2.7
reactive-var@1.0.12
reload@1.3.1
retry@1.1.0
reywood:publish-composite@1.7.3
routepolicy@1.1.1
service-configuration@1.3.0
sha@1.0.9
socket-stream-client@0.5.0
socket-stream-client@0.5.1
tmeasday:check-npm-versions@0.3.2
tracker@1.2.0
underscore@1.0.10
tracker@1.3.2
underscore@1.0.13
url@1.3.2
webapp@1.13.1
webapp-hashing@1.1.0
webapp@1.13.5
webapp-hashing@1.1.1
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Updated `node-redis` to v3.1.2
- Updated `deep-extend` to v0.6.0
- Fix update not returning number
- Fix SyntheticMutator not applying `globalRedisPrefix`

### 2.1.1
- Fixes callback is not a function error when using SyntheticMutator.update
Expand Down
2 changes: 1 addition & 1 deletion lib/cache/lib/getChannels.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import getChannelName from '../../utils/getChannelName';

export default (collectionName, {namespace, channel, namespaces, channels}) => {
export default (collectionName, {namespace, channel, namespaces, channels} = {}) => {
let channelStrings = [];

if (namespaces) {
Expand Down
6 changes: 4 additions & 2 deletions lib/mongo/SyntheticMutator.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { EJSON } from 'meteor/ejson';
import getFields from '../utils/getFields';
import { Events, RedisPipe } from '../constants';
import containsOperators from '../mongo/lib/containsOperators';
import getChannels from '../cache/lib/getChannels';
import getDedicatedChannel from '../utils/getDedicatedChannel';

/**
* call(Mongo.Collection).insert(data)
Expand Down Expand Up @@ -92,9 +94,9 @@ export default class SyntheticMutator {
if (!Array.isArray(channels)) {
if (channels instanceof Mongo.Collection) {
const name = channels._name;
channels = [name];
channels = getChannels(name);
if (_id) {
channels.push(`${name}::${_id}`);
channels.push(getDedicatedChannel(name, _id));
}
} else {
channels = [channels];
Expand Down

0 comments on commit b043082

Please sign in to comment.