Meteor update and raix:eventstate

Hi,
I’m on meteor 1.10.2, today I do an update and package raix:eventstate go from 0.0.5 to 0.0.6 and raix:eventemitter gone.
From now I can’t build application.
Resolve this problems downgrade raix:eventstate to 0.0.5 (and raix:eventemitter back).
I can’t understand why this package can upgrade, is it deprecated:

Someone know thet behaviour ?

Looks like the publication of 0.0.6 is incorrect. There is no code int he repo related to that release so it was probably done from local code which is broken. Not much to do here except for reverting back.

I would suggest to replace this package with reactive-dict.

1 Like

I already have reactive-dict installed and I can’t remove raix:eventState package, my CLI says “raix:eventstate is not a direct dependency in this project.”
I also try to remove manually “raix:eventstate@0.0.5” from versions file, but when I run meteor, this apperead.
I guess this package is dependent from another but I cant found which one…
This is my versions file:

accounts-base@1.6.0
accounts-password@1.6.1
accounts-ui@1.3.1
accounts-ui-unstyled@1.4.2
activitree:push@2.0.7
alanning:roles@1.2.19
allow-deny@1.1.0
autoupdate@1.6.0
babel-compiler@7.5.3
babel-runtime@1.5.0
base64@1.0.12
binary-heap@1.0.11
blaze@2.3.4
blaze-tools@1.0.10
boilerplate-generator@1.7.0
caching-compiler@1.2.2
caching-html-compiler@1.1.3
callback-hook@1.3.0
check@1.3.1
cultofcoders:redis-oplog@2.0.5
ddp@1.4.0
ddp-client@2.3.3
ddp-common@1.4.0
ddp-rate-limiter@1.0.8
ddp-server@2.3.2
deps@1.0.12
diff-sequence@1.1.1
disable-oplog@1.0.7
dynamic-import@0.5.2
ecmascript@0.14.3
ecmascript-runtime@0.7.0
ecmascript-runtime-client@0.10.0
ecmascript-runtime-server@0.9.0
ejson@1.1.1
email@1.2.3
es5-shim@4.8.0
fetch@0.1.1
geojson-utils@1.0.10
harrison:papa-parse@1.1.7
hot-code-push@1.0.4
html-tools@1.0.11
htmljs@1.0.11
http@1.4.2
hybrid:device@1.0.1
id-map@1.1.0
inter-process-messaging@0.1.1
jquery@1.11.11
lamhieu:meteorx@2.1.1
lamhieu:unblock@1.0.0
launch-screen@1.2.0
less@2.8.0
livedata@1.0.18
localstorage@1.2.0
logging@1.1.20
mdg:validated-method@1.2.0
meteor@1.9.3
meteor-base@1.4.0
minifier-css@1.5.2
minifier-js@2.6.0
minimongo@1.6.0
mizzao:timesync@0.5.1
mizzao:user-status@1.0.0
mobile-experience@1.1.0
mobile-status-bar@1.1.0
modern-browsers@0.1.5
modules@0.15.0
modules-runtime@0.12.0
momentjs:moment@2.27.0
mongo@1.10.0
mongo-decimal@0.1.1
mongo-dev-server@1.1.0
mongo-id@1.0.7
npm-bcrypt@0.9.3
npm-mongo@3.7.1
observe-sequence@1.0.16
ordered-dict@1.1.0
ostrio:cookies@2.6.0
ostrio:files@1.14.2
ostrio:templatehelpers@2.2.2
promise@0.11.2
raix:eventemitter@1.0.0
raix:eventstate@0.0.5
random@1.2.0
rate-limit@1.0.9
react-meteor-data@2.1.1
reactive-dict@1.3.0
reactive-var@1.0.11
reload@1.3.0
retry@1.1.0
routepolicy@1.1.0
rzymek:moment-locale-it@2.14.1
service-configuration@1.0.11
session@1.2.0
sha@1.0.9
shell-server@0.5.0
socket-stream-client@0.3.1
spacebars@1.0.15
spacebars-compiler@1.1.3
srp@1.1.0
standard-minifier-css@1.6.0
standard-minifier-js@2.6.0
static-html@1.2.2
templating@1.3.2
templating-compiler@1.3.3
templating-runtime@1.3.2
templating-tools@1.1.2
tracker@1.2.0
typescript@3.7.6
underscore@1.0.10
url@1.3.1
webapp@1.9.1
webapp-hashing@1.0.9

Can you share with us the list in packages file? That way we can trace back which is the original package that is using it and we will need to address it there.

of course:

{
  "name": "mp2",
  "private": true,
  "scripts": {
    "start": "meteor run",
    "test": "meteor test --once --driver-package meteortesting:mocha",
    "test-app": "TEST_WATCH=1 meteor test --full-app --driver-package meteortesting:mocha",
    "visualize": "meteor --production --extra-packages bundle-visualizer"
  },
  "dependencies": {
    "@babel/runtime": "^7.10.2",
    "@material-ui/core": "^4.10.2",
    "bcrypt": "^3.0.8",
    "cordova-plugin-crosswalk-webview": "^2.4.0",
    "cordova-plugin-statusbar": "^2.4.3",
    "fluent-ffmpeg": "^2.1.2",
    "gm": "^1.23.1",
    "meteor-node-stubs": "^1.0.0",
    "moment": "^2.27.0",
    "node-pre-gyp": "^0.14.0",
    "npm-install-peers": "^1.2.1",
    "pica": "^5.3.0",
    "prop-types": "^15.7.2",
    "react": "^16.13.1",
    "react-csv": "^1.1.2",
    "react-data-grid": "^6.1.0",
    "react-data-grid-addons": "^6.1.0",
    "react-dom": "^16.13.1",
    "react-modal": "^3.11.2",
    "react-router-dom": "^5.2.0",
    "react-table": "^6.11.5",
    "react-textarea-autosize": "^7.1.2",
    "semantic-ui-react": "^0.88.2",
    "simpl-schema": "^1.7.3",
    "spawn-sync": "^2.0.0",
    "webpack": "^4.43.0"
  },
  "meteor": {
    "mainModule": {
      "client": "client/main.jsx",
      "server": "server/main.js"
    },
    "testModule": "tests/main.js"
  },
  "devDependencies": {
    "eslint": "^6.8.0",
    "eslint-plugin-react": "^7.20.0",
    "file-loader": "^3.0.1",
    "url-loader": "^1.1.2"
  }
}

I think @storyteller meant .meteor/packages, not package.json.

The packages file only holds your direct dependencies, while the versions file also holds indirect dependencies.

2 Likes

ops… excuse me… here you are !

# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

cultofcoders:redis-oplog
disable-oplog@1.0.7

meteor-base@1.4.0             # Packages every Meteor app needs to have

standard-minifier-css@1.6.0   # CSS minifier run for production mode
standard-minifier-js@2.6.0    # JS minifier run for production mode
es5-shim@4.8.0                # ECMAScript 5 compatibility for older browsers
ecmascript@0.14.3              # Enable ECMAScript2015+ syntax in app code

static-html             # Define static page content in .html files
accounts-ui@1.3.1
session@1.2.0
ostrio:files
ostrio:templatehelpers

dynamic-import@0.5.2
underscore@1.0.10
email@1.2.3
alanning:roles
harrison:papa-parse
hybrid:device
meteor@1.9.3
lamhieu:unblock
activitree:push
mdg:validated-method
mizzao:user-status
react-meteor-data
mobile-experience@1.1.0
accounts-password@1.6.0
mongo@1.10.0
rzymek:moment-locale-it
shell-server@0.5.0
momentjs:moment

1 Like

meteor list --tree shows all packages and their dependencies, so it would show you which package actually pulls in raix:eventstate

2 Likes

hmm, if you need an updated version, download the project locally in your /packages folder (don’t do a submodule thing, it’s not worth it). The latest version removes underscore, and is compatible with previous versions. Just set the version in package.js to whatever your current dependency expectations are (probably 0.0.6).

I end up doing this with a lot of older package dependencies. In recent projects I’ve been modernizing my patterns, and have been able to avoid it for the most part. Will probably write up a guide on that at some point on Medium or something.

1 Like

result of meteor list --tree:

accounts-password@1.6.1                       
├─┬ accounts-base@1.6.0                       
│ ├─┬ callback-hook@1.3.0                     
│ │ └── ecmascript@0.14.3 (top level)         
│ ├─┬ check@1.3.1                             
│ │ ├── ecmascript@0.14.3 (top level)         
│ │ └─┬ ejson@1.1.1                           
│ │   ├─┬ base64@1.0.12                       
│ │   │ └── ecmascript@0.14.3 (top level)     
│ │   └── ecmascript@0.14.3 (top level)       
│ ├─┬ ddp@1.4.0                               
│ │ ├─┬ ddp-client@2.3.3                      
│ │ │ ├── callback-hook@1.3.0 (expanded above)
│ │ │ ├── check@1.3.1 (expanded above)        
│ │ │ ├─┬ ddp-common@1.4.0                    
│ │ │ │ ├── check@1.3.1 (expanded above)      
│ │ │ │ ├── ecmascript@0.14.3 (top level)     
│ │ │ │ ├── ejson@1.1.1 (expanded above)      
│ │ │ │ ├─┬ random@1.2.0                      
│ │ │ │ │ └── ecmascript@0.14.3 (top level)   
│ │ │ │ ├─┬ retry@1.1.0                       
│ │ │ │ │ ├── ecmascript@0.14.3 (top level)   
│ │ │ │ │ └── random@1.2.0 (expanded above)   
│ │ │ │ └─┬ tracker@1.2.0                     
│ │ │ │   └── ecmascript@0.14.3 (top level)   
│ │ │ ├─┬ diff-sequence@1.1.1                 
│ │ │ │ ├── ecmascript@0.14.3 (top level)     
│ │ │ │ └── ejson@1.1.1 (expanded above)      
│ │ │ ├── ecmascript@0.14.3 (top level)       
│ │ │ ├── ejson@1.1.1 (expanded above)        
│ │ │ ├─┬ id-map@1.1.0                        
│ │ │ │ ├── ecmascript@0.14.3 (top level)     
│ │ │ │ └── ejson@1.1.1 (expanded above)      
│ │ │ ├─┬ mongo-id@1.0.7                      
│ │ │ │ ├── ecmascript@0.14.3 (top level)     
│ │ │ │ ├── ejson@1.1.1 (expanded above)      
│ │ │ │ ├── id-map@1.1.0 (expanded above)     
│ │ │ │ └── random@1.2.0 (expanded above)     
│ │ │ ├── random@1.2.0 (expanded above)       
│ │ │ ├─┬ reload@1.3.0                        
│ │ │ │ └── ecmascript@0.14.3 (top level)     
│ │ │ ├── retry@1.1.0 (expanded above)        
│ │ │ ├─┬ socket-stream-client@0.3.1          
│ │ │ │ ├── ecmascript@0.14.3 (top level)     
│ │ │ │ ├─┬ modern-browsers@0.1.5             
│ │ │ │ │ └─┬ modules@0.15.0                  
│ │ │ │ │   └── modules-runtime@0.12.0        
│ │ │ │ └── retry@1.1.0 (expanded above)      
│ │ │ └── tracker@1.2.0 (expanded above)      
│ │ └─┬ ddp-server@2.3.2                      
│ │   ├── callback-hook@1.3.0 (expanded above)
│ │   ├── check@1.3.1 (expanded above)        
│ │   ├── ddp-client@2.3.3 (expanded above)   
│ │   ├── ddp-common@1.4.0 (expanded above)   
│ │   ├── diff-sequence@1.1.1 (expanded above)
│ │   ├── ecmascript@0.14.3 (top level)       
│ │   ├── ejson@1.1.1 (expanded above)        
│ │   ├── mongo-id@1.0.7 (expanded above)     
│ │   ├── random@1.2.0 (expanded above)       
│ │   ├── retry@1.1.0 (expanded above)        
│ │   ├─┬ routepolicy@1.1.0                   
│ │   │ ├── ecmascript@0.14.3 (top level)     
│ │   │ ├── underscore@1.0.10                 
│ │   │ └─┬ webapp@1.9.1                      
│ │   │   ├─┬ boilerplate-generator@1.7.0     
│ │   │   │ ├── ecmascript@0.14.3 (top level) 
│ │   │   │ └── underscore@1.0.10             
│ │   │   ├── ecmascript@0.14.3 (top level)   
│ │   │   ├─┬ inter-process-messaging@0.1.1   
│ │   │   │ ├── modules@0.15.0 (expanded above)
│ │   │   │ └─┬ promise@0.11.2                
│ │   │   │   ├── modern-browsers@0.1.5 (expanded above)
│ │   │   │   └── modules@0.15.0 (expanded above)
│ │   │   ├─┬ logging@1.1.20                  
│ │   │   │ ├── ecmascript@0.14.3 (top level) 
│ │   │   │ ├─┬ ecmascript-runtime-client@0.10.0
│ │   │   │ │ ├── modern-browsers@0.1.5 (expanded above)
│ │   │   │ │ ├── modules@0.15.0 (expanded above)
│ │   │   │ │ └── promise@0.11.2 (expanded above)
│ │   │   │ └── ejson@1.1.1 (expanded above)  
│ │   │   ├── modern-browsers@0.1.5 (expanded above)
│ │   │   ├── routepolicy@1.1.0 (expanded above)
│ │   │   ├── underscore@1.0.10               
│ │   │   └─┬ webapp-hashing@1.0.9            
│ │   │     ├── ecmascript@0.14.3 (top level) 
│ │   │     └── underscore@1.0.10             
│ │   ├── underscore@1.0.10                   
│ │   └── webapp@1.9.1 (expanded above)       
│ ├─┬ ddp-rate-limiter@1.0.8                  
│ │ ├── ecmascript@0.14.3 (top level)         
│ │ └─┬ rate-limit@1.0.9                      
│ │   ├── ecmascript@0.14.3 (top level)       
│ │   └── random@1.2.0 (expanded above)       
│ ├── ecmascript@0.14.3 (top level)           
│ ├── ejson@1.1.1 (expanded above)            
│ ├─┬ localstorage@1.2.0                      
│ │ └── random@1.2.0 (expanded above)         
│ ├── mongo@1.10.0 (top level)                
│ ├── random@1.2.0 (expanded above)           
│ ├─┬ reactive-var@1.0.11                     
│ │ └── tracker@1.2.0 (expanded above)        
│ ├─┬ service-configuration@1.0.11            
│ │ ├── accounts-base@1.6.0 (expanded above)  
│ │ └── mongo@1.10.0 (top level)              
│ └── tracker@1.2.0 (expanded above)          
├── check@1.3.1 (expanded above)              
├── ddp@1.4.0 (expanded above)                
├── ecmascript@0.14.3 (top level)             
├── ejson@1.1.1 (expanded above)              
├── email@1.2.3                               
├─┬ npm-bcrypt@0.9.3                          
│ └── modules@0.15.0 (expanded above)         
├── random@1.2.0 (expanded above)             
├── sha@1.0.9                                 
└─┬ srp@1.1.0                                 
  ├── check@1.3.1 (expanded above)            
  ├── ecmascript@0.14.3 (top level)           
  ├── random@1.2.0 (expanded above)           
  └── sha@1.0.9                               
accounts-ui@1.3.1                             
├── accounts-base@1.6.0 (expanded above)      
├─┬ accounts-ui-unstyled@1.4.2                
│ ├── accounts-base@1.6.0 (expanded above)    
│ ├── ecmascript@0.14.3 (top level)           
│ ├─┬ less@2.8.0                              
│ │ ├─┬ caching-compiler@1.2.2                
│ │ │ ├── ecmascript@0.14.3 (top level)       
│ │ │ └── random@1.2.0 (expanded above)       
│ │ ├── ecmascript@0.14.3 (top level)         
│ │ └── underscore@1.0.10                     
│ ├── service-configuration@1.0.11 (expanded above)
│ ├── session@1.2.0 (top level)               
│ ├─┬ templating@1.3.2                        
│ │ ├─┬ templating-compiler@1.3.3             
│ │ │ ├─┬ caching-html-compiler@1.1.3         
│ │ │ │ ├── caching-compiler@1.2.2 (expanded above)
│ │ │ │ ├── ecmascript@0.14.3 (top level)     
│ │ │ │ ├─┬ templating-tools@1.1.2            
│ │ │ │ │ ├── ecmascript@0.14.3 (top level)   
│ │ │ │ │ ├─┬ spacebars-compiler@1.1.3        
│ │ │ │ │ │ ├─┬ blaze-tools@1.0.10            
│ │ │ │ │ │ │ ├─┬ htmljs@1.0.11               
│ │ │ │ │ │ │ │ └─┬ deps@1.0.12               
│ │ │ │ │ │ │ │   └── tracker@1.2.0 (expanded above)
│ │ │ │ │ │ │ └── underscore@1.0.10           
│ │ │ │ │ │ ├─┬ html-tools@1.0.11             
│ │ │ │ │ │ │ └── htmljs@1.0.11 (expanded above)
│ │ │ │ │ │ ├── htmljs@1.0.11 (expanded above)
│ │ │ │ │ │ └── underscore@1.0.10             
│ │ │ │ │ └── underscore@1.0.10               
│ │ │ │ └── underscore@1.0.10                 
│ │ │ ├── ecmascript@0.14.3 (top level)       
│ │ │ └── templating-tools@1.1.2 (expanded above)
│ │ └─┬ templating-runtime@1.3.2              
│ │   ├─┬ blaze@2.3.4                         
│ │   │ ├── check@1.3.1 (expanded above)      
│ │   │ ├── ecmascript@0.14.3 (top level)     
│ │   │ ├── htmljs@1.0.11 (expanded above)    
│ │   │ ├─┬ observe-sequence@1.0.16           
│ │   │ │ ├── diff-sequence@1.1.1 (expanded above)
│ │   │ │ ├── mongo-id@1.0.7 (expanded above) 
│ │   │ │ ├── random@1.2.0 (expanded above)   
│ │   │ │ ├── tracker@1.2.0 (expanded above)  
│ │   │ │ └── underscore@1.0.10               
│ │   │ ├─┬ ordered-dict@1.1.0                
│ │   │ │ └── ecmascript@0.14.3 (top level)   
│ │   │ ├── reactive-var@1.0.11 (expanded above)
│ │   │ ├── tracker@1.2.0 (expanded above)    
│ │   │ └── underscore@1.0.10                 
│ │   ├─┬ spacebars@1.0.15                    
│ │   │ ├── blaze@2.3.4 (expanded above)      
│ │   │ ├── htmljs@1.0.11 (expanded above)    
│ │   │ ├── observe-sequence@1.0.16 (expanded above)
│ │   │ ├── tracker@1.2.0 (expanded above)    
│ │   │ └── underscore@1.0.10                 
│ │   ├── templating-compiler@1.3.3 (expanded above)
│ │   └── underscore@1.0.10                   
│ └── tracker@1.2.0 (expanded above)          
└── less@2.8.0 (expanded above)               
activitree:push@2.0.7                         
├── check@1.3.1 (expanded above)              
├── ecmascript@0.14.3 (top level)             
├── ejson@1.1.1 (expanded above)              
├── mongo@1.10.0 (top level)                  
├─┬ raix:eventstate@0.0.5                     
│ └── raix:eventemitter@1.0.0                 
├── random@1.2.0 (expanded above)             
└── tracker@1.2.0 (expanded above)            
alanning:roles@1.2.19                         
├── accounts-base@1.6.0 (expanded above)      
├── check@1.3.1 (expanded above)              
├── mongo@1.10.0 (top level)                  
├── tracker@1.2.0 (expanded above)            
└── underscore@1.0.10                         
cultofcoders:redis-oplog@2.0.5                
├── ddp-server@2.3.2 (expanded above)         
├── diff-sequence@1.1.1 (expanded above)      
├── ecmascript@0.14.3 (top level)             
├── ejson@1.1.1 (expanded above)              
├── id-map@1.1.0 (expanded above)             
├─┬ minimongo@1.6.0                           
│ ├── diff-sequence@1.1.1 (expanded above)    
│ ├── ecmascript@0.14.3 (top level)           
│ ├── ejson@1.1.1 (expanded above)            
│ ├─┬ geojson-utils@1.0.10                    
│ │ └── modules@0.15.0 (expanded above)       
│ ├── id-map@1.1.0 (expanded above)           
│ ├─┬ mongo-decimal@0.1.1                     
│ │ ├── ecmascript@0.14.3 (top level)         
│ │ └── ejson@1.1.1 (expanded above)          
│ ├── mongo-id@1.0.7 (expanded above)         
│ ├── ordered-dict@1.1.0 (expanded above)     
│ ├── random@1.2.0 (expanded above)           
│ └── tracker@1.2.0 (expanded above)          
├── mongo@1.10.0 (top level)                  
├── mongo-id@1.0.7 (expanded above)           
├── random@1.2.0 (expanded above)             
├── tracker@1.2.0 (expanded above)            
└── underscore@1.0.10                         
disable-oplog@1.0.7                           
dynamic-import@0.5.2                          
├─┬ fetch@0.1.1                               
│ ├── modern-browsers@0.1.5 (expanded above)  
│ ├── modules@0.15.0 (expanded above)         
│ └── promise@0.11.2 (expanded above)         
├── inter-process-messaging@0.1.1 (expanded above)
├── modern-browsers@0.1.5 (expanded above)    
├── modules@0.15.0 (expanded above)           
└── promise@0.11.2 (expanded above)           
ecmascript@0.14.3                             
├─┬ babel-compiler@7.5.3                      
│ ├─┬ ecmascript-runtime@0.7.0                
│ │ ├── ecmascript-runtime-client@0.10.0 (expanded above)
│ │ └─┬ ecmascript-runtime-server@0.9.0       
│ │   └── modules@0.15.0 (expanded above)     
│ └── modern-browsers@0.1.5 (expanded above)  
├─┬ babel-runtime@1.5.0                       
│ └── modules@0.15.0 (expanded above)         
├── dynamic-import@0.5.2 (top level)          
├── ecmascript-runtime@0.7.0 (expanded above) 
├── modules@0.15.0 (expanded above)           
└── promise@0.11.2 (expanded above)           
email@1.2.3                                   
es5-shim@4.8.0                                
└── modules@0.15.0 (expanded above)           
harrison:papa-parse@1.1.7                     
└─┬ jquery@1.11.11                            
  └── modules@0.15.0 (expanded above)         
hybrid:device@1.0.1                           
├── blaze@2.3.4 (expanded above)              
├── jquery@1.11.11 (expanded above)           
├── templating@1.3.2 (expanded above)         
└── underscore@1.0.10                         
lamhieu:unblock@1.0.0                         
└─┬ lamhieu:meteorx@2.1.1                     
  ├── mongo@1.10.0 (top level)                
  └── random@1.2.0 (expanded above)           
mdg:validated-method@1.2.0                    
├── check@1.3.1 (expanded above)              
├── ddp@1.4.0 (expanded above)                
└── ecmascript@0.14.3 (top level)             
meteor@1.9.3                                  
meteor-base@1.4.0                             
├── ddp@1.4.0 (expanded above)                
├── es5-shim@4.8.0 (top level)                
├─┬ hot-code-push@1.0.4                       
│ ├─┬ autoupdate@1.6.0                        
│ │ ├── check@1.3.1 (expanded above)          
│ │ ├── ddp@1.4.0 (expanded above)            
│ │ ├── ecmascript@0.14.3 (top level)         
│ │ ├── inter-process-messaging@0.1.1 (expanded above)
│ │ ├── retry@1.1.0 (expanded above)          
│ │ ├── tracker@1.2.0 (expanded above)        
│ │ └── webapp@1.9.1 (expanded above)         
│ └── reload@1.3.0 (expanded above)           
├─┬ livedata@1.0.18                           
│ └── ddp@1.4.0 (expanded above)              
└── webapp@1.9.1 (expanded above)             
mizzao:user-status@1.0.0                      
├── accounts-base@1.6.0 (expanded above)      
├── check@1.3.1 (expanded above)              
├── ecmascript@0.14.3 (top level)             
├─┬ mizzao:timesync@0.5.1                     
│ ├── check@1.3.1 (expanded above)            
│ ├── ecmascript@0.14.3 (top level)           
│ ├─┬ http@1.4.2                              
│ │ ├── modules@0.15.0 (expanded above)       
│ │ └─┬ url@1.3.1                             
│ │   ├── modern-browsers@0.1.5 (expanded above)
│ │   └── modules@0.15.0 (expanded above)     
│ ├── tracker@1.2.0 (expanded above)          
│ └── webapp@1.9.1 (expanded above)           
├── mongo@1.10.0 (top level)                  
├── tracker@1.2.0 (expanded above)            
└── underscore@1.0.10                         
mobile-experience@1.1.0                       
├── launch-screen@1.2.0                       
└── mobile-status-bar@1.1.0                   
momentjs:moment@2.27.0                        
mongo@1.10.0                                  
├─┬ allow-deny@1.1.0                          
│ ├── check@1.3.1 (expanded above)            
│ ├── ddp@1.4.0 (expanded above)              
│ ├── ecmascript@0.14.3 (top level)           
│ ├── ejson@1.1.1 (expanded above)            
│ └── minimongo@1.6.0 (expanded above)        
├─┬ binary-heap@1.0.11                        
│ ├── ecmascript@0.14.3 (top level)           
│ └── id-map@1.1.0 (expanded above)           
├── callback-hook@1.3.0 (expanded above)      
├── check@1.3.1 (expanded above)              
├── ddp@1.4.0 (expanded above)                
├── diff-sequence@1.1.1 (expanded above)      
├── ecmascript@0.14.3 (top level)             
├── ejson@1.1.1 (expanded above)              
├── minimongo@1.6.0 (expanded above)          
├── mongo-decimal@0.1.1 (expanded above)      
├─┬ mongo-dev-server@1.1.0                    
│ └── modules@0.15.0 (expanded above)         
├── mongo-id@1.0.7 (expanded above)           
├── npm-mongo@3.7.1                           
├── random@1.2.0 (expanded above)             
├── tracker@1.2.0 (expanded above)            
└── underscore@1.0.10                         
ostrio:files@1.14.2                           
├── check@1.3.1 (expanded above)              
├── ddp-client@2.3.3 (expanded above)         
├── ecmascript@0.14.3 (top level)             
├── http@1.4.2 (expanded above)               
├── mongo@1.10.0 (top level)                  
├─┬ ostrio:cookies@2.6.0                      
│ ├── ecmascript@0.14.3 (top level)           
│ ├── http@1.4.2 (expanded above)             
│ └── webapp@1.9.1 (expanded above)           
├── random@1.2.0 (expanded above)             
├── reactive-var@1.0.11 (expanded above)      
├── tracker@1.2.0 (expanded above)            
└── webapp@1.9.1 (expanded above)             
ostrio:templatehelpers@2.2.2                  
├── ecmascript@0.14.3 (top level)             
└── templating@1.3.2 (expanded above)         
react-meteor-data@2.1.1                       
├── ecmascript@0.14.3 (top level)             
├── tracker@1.2.0 (expanded above)            
└─┬ typescript@3.7.6                          
  ├── babel-compiler@7.5.3 (expanded above)   
  ├── babel-runtime@1.5.0 (expanded above)    
  ├── dynamic-import@0.5.2 (top level)        
  ├── ecmascript-runtime@0.7.0 (expanded above)
  ├── modules@0.15.0 (expanded above)         
  └── promise@0.11.2 (expanded above)         
rzymek:moment-locale-it@2.14.1                
└── momentjs:moment@2.27.0                    
session@1.2.0                                 
├── ecmascript@0.14.3 (top level)             
├── ejson@1.1.1 (expanded above)              
└─┬ reactive-dict@1.3.0                       
  ├── ecmascript@0.14.3 (top level)           
  ├── ejson@1.1.1 (expanded above)            
  └── tracker@1.2.0 (expanded above)          
shell-server@0.5.0                            
└── ecmascript@0.14.3 (top level)             
standard-minifier-css@1.6.0                   
└─┬ minifier-css@1.5.2                        
  └── ecmascript@0.14.3 (top level)           
standard-minifier-js@2.6.0                    
├── babel-compiler@7.5.3 (expanded above)     
├── ecmascript@0.14.3 (top level)             
└─┬ minifier-js@2.6.0                         
  └── babel-compiler@7.5.3 (expanded above)   
static-html@1.2.2                             
├── caching-html-compiler@1.1.3 (expanded above)
├── ecmascript@0.14.3 (top level)             
├── templating-tools@1.1.2 (expanded above)   
└── underscore@1.0.10                         
underscore@1.0.10        

seems “activitree:push” get dependency of raix:eventstate

I’m having the same issue with raix:push which activitree:push is a fork of.

The creator of the raix: packages recently deprecated his packages, and released a new version of raix:eventstate, removing all the code. He released it in a way that makes Meteor think it is not a breaking change but a safe and necessary one. This breaks the packages that rely on it including activitree:push.

I guess he wanted to force people to stop using his packages.

@captainn’s solution seems to work for me.

1 Like

I will update activitree:push in the next 24 hours.

5 Likes

I you guys like to see the packages list tree as optional JSON output in the future, please raise a :+1: on this feature request: https://github.com/meteor/meteor-feature-requests/issues/406

I will implement this asap if it gets green light as it’s important four our future GitHub action that will check on package versions and dependencies on push / pr for any outdated / deprecated packages.

Hi, activitree:push no longer depends on RAIX packages and I would need your help to test the new version in an active Cordova project before I push to Atmosphere. Web Push is ok, I could test it myself in production.
Please, up on your availability run this exercise and let me know if all looks good or as good as before: https://github.com/activitree/meteor-push/issues/28#issuecomment-688829808

Also, in your project you can do an extra route and add this button and method for your test. In your _push_tokens collection in Mongo you should see tokens of all IOS, Androi and Web. You can also click the button multiple times or generate multiple calls to the method on a single click (e.g 100)so you can observe the batch sending and the server load (should be pretty much 0 visible impact on CPU or RAM).


const sendNotificationTest = () => {
    console.log('send')
    Meteor.call('userPushNotification', {
      userId: '....', // a test user's id.
      title: 'A Test Notification ',
      body: 'Getting this message.',
      badge: 1
    }, err => {
      if (err) {
        console.log(err)
      }
    })
  }

<button className='btn btn-primary' type='button' onClick={sendNotificationTest}>Test</button>


// The Meteor Method (sits in a common folder):

export const userPushNotification = new ValidatedMethod({
  name: 'userPushNotification',
  validate: new SimpleSchema({
    title: String,
    body: String,
    badge: Number,
    userId: String,
    topic: { type: String, optional: true },
    sound: { type: String, optional: true },
    icon: { type: String, optional: true },
    color: { type: String, optional: true },
    vibrate: { type: Boolean, optional: true },
    contentAvailable: { type: Boolean, optional: true },
    launchImage: { type: String, optional: true },
    category: { type: String, optional: true },
    threadId: { type: String, optional: true },
    delayUntil: { type: Date, optional: true },
    token: { type: String, optional: true },
    tokens: { type: Array, optional: true },
    'tokens.$': { type: String, optional: true },
    from: { type: String, optional: true },
    data: { type: Object, blackbox: true, optional: true },
    action: { type: String, optional: true }
  }).validator(),
  run ({
    title,
    body,
    badge,
    userId,
    topic,
    sound,
    icon,
    color,
    vibrate,
    contentAvailable,
    launchImage,
    category,
    threadId,
    delayUntil,
    token,
    tokens,
    from,
    data,
    action
  }) {
    if (userId === '' || userId === undefined || userId === 'undefined') {
      throw new Meteor.Error(404, 'No userId was set, userId was ' + userId)
    }
    // topic in IOS and Android have different behaviors. In IOS it must be set as the app id,
    // in Android a notification can be sent to a topic (to its subscribers)

    if (this.userId) {
      const notification = {
        title,
        body,
        badge,
        userId,
        notId: Math.round(Date.now() / 1000)
      }

      if (topic) { notification.topic = topic }
      if (icon) { notification.icon = icon }
      if (color) { notification.color = color }
      if (sound) { notification.sound = sound }
      if (contentAvailable) { notification.contentAvailable = contentAvailable }
      if (launchImage) { notification.launchImage = launchImage }
      if (category) { notification.category = category }
      if (threadId) { notification.threadId = threadId }
      if (delayUntil) { notification.delayUntil = delayUntil }
      if (token) { notification.token = token }
      if (tokens) { notification.tokens = tokens }
      if (from) { notification.from = from }
      if (vibrate) { notification.vibrate = vibrate }
      if (data) { notification.data = data }
      if (action) { notification.action = action }
      this.unblock()
      Push.send(notification)
    }
  }
})

5 Likes

Hi @paulishca,
I have do this test for Android and I can confirm this works good, notification sended by server arrive in client device.
Now the raix package is’nt necessary.
Thank you for your work ! :wink:

3 Likes

You are very welcome. I just pushed 2.0.8 to Atmosphere.

3 Likes