Seba Kerckhof
f8e59735f6
Modernize session package ( #10228 )
2018-11-03 16:12:06 -04:00
Sashko Stubailo
ee59870e06
Add docs about new Session.set API, wrap doc comments
2015-02-23 21:42:13 -08:00
David Glasser
3ff1ca06b8
Clarify Session.setDefault docs.
...
Wording suggested by @PeppeL-G.
Fixes #2725 .
2014-10-13 16:08:47 -07:00
David Greenspan
624035fab8
Make ReactiveDict(name) be migrated
...
Session is now literally one line.
Apps and packages can declare their own private “session-like” ReactiveDicts that are migrated, as long as they choose unique names.
The `Foo = new ReactiveDict(“foo”)` pattern is reminiscent of Collections.
2014-08-30 15:11:01 -07:00
David Greenspan
c9857ea642
Change additional occurrences of Deps to Tracker
2014-08-27 22:43:28 -07:00
Sashko Stubailo
41910019e1
Renamed Deps to Tracker in all packages
2014-08-27 20:05:22 -07:00
Sashko Stubailo
aa43fb2f2f
Add a bunch of new stuff to auto docs, see names.json
2014-08-25 20:54:28 -07:00
David Glasser
9f38258b54
Drop all @export lines. Add api.exportSymbol instead.
2013-07-25 18:54:40 -07:00
Geoff Schmidt
3d1c09794f
Comprehensive namespace cleanup.
2013-07-25 18:54:40 -07:00
David Glasser
6b48e8bd8a
stuff that doesn't have conflicts
2013-05-13 11:51:50 -07:00
David Greenspan
fa5770ec74
move Session impl into private ReactiveDict pkg
2013-04-02 17:24:47 -07:00
David Greenspan
df5d2800ae
dep.depend() instead of Deps.depend(dep)
...
simpler than having Deps.depend and addDependent, reads fine
2013-03-21 14:09:40 -07:00
David Glasser
5a5204e3a4
Remove closures around package files. (hint: git blame -w)
...
The bundler now adds closures around client files and the server adds closures
around server files.
2013-03-19 15:13:53 -07:00
David Greenspan
96d05d741f
Deps.Variable => Deps.Dependency
2013-03-11 12:37:25 -07:00
David Greenspan
87964fe689
Deps: can only register callbacks on active computations
2013-03-01 18:20:06 -08:00
David Greenspan
447f5a6686
Var -> Deps
2013-02-28 16:11:38 -08:00
David Greenspan
f6aabffab3
port all packages to new Deps (tests pass)
2013-02-25 17:52:51 -08:00
Naomi Seyfer
dba23bd29c
Session.setDefault, and updating todos to use it. #698
2013-02-20 17:56:39 -08:00
Naomi Seyfer
24c4b0615d
Mostly switching over to using EJSON.equals
2013-01-17 15:56:12 -05:00
Naomi Seyfer
9fe782ab15
Move EJSON stuff to new ejson package.
2013-01-17 15:51:58 -05:00
Naomi Seyfer
3331e1f7d3
Glasser's comments on my diff
...
* Lots of small things like whitespace fixes
* change the way adding a custom type works
2013-01-17 15:49:48 -05:00
Naomi Seyfer
e1f15e7c7f
Hacked objectid in there, though not ideally
2013-01-17 15:47:27 -05:00
Naomi Seyfer
c305ac8d22
Date now works in session var
2013-01-17 15:47:27 -05:00
David Glasser
9251edbf8d
Allow arbitrary JSON objects to be stored in Session (but not compared with equals). Test Session. Fixes #215 .
2012-10-06 14:42:59 -07:00
David Glasser
20e29d2851
Make everything in deps-utils private for now.
2012-10-05 15:26:22 -07:00
David Glasser
08a0eda83e
Merge branch 'devel' into deps-utils-private
...
Conflicts:
packages/session/session.js
2012-10-05 15:14:13 -07:00
David Glasser
ac9f553d07
Refactor "reload" package: camelCase the API, and make the onMigrate name
...
optional.
Motivation: now that we don't use "url" as a key in _LivedataConnection, it's
easier to turn it into a function (for MeteorWildcard support).
2012-09-28 00:19:54 -07:00
David Glasser
094546d53b
Check that the value to Session.set is scalar (like we already do in Session.equals).
...
Document this restriction for both functions.
We may later relax this (with deep-copy in and out of the Session); see issue
2012-09-27 11:10:28 -07:00
David Greenspan
6ac7b27410
camelCase onInvalidate
2012-09-17 18:04:16 -07:00
David Glasser
5e622215ba
Change all publicly documented APIs to use camelCase.
...
For now, the old names still work as well.
This includes:
- Meteor.isServer/isClient
- this.isSimulation in methods
- Context.onInvalidate
- Meteor.status().retryCount/retryTime
Remove old backwards-compatibility "Sky" alias for "Meteor".
Update all examples in the docs to use camelCase.
Delete unused docs/client/projects.html file.
2012-09-17 14:26:45 -07:00
David Greenspan
dcb399533f
fix Session
2012-09-16 14:19:06 -07:00
David Greenspan
b070f5cf49
provide contextSet.addCurrentContext()
2012-09-16 02:48:23 -07:00
David Greenspan
16777fc5e6
tweaks for style
2012-09-16 02:48:23 -07:00
David Greenspan
d78481c1ce
introduce Meteor.deps.ContextSet, use in Session
2012-09-16 02:48:20 -07:00
Geoff Schmidt
224f48cc81
In a migration, always get a consistent snapshot
2012-03-01 19:37:05 -08:00
Geoff Schmidt
ddfbf236ce
allow packages to block migration until they're ready
2012-03-01 17:25:36 -08:00
matt debergalis
b84f048c75
harmonize style: no parens after typeof
2012-02-10 15:43:12 -08:00
Nick Martin
68511f2dc4
Wire up reload package. Doesn't actually do anything yet, but all the pieces should be in place now.
2012-02-06 23:15:31 -08:00
Nick Martin
3faff2de78
perl -pi -e 's/Sky/Meteor/g' **/*
2012-01-04 20:52:46 -08:00
Geoff Schmidt
8503c55453
even cleaner implementation of deps/session
...
eliminates 'once', easier to understand, saves a little memory
2011-12-19 16:39:28 -08:00
Geoff Schmidt
3666cff408
redo Sky.deps api for clarity and flexibility
...
especially the ability for the caller of monitor to grab the invalidation function
2011-12-19 16:39:28 -08:00
Geoff Schmidt
e57b93a1b8
coalesce redundant dependencies created by Session
2011-12-19 16:39:28 -08:00
Geoff Schmidt
260d572afe
fix bug introduced by IE8 iteration fix
2011-12-07 22:27:23 -08:00
Geoff Schmidt
8963588b64
eliminate geoffclasses
2011-12-07 21:09:25 -08:00
Nick Martin
8438e0783a
Work around to prevent infinite loop in IE8.
2011-12-05 20:43:25 -08:00
Geoff Schmidt
598337d505
a much simpler implementation of session
2011-11-26 23:19:50 -08:00
Geoff Schmidt
89b4263ec1
refactor Sky.deps for clarity
2011-11-26 22:49:42 -08:00
Nick Martin
d69c2d1f19
Initial import from old busted repo.
2011-11-17 18:35:20 -08:00