Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v2.0 #87

Merged
merged 17 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ jobs:
strategy:
matrix:
meteorRelease:
- '--release 1.9.3'
- '--release 1.12.1'
- '--release 2.1.1'
- '--release 2.3.5'
- '--release 2.8.0'
# Latest version
- '--release 2.9.1'
- '--release 3.0.1'
# Latest recommended version
- ''
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: node_js
node_js: "12"
node_js: "20"
sudo: false
install:
- "curl https://install.meteor.com | /bin/sh"
Expand Down
11 changes: 11 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Contributing

1. Write some code.
2. Write some tests.
3. From this package's local directory, start the test runner:

```
$ meteor test-packages ./
```

4. Open http://localhost:3000/ in your browser to see the test results.
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,28 +205,18 @@ Migrations.add({
});
```

* Note: You may want to to call migration after startup in case your host (such as Heroku) limits the amount of time given for startup
For Meteor 2.8+ you can pass async function directly.

* Note: You may want to call migration after startup in case your host (such as Heroku) limits the amount of time given for startup
``` javascript
Meteor.startup(function() {
setTimetout("Migrations.migrateTo('latest')", 0);
});
```

## Contributing

1. Write some code.
2. Write some tests.
3. From this package's local directory, start the test runner:

```
$ meteor test-packages ./
```

4. Open http://localhost:3000/ in your browser to see the test results.


## License

MIT. (c) Percolate Studio, maintained by Zoltan Olah (@zol).
MIT. (c) Percolate Studio, Meteor Software

Meteor Migrations was developed as part of the [Verso](http://versoapp.com) project.
25 changes: 13 additions & 12 deletions example/.meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@ insecure@1.0.7
percolate:migrations
meteor-base@1.5.1
mobile-experience@1.1.0
mongo@1.16.0
mongo@1.16.7
blaze-html-templates
session@1.2.0
session@1.2.1
jquery
tracker@1.2.0
logging@1.3.1
tracker@1.3.2
logging@1.3.2
reload@1.3.1
random@1.2.0
ejson@1.1.2
random@1.2.1
ejson@1.1.3
spacebars
check@1.3.1
standard-minifier-css
standard-minifier-js
shell-server
dynamic-import
underscore
check@1.3.2
standard-minifier-css@1.9.2
standard-minifier-js@2.8.1
shell-server@0.5.0
dynamic-import@0.7.3
underscore@1.0.13
ecmascript
2 changes: 1 addition & 1 deletion example/.meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
METEOR@2.8.0
METEOR@2.13
89 changes: 44 additions & 45 deletions example/.meteor/versions
Original file line number Diff line number Diff line change
@@ -1,80 +1,79 @@
allow-deny@1.1.1
autopublish@1.0.7
autoupdate@1.8.0
babel-compiler@7.9.2
babel-compiler@7.10.4
babel-runtime@1.5.1
base64@1.0.12
binary-heap@1.0.11
blaze@2.5.0
blaze-html-templates@1.2.1
blaze@2.7.1
blaze-html-templates@2.0.0
blaze-tools@1.1.3
boilerplate-generator@1.7.1
caching-compiler@1.2.2
caching-html-compiler@1.2.0
callback-hook@1.4.0
check@1.3.1
ddp@1.4.0
ddp-client@2.6.0
caching-html-compiler@1.2.1
callback-hook@1.5.1
check@1.3.2
ddp@1.4.1
ddp-client@2.6.1
ddp-common@1.4.0
ddp-server@2.6.0
diff-sequence@1.1.1
dynamic-import@0.7.2
ecmascript@0.16.2
ecmascript-runtime@0.8.0
ddp-server@2.6.2
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
ejson@1.1.3
es5-shim@4.8.0
fetch@0.1.1
geojson-utils@1.0.10
fetch@0.1.3
geojson-utils@1.0.11
hot-code-push@1.0.4
html-tools@1.1.3
htmljs@1.1.1
id-map@1.1.1
insecure@1.0.7
inter-process-messaging@0.1.1
jquery@1.11.11
jquery@3.0.0
launch-screen@1.3.0
logging@1.3.1
meteor@1.10.1
logging@1.3.2
meteor@1.11.3
meteor-base@1.5.1
minifier-css@1.6.1
minifier-css@1.6.4
minifier-js@2.7.5
minimongo@1.9.0
minimongo@1.9.3
mobile-experience@1.1.0
mobile-status-bar@1.1.0
modern-browsers@0.1.8
modern-browsers@0.1.9
modules@0.19.0
modules-runtime@0.13.0
mongo@1.16.0
modules-runtime@0.13.1
mongo@1.16.7
mongo-decimal@0.1.3
mongo-dev-server@1.1.0
mongo-id@1.0.8
npm-mongo@4.9.0
observe-sequence@1.0.20
npm-mongo@4.16.0
observe-sequence@1.0.21
ordered-dict@1.1.0
percolate:migrations@1.1.0
promise@0.12.0
random@1.2.0
react-fast-refresh@0.2.3
reactive-dict@1.3.0
reactive-var@1.0.11
percolate:migrations@2.0.0
promise@0.12.2
random@1.2.1
react-fast-refresh@0.2.7
reactive-dict@1.3.1
reactive-var@1.0.12
reload@1.3.1
retry@1.1.0
routepolicy@1.1.1
session@1.2.0
session@1.2.1
shell-server@0.5.0
socket-stream-client@0.5.0
spacebars@1.3.0
spacebars-compiler@1.2.1
standard-minifier-css@1.8.2
socket-stream-client@0.5.1
spacebars@1.4.1
spacebars-compiler@1.3.1
standard-minifier-css@1.9.2
standard-minifier-js@2.8.1
templating@1.4.1
templating@1.4.2
templating-compiler@1.4.1
templating-runtime@1.5.0
templating-tools@1.2.0
tracker@1.2.0
ui@1.0.13
underscore@1.0.10
webapp@1.13.1
webapp-hashing@1.1.0
templating-runtime@1.6.3
templating-tools@1.2.2
tracker@1.3.2
underscore@1.0.13
webapp@1.13.5
webapp-hashing@1.1.1
File renamed without changes.
1 change: 1 addition & 0 deletions example/example.html → example/client/main.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<head>
<title>example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body>
Expand Down
20 changes: 20 additions & 0 deletions example/client/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Template } from 'meteor/templating';
import { ReactiveVar } from 'meteor/reactive-var';

Template.hello.onCreated(function helloOnCreated() {
// counter starts at 0
this.counter = new ReactiveVar(0);
});

Template.hello.helpers({
counter() {
return Template.instance().counter.get();
},
});

Template.hello.events({
'click button'(event, instance) {
// increment the counter when button is clicked
instance.counter.set(instance.counter.get() + 1);
},
});
30 changes: 0 additions & 30 deletions example/example.js

This file was deleted.

Loading
Loading