Skip to content

Commit eb7941d

Browse files
committed
Change dep to aldeed:collection2 and publish 3.0.0
1 parent a1e8c34 commit eb7941d

File tree

11 files changed

+60
-102
lines changed

11 files changed

+60
-102
lines changed

.versions

Lines changed: 0 additions & 50 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
# Change Log
22

3-
# 2.0.1
3+
## 3.0.0
4+
5+
Updated to depend on `aldeed:collection2@3.0.0` rather than `aldeed:collection2-core`. Core has been merged back into the main package as a 3.0.0 release.
6+
7+
## 2.0.1
48

59
Fix default error messages
610

7-
# 2.0.0
11+
## 2.0.0
812

913
For use with aldeed:collection2-core@2.0.0. Requires SimpleSchema 2.0
1014

11-
# 1.1.0
15+
## 1.1.0
1216

1317
Support for SimpleSchema 2.0
1418

15-
# 1.0.0
19+
## 1.0.0
1620

17-
Initial release. Originally included in the aldeed:collection2 package.
21+
Initial release. Originally included in the aldeed:collection2 package.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2017 Eric Dobbertin
3+
Copyright (c) 2015-2018 Eric Dobbertin
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
[![CircleCI](https://circleci.com/gh/aldeed/meteor-schema-deny/tree/master.svg?style=svg)](https://circleci.com/gh/aldeed/meteor-schema-deny/tree/master)
22

3-
aldeed:schema-deny
4-
=========================
3+
# aldeed:schema-deny
54

65
A Meteor package that allows you to deny inserting or updating certain properties in your database by setting options in your schema.
76

87
## Installation
98

109
In your Meteor app directory, enter:
1110

12-
```
13-
$ meteor add aldeed:schema-deny
11+
```bash
12+
meteor add aldeed:schema-deny
1413
```
1514

1615
## Usage
@@ -46,13 +45,13 @@ Anyone is welcome to contribute. Fork, make and test your changes (`meteor test-
4645
### Running Tests
4746

4847
```bash
49-
$ cd tests
50-
$ npm i && npm test
48+
cd tests
49+
npm i && npm test
5150
```
5251

5352
### Running Tests in Watch Mode
5453

5554
```bash
56-
$ cd tests
57-
$ npm i && npm run test:watch
55+
cd tests
56+
npm i && npm run test:watch
5857
```

package/deny/.versions

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,47 @@
1-
aldeed:collection2-core@2.0.0
2-
aldeed:schema-deny@2.0.1
1+
aldeed:collection2@3.0.0
2+
aldeed:schema-deny@3.0.0
33
allow-deny@1.1.0
4-
babel-compiler@6.24.7
5-
babel-runtime@1.1.1
4+
babel-compiler@7.0.0
5+
babel-runtime@1.2.2
66
base64@1.0.10
77
binary-heap@1.0.10
8-
boilerplate-generator@1.3.1
9-
callback-hook@1.0.10
10-
check@1.2.5
8+
boilerplate-generator@1.4.0
9+
callback-hook@1.1.0
10+
check@1.3.0
1111
ddp@1.4.0
12-
ddp-client@2.2.0
13-
ddp-common@1.3.0
14-
ddp-server@2.1.1
15-
diff-sequence@1.0.7
16-
ecmascript@0.9.0
12+
ddp-client@2.3.1
13+
ddp-common@1.4.0
14+
ddp-server@2.1.2
15+
diff-sequence@1.1.0
16+
dynamic-import@0.3.0
17+
ecmascript@0.10.0
1718
ecmascript-runtime@0.5.0
18-
ecmascript-runtime-client@0.5.0
19+
ecmascript-runtime-client@0.6.0
1920
ecmascript-runtime-server@0.5.0
2021
ejson@1.1.0
2122
geojson-utils@1.0.10
22-
id-map@1.0.9
23+
http@1.4.0
24+
id-map@1.1.0
2325
logging@1.1.19
24-
meteor@1.8.0
25-
minimongo@1.4.0
26-
modules@0.11.0
27-
modules-runtime@0.9.0
28-
mongo@1.3.0
26+
meteor@1.8.2
27+
minimongo@1.4.3
28+
modules@0.11.3
29+
modules-runtime@0.9.2
30+
mongo@1.4.3
2931
mongo-dev-server@1.1.0
3032
mongo-id@1.0.6
31-
npm-mongo@2.2.33
32-
ordered-dict@1.0.9
33-
promise@0.10.0
33+
npm-mongo@2.2.34
34+
ordered-dict@1.1.0
35+
promise@0.10.1
3436
raix:eventemitter@0.1.3
35-
random@1.0.10
36-
retry@1.0.9
37+
random@1.1.0
38+
reload@1.2.0
39+
retry@1.1.0
3740
routepolicy@1.0.12
38-
tmeasday:check-npm-versions@0.3.1
41+
socket-stream-client@0.1.0
42+
tmeasday:check-npm-versions@0.3.2
3943
tracker@1.1.3
4044
underscore@1.0.10
41-
webapp@1.4.0
45+
url@1.2.0
46+
webapp@1.5.0
4247
webapp-hashing@1.0.9

package/deny/deny.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// collection2-core checks to make sure that simpl-schema package is added
1+
// collection2 checks to make sure that simpl-schema package is added
22
import SimpleSchema from 'simpl-schema';
3-
import Collection2 from 'meteor/aldeed:collection2-core';
3+
import Collection2 from 'meteor/aldeed:collection2';
44

55
// Extend the schema options allowed by SimpleSchema
66
SimpleSchema.extendOptions(['denyInsert', 'denyUpdate']);
@@ -9,8 +9,8 @@ Collection2.on('schema.attached', function (collection, ss) {
99
if (ss.version >= 2 && ss.messageBox && typeof ss.messageBox.messages === 'function') {
1010
ss.messageBox.messages({
1111
en: {
12-
insertNotAllowed: '{{label}} cannot be set during an insert.',
13-
updateNotAllowed: '{{label}} cannot be set during an update.'
12+
insertNotAllowed: '{{label}} cannot be set during an insert',
13+
updateNotAllowed: '{{label}} cannot be set during an update'
1414
}
1515
});
1616
}

package/deny/package.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Package.describe({
22
name: "aldeed:schema-deny",
33
summary: "Deny inserting or updating certain properties through schema options",
4-
version: "2.0.1",
4+
version: "3.0.0",
55
documentation: '../../README.md',
66
git: "https://github.com/aldeed/meteor-schema-deny.git"
77
});
88

99
Package.onUse(function(api) {
1010
api.use([
11-
'aldeed:collection2-core@2.0.0',
11+
'aldeed:collection2@3.0.0',
1212
'ecmascript@0.6.1',
1313
]);
1414

tests/.meteor/packages

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ autopublish@1.0.7 # Publish all data to the clients (for prototyping
2222
insecure@1.0.7 # Allow all DB writes from clients (for prototyping)
2323

2424
underscore@1.0.10
25-
aldeed:collection2-core@2.0.0
2625
aldeed:schema-deny
2726
dynamic-import
2827
meteortesting:mocha
28+
aldeed:collection2@3.0.0

tests/.meteor/versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
aldeed:collection2-core@2.0.4
2-
aldeed:schema-deny@2.0.0
1+
aldeed:collection2@3.0.0
2+
aldeed:schema-deny@3.0.0
33
allow-deny@1.1.0
44
autopublish@1.0.7
55
autoupdate@1.3.12

tests/deny.tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('deny', function () {
2121
test.insert({
2222
denyInsert: 'foo'
2323
}, error => {
24-
expect(error && error.message).toBe('Deny insert cannot be set during an insert.');
24+
expect(error && error.message).toBe('Deny insert cannot be set during an insert in test insert');
2525

2626
const validationErrors = test.simpleSchema().namedContext().validationErrors();
2727
expect(validationErrors.length).toBe(1);
@@ -45,7 +45,7 @@ describe('deny', function () {
4545
denyUpdate: 'foo',
4646
},
4747
}, error => {
48-
expect(error && error.message).toBe('Deny update cannot be set during an update.');
48+
expect(error && error.message).toBe('Deny update cannot be set during an update in test update');
4949

5050
const validationErrors = test.simpleSchema().namedContext().validationErrors();
5151
expect(validationErrors.length).toBe(1);

0 commit comments

Comments
 (0)