Commit Graph

156 Commits

Author SHA1 Message Date
Sashko Stubailo
7f1621f72a Fix HTTP.call to not explode on undefined content
Fixes #5565
2015-11-03 17:55:32 -08:00
Sashko Stubailo
cf6d7f109b Remove RC qualifier from all version numbers 2015-09-21 15:43:03 -04:00
Sashko Stubailo
f4d2a3b20a Bump versions for RC 18 2015-09-21 12:49:26 -04:00
Sashko Stubailo
0bb7c7c0b2 New addAssets package.js API; same file can be source and asset
1. Add `addAssets` API to `package.js`
2. Rename `getSourcesFunc` to `getFiles` in internal code
3. Changed `PackageAPI#sources` to `PackageAPI#files` with a new structure that
   has separate objects for assets and sources
4. Added some tests for different error conditions
5. The same file can now be a source and an asset
2015-09-02 13:14:02 -07:00
David Greenspan
2e2a573d40 version bumps 2015-08-26 17:39:55 -07:00
David Greenspan
2b751b549b Merge branch 'devel' into release-1.2 2015-08-26 17:13:32 -07:00
rebolon
d6427c4150 Fix issue #4929 by calling toString on HTTP content
Closes PR #4940

[stubailo: squashed commits, edited commit message, code style]
2015-08-20 09:16:53 -07:00
David Greenspan
ca9b8f571f Version bumps
Tried to get everything to an rc.0 of the very latest version,
which required some research in some cases about the published
versions.  For example, some packages had version histories like:

```
...
  1.0.3-winr.2               January 20th, 2015
  1.0.3-winr.3               February 24th, 2015   installed
  1.0.3                      March 17th, 2015      installed
  1.0.4-anubhav.0            August 6th, 2015
  1.0.4-plugins.0            July 22nd, 2015
  1.0.5-galaxy.0             July 17th, 2015
```

In this case, I would bump the version from `1.0.4-plugins.0`
to `1.0.5-rc.0`, skipping `1.0.4`.
2015-08-10 22:10:52 -07:00
David Glasser
43b4b30205 Release PLUGINS-PREVIEW@1
This included removing some internal version constraints. It would be
nice if package A could say "use B@2.0.0" (when both have changed), but
when they're both in the release, we need to make a release that has a
B@2.0.0-rc in it, which doesn't match that constraint. Fortunately,
constraints aren't necessary within a release anyway.
2015-07-22 23:19:11 -07:00
David Glasser
b1183b5059 Assets in packages must be explicitly declared
In the past, `api.addFiles('foo.gif')` would make foo.gif an asset if
there was no extension handler for gif active.  In fact, it would make
it a dual client/server asset even if that was unintentional.

This led to a few problems:
(a) People often left out 'client' and ended up packaging an unnecessary
    second server copy of the asset
(b) The implementation meant that `api.addFiles('foo.css')` would actually
    add foo.css as a static asset on the server (this was already fixed
    on batch-plugins via explicitly looking for wrong-arch
    classifications)
(c) Now that we have linters, if a file is used by a linter but not by a
    compiler (eg linter config files), there was no way to say in a
    package "add this file, but just for linters, don't make it a static
    asset too".

These are only really issues in packages, not apps.  In apps, we avoid
them by only marking things as static assets if they are in public or
private (and not letting those things be considered as other kinds of
sources).

This is a backwards-incompatible change, but it does not affect apps or
published packages, just packages built from source.
2015-07-09 15:17:56 -07:00
Mitar
67f3e7bc5c Add more headers for JSON parsing. 2015-06-23 14:32:16 -07:00
David Glasser
f75eb8910e tweaks and history 2015-06-16 13:45:09 -07:00
Robert Pitt
60a0c2401d Fixed issues with spacing around conditions. 2015-06-16 13:36:55 -07:00
Robert Pitt
76c1b1117d Removed comment regarding callback context and condences new lines. 2015-06-16 13:36:55 -07:00
Robert Pitt
e705581725 Added documentation for beforeSend 2015-06-16 13:36:55 -07:00
Robert Pitt
400d76d061 add some equilibrium. 2015-06-16 13:36:55 -07:00
Robert Pitt
9ad2294fb3 Added tests 2015-06-16 13:36:55 -07:00
Robert Pitt
db7ea7c543 Added beforeSend hook to http client 2015-06-16 13:36:55 -07:00
David Glasser
4daaa76b12 METEOR@1.0.4 2015-03-17 13:06:07 -07:00
David Glasser
873018df44 Minor version bumps to packages with new features
* accounts-base: client-side login hooks
* accounts-password: emailTemplates features
* autoupdate: reload via Node IPC messages (and SIGHUP)
* blaze: template-level subscriptions and onRendered/etc hooks
* ddp: client-side onStop callback, permessage-deflate, subscriptionId
  on subscription handles
* http: npmRequestOptions, HTTPInternals.NpmModules
* mongo: validated against 2.6, oplog-backlog,
  rawCollection/rawDatabase, MongoInternals.NpmModules
* reactive-dict/session: Session.set({k1: v1, k2: v2})
* templating: attributes on <body>
* webapp: WebAppInternals.NpmModules
2015-03-05 22:30:22 -08:00
David Glasser
ef9671e705 Document direct access features in READMEs 2015-03-05 17:12:37 -08:00
David Glasser
c4d9ba573c Document npmRequestOptions 2015-03-05 17:12:37 -08:00
David Glasser
1002349edb Add direct access to connect module from webapp 2015-03-05 17:12:36 -08:00
David Glasser
8dae78d48b http: Allow specifying npm request options
You can use HTTPInternals.NpmModules.request.version to tell what
version of request (if any) is the backend for HTTP.call.  This version
may change incompatibly from version to version of Meteor; use at your
own risk.

Fixes #1703.
2015-03-05 17:12:36 -08:00
David Glasser
fa74e51102 Add direct access to request module from http 2015-03-05 17:12:36 -08:00
David Glasser
81d76fe9d0 http: update request to 2.53.0 (from 2.47.0) 2015-03-05 17:12:35 -08:00
Sashko Stubailo
ff0f304096 Bump version numbers to avoid downgrades 2015-03-03 22:22:09 -08:00
David Glasser
17fc498259 Fix tests from #3730 fix
Whoops, accidentally only ran webapp tests before pushing.
2015-02-17 18:39:20 -08:00
Slava Kim
3c68cebf0d bump 2015-02-02 13:38:01 -08:00
Slava Kim
27f249bfed A lot of crazy package bumps 2015-01-21 14:03:55 -08:00
Sashko Stubailo
25f3b9f337 Bump a bunch of versions 2015-01-20 22:34:25 -08:00
ekatek
99124d881a increment package versions 2015-01-20 10:25:22 -08:00
ekatek
40fa95830f increment version numbers 2015-01-13 19:30:27 -08:00
Emily Stark
059fc88ff9 Follow redirects on non-GET requests also.
Fixes #2808.
2014-12-28 22:19:37 -08:00
David Glasser
6b204ca73a Bump package versions for 1.0.2 2014-12-19 10:31:59 -08:00
David Glasser
73b809c122 Bump versions for 1.0.2. 2014-12-11 22:44:41 -08:00
David Glasser
6ea8443f30 Update calls to addFiles, onUse, and onTest 2014-12-09 20:18:31 -08:00
David Glasser
de5f68cf70 bump all versions (due to source-map upgrade) 2014-11-25 09:06:26 -08:00
David Glasser
d5afd1b6a9 Update shrinkwrap 2014-10-30 15:12:30 -07:00
David Glasser
92b1bf1369 Upgrade request to 2.47.0 from 2.33.0
Looks like it now auto-detects $HTTP_PROXY so we could drop that code
from http-helpers (but not from the faye stuff).
2014-10-30 15:12:29 -07:00
Emily Stark
cb54ae18fb Merge branch 'master' into devel
Conflicts:
	History.md
	examples/localmarket/.meteor/release
	examples/localmarket/.meteor/versions
	packages/stylus/README.md
	tools/compiler.js
	tools/package-client.js
	tools/tests/old/app-with-private/.meteor/versions
	tools/tests/old/app-with-public/.meteor/versions
	tools/tests/old/empty-app/.meteor/versions
2014-10-28 10:42:30 -07:00
Emily Stark
b4c10d8f61 bump package versions 2014-10-28 02:49:54 -07:00
Emily Stark
6c8c67afe8 bump package version numbers for rc.10 2014-10-27 20:03:42 -07:00
ekatek
e79f95e3ca incrementing versions for rc.9 2014-10-24 16:39:56 -07:00
Sashko Stubailo
721fa0451b Update more readmes 2014-10-24 10:13:59 -07:00
Emily Stark
54989c85bf bump package versions for rc.7 2014-10-23 16:59:11 -07:00
David Glasser
de97e984f6 bump for 1.0-rc.5 2014-10-23 11:06:43 -07:00
Emily Stark
6fc46976da bump package version for 1.0-rc.3 2014-10-22 12:58:12 -07:00
David Glasser
6db7783470 bump for 1.0-rc.2
unclear why http and less are needed
2014-10-17 22:17:06 -07:00
Sashko Stubailo
36da5aecb4 Make all version numbers not have rc 2014-10-13 14:09:37 -07:00