Commit Graph

22146 Commits

Author SHA1 Message Date
Ben Newman
596c1998be Bump package versions for 1.8.2-beta.15 release. release/METEOR@1.8.2-beta.15 2019-07-06 17:16:47 -04:00
Ben Newman
c919ad6fb6 Bump $BUNDLE_VERSION to 8.16.0.21 before rebuilding dev bundle. 2019-07-06 13:11:31 -04:00
Ben Newman
bd1834c3e3 Update meteor-babel to version 7.5.5. 2019-07-06 13:10:35 -04:00
Ben Newman
c926e9ebd7 Fix importing of unanticipated .mjs modules in ImportScanner.
Should fix this problem reported by @arggh:
https://github.com/meteor/meteor/pull/10522#issuecomment-508908306
2019-07-06 12:38:04 -04:00
Ben Newman
df4e54a80d Test that the ganalytics npm package is importable.
As reported by @arggh in this comment:
https://github.com/meteor/meteor/pull/10522#issuecomment-508908306
2019-07-06 12:38:04 -04:00
Ben Newman
cdafcb8ebc Avoid transpiling .d.ts files when bundling meteor-tool. 2019-07-06 12:38:04 -04:00
Ben Newman
ead1214a1f Temporarily work around injection of objectSpread helper.
https://github.com/babel/babel/pull/10170#issuecomment-508936150
2019-07-06 12:00:03 -04:00
Ben Newman
e2bbda2817 Bump $BUNDLE_VERSION to 8.16.0.20 before rebuilding dev bundle. 2019-07-06 11:29:31 -04:00
Ben Newman
71a6e2c2f5 Update meteor-babel to version 7.5.3.
TypeScript is now supported by the actual TypeScript compiler, rather than
by @babel/preset-typescript: https://github.com/meteor/babel/pull/25
2019-07-06 11:27:54 -04:00
Ben Newman
88b085d8e1 Fix type errors now that Profile(name, fn) returns typeof fn. 2019-07-06 09:19:14 -04:00
Ben Newman
769337551e Convert tools/tool-env/profile.js to TypeScript.
Unfortunately, this conversion triggered an error due to one of the
shortcomings of the Babel implementation of TypeScript:

SyntaxError: /tools/tool-env/profile.ts: Namespace not marked type-only declare. Non-declarative namespaces are only supported experimentally in Babel. To enable and review caveats see: https://babeljs.io/docs/en/babel-plugin-transform-typescript
  278 | }
  279 |
> 280 | export namespace Profile {
      |                  ^
  281 |   export let enabled = !! process.env.METEOR_PROFILE;
  282 |
  283 |   export function time<TResult>(bucket: string, f: () => TResult) {
    at File.buildCodeFrameError (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/core/lib/transformation/file/file.js:261:12)
    at transpileNamespace (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/plugin-transform-typescript/lib/namespace.js:25:25)
    at PluginPass.TSModuleDeclaration (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/plugin-transform-typescript/lib/index.js:271:32)
    at newFn (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/visitors.js:193:21)
    at NodePath._call (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/path/context.js:53:20)
    at NodePath.call (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/path/context.js:40:17)
    at NodePath.visit (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/path/context.js:88:12)
    at TraversalContext.visitQueue (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/context.js:118:16)
    at TraversalContext.visitMultiple (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/context.js:85:17)
    at TraversalContext.visit (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/context.js:144:19)
2019-07-06 09:18:35 -04:00
Ben Newman
4431f34cbe Bump package versions for 1.8.2-beta.14 release. release/METEOR@1.8.2-beta.14 2019-07-05 19:15:04 -04:00
Ben Newman
d8436bb635 Convert tools/fs/safe-watcher.js to TypeScript.
This completes the TypeScript conversion of the tools/fs directory. 🎉
2019-07-05 18:58:18 -04:00
Ben Newman
85d8db7f1d Fix return types of fs.{watchFile,unwatchFile}.
These methods return a StatWatcher object with various useful methods, but
@types/node apparently gets this completely wrong, assuming void.
2019-07-05 18:48:16 -04:00
Ben Newman
8958cbc5e9 Convert tools/fs/watch.js to TypeScript. 2019-07-05 17:50:20 -04:00
Ben Newman
75da77c1e3 Bump $BUNDLE_VERSION to 8.16.0.19 before rebuilding dev bundle. 2019-07-05 17:47:18 -04:00
Ben Newman
e80189e76b Update meteor-babel to version 7.5.1. 2019-07-05 17:47:18 -04:00
Ben Newman
528b549460 Convert tools/fs/optimistic.js to TypeScript. 2019-07-05 12:29:19 -04:00
Ben Newman
55bde8acb8 Improve generic types in tools/fs/files.ts. 2019-07-05 12:28:57 -04:00
Ben Newman
8259c75421 Tweaks to pacify TypeScript in tools/fs/files.ts. 2019-07-04 17:25:41 -04:00
Ben Newman
d26a41df9d Bump package versions for 1.8.2-beta.13 release. release/METEOR@1.8.2-beta.13 2019-07-04 16:39:01 -04:00
Ben Newman
c3c7ec4804 Give Meteor 1.8.2 an official heading in History.md. 2019-07-04 16:36:48 -04:00
Ben Newman
101eea015f Update meteor-node-stubs npm dependency to v1.0.0. 2019-07-04 16:36:27 -04:00
Ben Newman
6979b55dfc Update @babel/runtime to latest version in remaining test apps. 2019-07-04 16:23:12 -04:00
Ben Newman
755d0d1722 Fix outdated import of optimism package in dynamic-import test. 2019-07-04 16:18:59 -04:00
Ben Newman
6d24ab5293 Update all dependencies of dynamic-import test app. 2019-07-04 16:18:45 -04:00
Ben Newman
146e6ba1d4 Update @babel/{runtime,...} dependencies of modules test app. 2019-07-04 16:04:33 -04:00
Ben Newman
c1520052f5 Bump $BUNDLE_VERSION to 8.16.0.18 before rebuilding dev bundle. 2019-07-04 15:58:01 -04:00
Ben Newman
c632542a04 Update meteor-babel to version 7.5.0. 2019-07-04 15:57:25 -04:00
Ben Newman
150fc96040 Bump $BUNDLE_VERSION to 8.16.0.17 before rebuilding dev bundle. 2019-07-04 15:03:15 -04:00
Ben Newman
cdd8f32196 Update npm to 6.10.0 and pacote to 9.5.1. 2019-07-04 15:02:26 -04:00
Ben Newman
0fe3451c49 Merge pull request #10607 from meteor/convert-tools/fs/files-to-typescript
Convert tools/fs/files.js to TypeScript.
2019-07-04 14:57:18 -04:00
Ben Newman
8a409d196c Convert mini-files.js to TypeScript. 2019-07-04 14:43:51 -04:00
Ben Newman
0d99790127 Add back profiling of files.* functions. 2019-07-04 14:18:30 -04:00
Ben Newman
c8766aee77 Bring back files.withCache, with a different implementation. 2019-07-04 14:18:30 -04:00
Ben Newman
2c39986f31 Use a few more import declarations in tools/fs/files. 2019-07-04 14:18:30 -04:00
Ben Newman
0df070fc5f Use const and let more consistently in tools/fs/files. 2019-07-04 14:18:30 -04:00
Ben Newman
62a78c5860 Finish converting tools/fs/files.ts to TypeScript. 2019-07-04 14:18:29 -04:00
Ben Newman
5ed64fb1db Remove explicit .js extension from tools/fs/files imports. 2019-07-04 10:32:09 -04:00
Ben Newman
f77cbc5bcf Rename tools/fs/files.js to files.ts. 2019-07-04 10:21:00 -04:00
Ben Newman
7de2d35747 Move global types into tools/index.d.ts. 2019-07-04 10:20:57 -04:00
Ben Newman
1955ec08fa Bump package versions for 1.8.2-beta.12 release. release/METEOR@1.8.2-beta.12 2019-07-03 12:40:48 -04:00
Ben Newman
e195440442 Fall back to package.json "main" field if "module" cannot be resolved.
The meteor/tools/isobuild/resolver.js changes are the static half of the
puzzle. The runtime half was implemented in install@0.13.0 with this
commit: 233aa75ce3
2019-07-03 12:25:05 -04:00
Ben Newman
fec14ba8b7 Bump $BUNDLE_VERSION to 8.16.0.16 before rebuilding dev bundle. 2019-07-03 11:20:52 -04:00
Ben Newman
ad92fe8647 Merge branch 'devel' into release-1.8.2 2019-07-03 11:19:56 -04:00
Ben Newman
e0caf13103 Stop using Mongo Timestamp as cacheKey in DocFetcher.
See my comment in issue #10512 for motivation:
https://github.com/meteor/meteor/issues/10512#issuecomment-504797861

I think the changes in b0cb1ceda3 are still
worthwhile because they ensure ops within a transaction have distinct
Timestamps, with the caveat that we should avoid assuming those Timestamps
are necessarily unique.
2019-07-03 11:07:34 -04:00
Ben Newman
59284a90b5 Give different Timestamps to operations within a transaction.
Follow-up to #10420, per this comment by @conorstrejcek:
https://github.com/meteor/meteor/issues/10420#issuecomment-476833232

Should help with #10512.
2019-07-03 11:06:43 -04:00
Ben Newman
2add249b7c Update reify to version 0.20.11. 2019-07-03 10:59:14 -04:00
David Sichau
fd47bb3a23 Ignore oplog entries from other dbs instead of throwing an error. (#10604) 2019-07-03 10:38:44 -04:00
Ben Newman
eda3057233 Bump $BUNDLE_VERSION to 8.16.0.15 before rebuilding dev bundle. 2019-07-03 10:20:42 -04:00