Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.9.0 #80

Merged
merged 62 commits into from
Mar 24, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
55facb7
Remove typeahead.css.
Feb 20, 2013
38f9fe0
Remove typeahead.css related tasks.
Feb 21, 2013
ae29dea
Apply styling though js. Fixes #2.
Feb 21, 2013
2c0a635
Move js files from src/js/ to src/.
Feb 21, 2013
f125f57
First pass at transport rewrite.
Feb 22, 2013
8cba83b
Use spans for dd menu suggestions list. Use jQuery#css.
Feb 22, 2013
ceff358
Have transports share a request cache.
Feb 22, 2013
135bd75
Update method names.
Feb 23, 2013
e208114
Use past tense for view events.
Feb 23, 2013
a6b249a
Merge remote-tracking branch 'upstream/master' into rewrite-transport
Feb 26, 2013
fd397ab
Add support for new API.
Feb 26, 2013
68266d6
Merge branch '42-multiple-elements-initializaiton' into rewrite-trans…
Feb 26, 2013
bdb56e3
Support original API.
Feb 26, 2013
18c2912
Add the example-URL to the readme
tordans Feb 26, 2013
1c095a0
Merge remote-tracking branch 'upstream/integration-0.8.2' into ditch-…
Feb 26, 2013
7632109
Add request cache mock for tests.
Feb 27, 2013
6674bd1
Add tests.
Feb 27, 2013
7a33ab3
Format README.
Feb 27, 2013
77656a5
Work on test suite.
Feb 27, 2013
da0f7bd
fixed typo
adardesign Feb 27, 2013
bffbcae
Merge pull request #60 from adardesign/fixTypo
jharding Feb 27, 2013
a452991
Fix broken link in README.
jharding Mar 3, 2013
720f94c
Escape regex characters when updating hint. Fixes #76.
Mar 3, 2013
ff9d74e
Merge pull request #77 from jharding/76-escape-regex-characters
jharding Mar 3, 2013
6ddbde3
Update CHANGELOG.
Mar 3, 2013
16161af
fix the conrtibutors link in README.md
r4vi Mar 3, 2013
43bee63
Merge remote-tracking branch 'origin/integration-0.8.2'
Mar 4, 2013
e822323
0.8.2
Mar 4, 2013
662156f
Merge branch 'rewrite-transport' of git://github.com/jharding/typeahe…
Mar 4, 2013
f7b55de
Merge branch 'ditch-typeahead-css' of git://github.com/jharding/typea…
Mar 4, 2013
6bef375
Remove typeahead.css from playground.
Mar 4, 2013
7ae19d4
Only apply the transparent gif hack for internet explorer.
Mar 4, 2013
8b91498
Clean up applied styles on destroy.
Mar 4, 2013
fa984f6
Support headers and footers for datasets. Closes #11.
Mar 4, 2013
02edafc
rewrote utils.filter to use $.grep
Mar 5, 2013
b51dc2d
simplified utils.filter further using $.grep
Mar 5, 2013
71b207a
Merge branch 'rewrite_utils_filter' of git://github.com/jaypatelh/typ…
Mar 6, 2013
02311ea
Add comments to specs to section tests.
Mar 6, 2013
daf000f
Trigger typeahead:selected on selection.
Mar 11, 2013
04d8f2a
Trigger typeahead:opened and typeahead:closed.
Mar 11, 2013
f2d9ba8
Fix some input value oddities.
Mar 12, 2013
1c11a94
Inherit input's value on typeahead initialization.
Mar 12, 2013
8d0aeaf
Refactor dataset.
Mar 12, 2013
b29c939
Merge pull request #81 from jharding/11-support-headers-and-footers
jharding Mar 12, 2013
70ffc4e
Merge pull request #109 from jharding/support-default-query-value
jharding Mar 13, 2013
d425204
Merge pull request #108 from jharding/107-fix-input-value-oddities
jharding Mar 13, 2013
d789c4b
Trigger typeahead:initialized.
Mar 13, 2013
56354bb
Change behavior of autocomplete. Closes #49.
Mar 13, 2013
101d81c
Hide headers and footers when the dataset contains no suggestions.
Mar 13, 2013
16e888c
Merge pull request #113 from jharding/hide-headers-and-footers-when-n…
jharding Mar 13, 2013
7fd872d
Merge pull request #110 from jharding/dataset-refactor
jharding Mar 13, 2013
6fcd112
Merge pull request #112 from jharding/49-change-behavior-of-autocomplete
jharding Mar 14, 2013
2da2670
Merge branch '68-trigger-custom-events' of git://github.com/jharding/…
Mar 14, 2013
f808b04
Don't cache unnamed datasets. Fixes #111.
Mar 14, 2013
66a39c1
Make value key configurable and remove ranking code. Closes #61.
Mar 14, 2013
7f2aeea
Defer on triggering typeahead:initialized.
Mar 14, 2013
f57178e
Merge pull request #117 from jharding/defer-on-triggering-initialized
jharding Mar 14, 2013
eac8d31
Merge pull request #115 from jharding/61-configurable-value-key
jharding Mar 15, 2013
6aa3da3
Merge branch '111-dont-cache-unnamed-datasets' of git://github.com/jh…
Mar 15, 2013
88b09b1
Fix remote bug introduced by #115.
Mar 16, 2013
49b5e48
Merge pull request #121 from jharding/115-fix
jharding Mar 22, 2013
2c41d7b
Merge branch 'readme-0.9.0' of git://github.com/jharding/typeahead.js…
Mar 24, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ For more information on semantic versioning, please visit http://semver.org/.
* Fixed bug causing error to be thrown when initializing a typeahead on multiple elements. [#51][51]
* Tokens with falsy values are now filtered out – was causing wonky behavior. [#75][75]
* No longer making remote requests for blank queries. [#74][74]
* Datums with regex characters in their value no longer cause errors. [#77][77]
* Now compatible with the Closure Compiler. [#48][48]
* Reference to jQuery is now obtained through window.jQuery, not window.$. [#47][47]
* Added a plugin method for destroying typeaheads. Won't be documented until v0.9 and might change before then. [#59][59]
Expand All @@ -46,6 +47,7 @@ For more information on semantic versioning, please visit http://semver.org/.
* Share datasets (and caching) between multiple inputs.
* And much, much more...

[77]: https://github.com/twitter/typeahead.js/pull/77
[75]: https://github.com/twitter/typeahead.js/pull/75
[74]: https://github.com/twitter/typeahead.js/pull/74
[59]: https://github.com/twitter/typeahead.js/pull/59
Expand Down
64 changes: 15 additions & 49 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
var semver = require('semver'),
f = require('util').format,
jsFiles = [
'src/js/version.js',
'src/js/utils.js',
'src/js/event_target.js',
'src/js/persistent_storage.js',
'src/js/request_cache.js',
'src/js/transport.js',
'src/js/dataset.js',
'src/js/input_view.js',
'src/js/dropdown_view.js',
'src/js/typeahead_view.js',
'src/js/typeahead.js'
'src/version.js',
'src/utils.js',
'src/event_target.js',
'src/event_bus.js',
'src/persistent_storage.js',
'src/request_cache.js',
'src/transport.js',
'src/dataset.js',
'src/input_view.js',
'src/dropdown_view.js',
'src/typeahead_view.js',
'src/typeahead.js'
];

module.exports = function(grunt) {
Expand All @@ -28,41 +29,13 @@ module.exports = function(grunt) {
' */\n\n'
].join('\n'),

less: {
css: {
src: 'src/css/typeahead.css',
dest: '<%= buildDir %>/typeahead.css'
},
cssmin: {
options: { yuicompress: true },
src: 'src/css/typeahead.css',
dest: '<%= buildDir %>/typeahead.min.css'
}
},

concat: {
css: {
options: {
banner: '<%= banner %>',
stripBanners: true
},
src: '<%= less.css.dest %>',
dest: '<%= less.css.dest %>'
},
cssmin: {
options: {
banner: '<%= banner %>',
stripBanners: true
},
src: '<%= less.cssmin.dest %>',
dest: '<%= less.cssmin.dest %>'
},
js: {
src: ['src/js/intro.js', jsFiles, 'src/js/outro.js'],
src: ['src/intro.js', jsFiles, 'src/outro.js'],
dest: '<%= buildDir %>/typeahead.js'
},
jsmin: {
src: ['src/js/intro.js', jsFiles, 'src/js/outro.js'],
src: ['src/intro.js', jsFiles, 'src/outro.js'],
dest: '<%= buildDir %>/typeahead.min.js'
}
},
Expand Down Expand Up @@ -111,10 +84,6 @@ module.exports = function(grunt) {
js: {
files: jsFiles,
tasks: 'build:js'
},
css: {
files: '<%= less.css.src %>',
tasks: 'build:css'
}
},

Expand Down Expand Up @@ -252,9 +221,7 @@ module.exports = function(grunt) {
// -------

grunt.registerTask('default', 'build');
grunt.registerTask('build', ['build:js', 'build:css']);
grunt.registerTask('build:js', ['concat:js', 'concat:jsmin', 'sed:version', 'uglify']);
grunt.registerTask('build:css', ['less', 'concat:css', 'concat:cssmin']);
grunt.registerTask('build', ['concat:js', 'concat:jsmin', 'sed:version', 'uglify']);
grunt.registerTask('server', 'connect:server');
grunt.registerTask('lint', 'jshint');
grunt.registerTask('test', 'jasmine:js');
Expand All @@ -267,7 +234,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-sed');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-parallel');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-uglify');
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ Other methods:

**Note:** typeahead.js has a dependency on [jQuery][jquery] 1.9+, it must be loaded before *typeahead.js*.

Examples
--------

For some working examples of typeahead.js, visit our [examples page][examples].

Features
--------

Expand Down Expand Up @@ -303,7 +308,7 @@ Thanks for assistance and contributions:
* [@paulirish](https://github.com/paulirish)
* [@sindresorhus](https://github.com/sindresorhus)
* [@thisguy](https://twitter.com/thisguy)
* [And many others!](contributors)
* [And many others!][contributors]

License
-------
Expand All @@ -312,8 +317,9 @@ Copyright 2013 Twitter, Inc.

Licensed under the MIT License

[gh-page]: http://twitter.github.com/typeahead.js
[twitter]: https://twitter.com
[gh-page]: http://twitter.github.com/typeahead.js
[examples]: http://twitter.github.com/typeahead.js/examples
[@typeahead]: https://twitter.com/typeahead

<!-- assets -->
Expand Down
5 changes: 2 additions & 3 deletions component.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"name": "typeahead.js",
"version": "0.8.1",
"version": "0.8.2",
"main": [
"dist/typeahead.css",
"dist/typeahead.js"
],
"dependencies": {
"jquery": "~1.9"
}
}
}
72 changes: 0 additions & 72 deletions dist/typeahead.css

This file was deleted.

Loading