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

Meteor 3 #414

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
2ef84c2
feat: making `redis-oplog` compatible with meteor 3.0.
matheusccastroo May 4, 2024
9c61fdc
feat: updating tests
matheusccastroo May 4, 2024
777ddfa
feat: add prettier
matheusccastroo May 6, 2024
f89497f
feat: run prettier on whole project
matheusccastroo May 6, 2024
94cd763
feat: update tests and fixing issues found.
matheusccastroo May 6, 2024
2be2622
feat: fix tests.
matheusccastroo May 6, 2024
803cb69
feat: fix tests.
matheusccastroo May 6, 2024
89922f4
chore: major version update and also fixing github workflows.
matheusccastroo May 6, 2024
8384400
Prep 3.0-rc.2 release
StorytellerCZ Jul 18, 2024
1dae6c1
Published cultofcoders:[email protected].
StorytellerCZ Jul 18, 2024
ea94507
fix version
leonardoventurini Oct 11, 2024
24256f3
Update dependencies
StorytellerCZ Nov 12, 2024
4b2d68a
fix method name
leonardoventurini Nov 21, 2024
cecbbf9
use local files instead of package
leonardoventurini Nov 21, 2024
e720ed7
adjust test matrix
leonardoventurini Nov 21, 2024
6dc8498
adjust versions
leonardoventurini Nov 21, 2024
64dcff7
use latest ubuntu
leonardoventurini Nov 22, 2024
081d1f8
make cursor backwards compatible
leonardoventurini Nov 22, 2024
b7e2781
add commands
leonardoventurini Nov 22, 2024
5947b54
exclude arch
leonardoventurini Nov 22, 2024
2415b80
finetune tested versions
leonardoventurini Nov 22, 2024
d034513
adjust test
leonardoventurini Nov 22, 2024
f282e44
disable fail fast
leonardoventurini Nov 22, 2024
5bbf612
fix tests
leonardoventurini Nov 22, 2024
39b510b
add log to test
leonardoventurini Nov 22, 2024
64c2b6d
run cd in subshell
leonardoventurini Nov 25, 2024
e63b5e6
allow test to run independent from setup
leonardoventurini Nov 25, 2024
baba36b
fix allow deny issue
leonardoventurini Nov 25, 2024
396e576
add command for checkout
leonardoventurini Nov 25, 2024
0886f34
add perf improvements
leonardoventurini Dec 4, 2024
0f48157
Merge branch 'meteor-3' into meteor-3.1
leonardoventurini Dec 4, 2024
ef88b11
change version
leonardoventurini Dec 9, 2024
9b140bb
Merge pull request #15 from leonardoventurini/meteor-3.1
StorytellerCZ Dec 11, 2024
dada0a6
Merge branch 'master' into meteor-3
leonardoventurini Dec 11, 2024
f17a838
fix(update): Fixes the mongo selector in the update call if invoked w…
plbkbx Dec 11, 2024
b9081a0
Merge pull request #16 from klablink/meteor-3-klab.1
StorytellerCZ Dec 12, 2024
f47a223
Published cultofcoders:[email protected].
StorytellerCZ Dec 12, 2024
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
42 changes: 42 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
function @setup-test() {
local meteor_version=${1:-"3.1"}

echo "🚀 Setting up test environment for Meteor ${meteor_version}"

rm -rf test
meteor create --release ${meteor_version} --bare test

(
cd test
meteor npm i --save [email protected] [email protected] [email protected]
)
}

function @test() {
local meteor_version=${1:-"3.1"}

echo "🚀 Running tests with Meteor ${meteor_version}"

(
cd test
METEOR_PACKAGE_DIRS="../" TEST_BROWSER_DRIVER=puppeteer meteor test-packages \
--raw-logs \
--once \
--driver-package meteortesting:mocha \
--release ${meteor_version} \
--exclude-archs=web.browser.legacy \
../
)
}

function @testd {
(
cd test
METEOR_PACKAGE_DIRS="../" TEST_BROWSER_DRIVER=puppeteer meteord test-packages \
--raw-logs \
--once \
--driver-package meteortesting:mocha \
--exclude-archs=web.browser.legacy \
../
)
}
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Tests

on: [push, pull_request]
on: [pull_request]

jobs:
test:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
meteor: [1.12.2, 2.8.1, 2.12, 2.15]
meteor: ["3.0.3", "3.0.4", "3.1"]
redis-version: [4, 5, 6, 7]

steps:
Expand All @@ -26,7 +27,7 @@ jobs:
run: |
meteor create --release ${{ matrix.meteor }} --bare test
cd test
meteor npm i --save [email protected] simpl-schema@1.13.1 chai@4
meteor npm i --save [email protected] simpl-schema@3.4.6 chai@4.3.6
- name: Test
working-directory: ./test
run: METEOR_PACKAGE_DIRS="../" TEST_BROWSER_DRIVER=puppeteer meteor test-packages --raw-logs --once --driver-package meteortesting:mocha ../
run: METEOR_PACKAGE_DIRS="../" TEST_BROWSER_DRIVER=puppeteer meteor test-packages --raw-logs --once --driver-package meteortesting:mocha --release ${{ matrix.meteor }} ../
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
dump.rdb
npm-debug.log
.idea/

node_modules
test/
node_modules/
2 changes: 1 addition & 1 deletion .npm/package/npm-shrinkwrap.json

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

8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.idea/
.github/
test/
docs/
testing/
node_modules/
package-lock.json
test/
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": true,
"singleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true
}
133 changes: 67 additions & 66 deletions .versions
Original file line number Diff line number Diff line change
@@ -1,69 +1,70 @@
[email protected]
[email protected]
alanning:[email protected]
aldeed:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
cultofcoders:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
local-test:cultofcoders:[email protected]
[email protected]
[email protected]
matb33:[email protected]
[email protected]
[email protected]
[email protected]
alanning:[email protected]
aldeed:[email protected]
aldeed:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
cultofcoders:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
local-test:cultofcoders:[email protected]
[email protected]
[email protected]
matb33:[email protected]
[email protected]
meteortesting:[email protected]
meteortesting:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
natestrauser:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
practicalmeteor:[email protected]
[email protected]
raix:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
reywood:[email protected]
[email protected]
[email protected]
[email protected]
tmeasday:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
zodern:[email protected]
[email protected]
raix:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
reywood:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
zodern:[email protected]
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Fix reactivity bug in fairly specific situations [#367](https://github.com/cult-of-coders/redis-oplog/issues/367)

### 2.2.0

- Bumped minimum Meteor version to v1.12.2
- Updated tests to cover from Meteor v1.12.2 to the latest v2.12
- Added testing for Redis v7
Expand All @@ -19,41 +20,51 @@
- Fix SyntheticMutator not applying `globalRedisPrefix`

### 2.1.1

- Fixes callback is not a function error when using SyntheticMutator.update

### 2.1.0

- Meteor 2.6 support
- Projections option support
- Update Mocha tests
- Update tests to use Meteor 1.12.2 to fix certificates issues

### 1.2.3

- Redis connection failover handling
- Re-fetching the up-to-date collection when Redis connection resumes
- Bug fixes and improvements

### 1.2.2

- Ability to merge db requests by channel
- Bug fixes and improvements

### 1.2.1

- Bug fixes and improvements

### 1.2.0

- Optimistic UI fixes
- Performance gains for methods
- Fixes for publishComposite
- Other bugs and code quality improvements

### 1.0.5 - 1.0.15

- Bug fixes and improvements

### 1.0.5

- Fix for infinite loop when overriding publish

### 1.0.4

- Fix for update using positional operators

### 1.0.3

- Added support for publish composite
- Fixed randomly failing tests
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ RedisOplog.stats()

### Events for Meteor (+ Redis Oplog, Grapher and GraphQL/Apollo)

* Meteor Night 2018 Slide: [Arguments for Meteor](https://drive.google.com/file/d/1Tx9vO-XezO3DI2uAYalXPvhJ-Avqc4-q/view) - Theodor Diaconu, CEO of Cult of Coders: “Redis Oplog, Grapher, and Apollo Live.
- Meteor Night 2018 Slide: [Arguments for Meteor](https://drive.google.com/file/d/1Tx9vO-XezO3DI2uAYalXPvhJ-Avqc4-q/view) - Theodor Diaconu, CEO of Cult of Coders: “Redis Oplog, Grapher, and Apollo Live.

### [Optimistic UI](docs/optimistic_ui.md)

Expand Down Expand Up @@ -145,4 +145,3 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
<a href="https://opencollective.com/redis-oplog/sponsor/7/website" target="_blank"><img src="https://opencollective.com/redis-oplog/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/redis-oplog/sponsor/8/website" target="_blank"><img src="https://opencollective.com/redis-oplog/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/redis-oplog/sponsor/9/website" target="_blank"><img src="https://opencollective.com/redis-oplog/sponsor/9/avatar.svg"></a>

Loading
Loading