Skip to content

Commit fb2b74b

Browse files
committed
Merge branch 'master' into feature/inject-validation-lib
2 parents d34cd15 + b1587f2 commit fb2b74b

File tree

3 files changed

+651
-129
lines changed

3 files changed

+651
-129
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
55
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
66

7+
- [4.1.5](#415)
78
- [4.1.4](#414)
89
- [4.1.3](#413)
910
- [4.1.2](#412)
@@ -87,6 +88,10 @@
8788

8889
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
8990

91+
## 4.1.5
92+
93+
* Improve MeteorJS version detection
94+
9095
## 4.1.4
9196

9297
- Actual release of 4.1.3

package/collection2/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { createSimpleSchemaAdapter as simpleSchemaAdapter } from './adapters/sim
88
import { createZodAdapter as zodAdapter } from './adapters/zod';
99
import { createAjvAdapter as ajvAdapter } from './adapters/ajv';
1010

11-
const meteorVersion = Meteor.release === 'none' ? [3, 1] : Meteor.release.split('@')[1].split('.');
12-
const noAsyncAllow = meteorVersion[0] >= 3 && meteorVersion[1].split('-')[0] >= 1;
11+
const meteorVersion = Meteor.release === 'none' ? ["3", "3"] : Meteor.release.split('@')[1].split('.');
12+
const noAsyncAllow = Number.parseInt(meteorVersion[0], 10) >= 3 && Number.parseInt(meteorVersion[1].split('-')[0], 10) >= 1;
1313

1414
const C2 = {};
1515
C2._validators = {};

0 commit comments

Comments
 (0)