Browse Source

Use individual strophe plugins instead of entire repo

JC Brand 8 years ago
parent
commit
4a37c6940b
3 changed files with 11 additions and 12 deletions
  1. 5 8
      config.js
  2. 1 3
      docs/CHANGES.md
  3. 5 1
      package.json

+ 5 - 8
config.js

@@ -38,10 +38,10 @@ require.config({
         "strophe-sha1":             "node_modules/strophe.js/src/sha1",
         "strophe-sha1":             "node_modules/strophe.js/src/sha1",
         "strophe-utils":            "node_modules/strophe.js/src/utils",
         "strophe-utils":            "node_modules/strophe.js/src/utils",
         "strophe-websocket":        "node_modules/strophe.js/src/websocket",
         "strophe-websocket":        "node_modules/strophe.js/src/websocket",
-        "strophe.disco":            "node_modules/strophejs-plugins/disco/strophe.disco",
-        "strophe.ping":             "node_modules/strophejs-plugins/ping/strophe.ping",
-        "strophe.rsm":              "node_modules/strophejs-plugins/rsm/strophe.rsm",
-        "strophe.vcard":            "node_modules/strophejs-plugins/vcard/strophe.vcard",
+        "strophe.disco":            "node_modules/strophejs-plugin-disco/strophe.disco",
+        "strophe.ping":             "node_modules/strophejs-plugin-ping/strophe.ping",
+        "strophe.rsm":              "node_modules/strophejs-plugin-rsm/strophe.rsm",
+        "strophe.vcard":            "node_modules/strophejs-plugin-vcard/strophe.vcard",
         "text":                     "node_modules/text/text",
         "text":                     "node_modules/text/text",
         "tpl":                      "node_modules/lodash-template-loader/loader",
         "tpl":                      "node_modules/lodash-template-loader/loader",
         "typeahead":                "components/typeahead.js/index",
         "typeahead":                "components/typeahead.js/index",
@@ -204,9 +204,6 @@ require.config({
     // define module dependencies for modules not using define
     // define module dependencies for modules not using define
     shim: {
     shim: {
         'awesomplete':          { exports: 'Awesomplete' },
         'awesomplete':          { exports: 'Awesomplete' },
-        'backbone':             { deps: ['underscore'] },
-        'strophe.ping':         { deps: ['strophe'] },
-        'strophe.register':     { deps: ['strophe'] },
-        'strophe.vcard':        { deps: ['strophe'] },
+        'backbone':             { deps: ['underscore'] }
     }
     }
 });
 });

+ 1 - 3
docs/CHANGES.md

@@ -18,12 +18,10 @@
   You're still able to do everything from before but now also much more.
   You're still able to do everything from before but now also much more.
   [jcbrand]
   [jcbrand]
 - Allow JIDs not on the roster to be invited to a chatroom. [jcbrand]
 - Allow JIDs not on the roster to be invited to a chatroom. [jcbrand]
-- #770 Allow setting contact attrs on chats.open [Ape]
-
-## 2.0.7 (2017-02-15)
 - Bugfix. 'TypeError: this.sendConfiguration(...).then is not a function' when an instant room is created. [jcbrand]
 - Bugfix. 'TypeError: this.sendConfiguration(...).then is not a function' when an instant room is created. [jcbrand]
 - Ensure consistent behavior from `show_controlbox_by_default` [jcbrand]
 - Ensure consistent behavior from `show_controlbox_by_default` [jcbrand]
 - #694 The `notification_option` wasn't being used consistently. [jcbrand]
 - #694 The `notification_option` wasn't being used consistently. [jcbrand]
+- #770 Allow setting contact attrs on chats.open [Ape]
 
 
 ## 2.0.6 (2017-02-13)
 ## 2.0.6 (2017-02-13)
 - Escape user-generated input to prevent JS-injection attacks. (Thanks to SamWhited) [jcbrand]
 - Escape user-generated input to prevent JS-injection attacks. (Thanks to SamWhited) [jcbrand]

+ 5 - 1
package.json

@@ -68,7 +68,11 @@
     "sinon": "^1.17.3",
     "sinon": "^1.17.3",
     "snyk": "^1.21.2",
     "snyk": "^1.21.2",
     "strophe.js": "1.2.12",
     "strophe.js": "1.2.12",
-    "strophejs-plugins": "0.0.7",
+    "strophejs-plugin-disco": "0.0.1",
+    "strophejs-plugin-ping": "0.0.1",
+    "strophejs-plugin-register": "0.0.1",
+    "strophejs-plugin-rsm": "0.0.1",
+    "strophejs-plugin-vcard": "0.0.1",
     "text": "requirejs/text#2.0.15"
     "text": "requirejs/text#2.0.15"
   },
   },
   "dependencies": {}
   "dependencies": {}