Commit Graph

1240 Commits

Author SHA1 Message Date
Juho Teperi 4aaff8f2f7 Update figwheel 2018-05-21 13:17:13 +03:00
Juho Teperi 131ba25557
Merge pull request #375 from cloojure/patch-2
Update ManagingState.md
2018-05-18 09:15:20 +03:00
Juho Teperi 8b335c050c
Merge pull request #374 from cloojure/patch-1
Update WhenDoComponentsUpdate.md
2018-05-18 09:14:40 +03:00
Alan Thompson 73b6912362
Update ManagingState.md
small typo
2018-05-17 17:37:06 -04:00
Alan Thompson 6136ec5e09
Update WhenDoComponentsUpdate.md
small typo
2018-05-17 17:18:12 -04:00
Juho Teperi 972c3e2c5d Add tag filter for test job to enable tag builds 2018-05-17 09:06:54 +03:00
Juho Teperi 33cc4e7a80 Try fixing docs/master build 2018-05-17 08:59:18 +03:00
Juho Teperi bc42a0f0e8 Add news entry 2018-05-15 19:00:09 +03:00
Juho Teperi af14a520b2 Release 0.8.1 2018-05-15 18:58:39 +03:00
Juho Teperi 86f622a9f9
Update CHANGELOG.md 2018-05-04 19:32:56 +03:00
Juho Teperi 79c5f13ab4
Merge pull request #373 from reagent-project/danielcompton-not=-throwing
Handle not= exception
2018-05-04 19:30:26 +03:00
Juho Teperi fe4f348f12 Test not= exception for dev builds only
Logging is not enabled for optimized builds
2018-05-04 19:25:34 +03:00
Juho Teperi b0c70e380e Update CHANGELOG.md 2018-05-04 19:21:05 +03:00
Juho Teperi c8cc7f996b Add test case for not= exception handling
Test case adapted from code by atroche: https://github.com/reagent-project/reagent/pull/344#issuecomment-384882866
2018-05-04 19:18:51 +03:00
Juho Teperi 5c85e01847 Merge branch 'not=-throwing' of https://github.com/danielcompton/reagent into danielcompton-not=-throwing 2018-05-04 19:07:48 +03:00
Juho Teperi 41ef62f38b
Merge pull request #372 from reagent-project/feature/context-tests
Feature/context tests
2018-05-04 19:02:43 +03:00
Juho Teperi 5892174a12 Workaround for browser-npm minified error 2018-05-04 18:58:05 +03:00
Juho Teperi 892635d265 Update CHANGELOG.md 2018-05-04 18:51:49 +03:00
Juho Teperi 60f7b4bc0c Remove :> component type assertion
Component could be plain JS object with some private React properties,
and it is not easy to check for this. Instead just allow all value for
:> but check that React will throw error from createElement.

Fixes #369
2018-05-04 18:47:45 +03:00
Juho Teperi 0c0ffc626a Context default value is for cases without provider 2018-05-04 18:14:48 +03:00
Juho Teperi cb02310b68 Add tests for new React context 2018-05-04 17:52:12 +03:00
Juho Teperi f5cb24cafc Update React deps 2018-05-04 17:51:51 +03:00
Juho Teperi b5e60e8c52
Merge pull request #368 from reagent-project/class-fixes
Class fixes
2018-05-04 16:18:22 +03:00
Juho Teperi e1019a1c9c Check if value is named before calling name 2018-05-04 16:10:41 +03:00
Juho Teperi d592335612 Update CHANGELOG.md 2018-04-27 23:21:32 +03:00
Juho Teperi 606b321d2f Fix keywords and symbols in :class
Fixes #367
2018-04-27 23:20:52 +03:00
Juho Teperi 4a8ac5cd83 Fix problem with custom HTML element property name code
Custom HTML element property name code accidentally modified cache
object for normal HTML elements, which can cause Reagent to lose correct
mappings for properties like className, htmlFor and charSet.
2018-04-27 23:17:25 +03:00
Juho Teperi fe2f82d032 Switch back to :cljsbuild :builds vector, for figwheel
Figwheel will default to first dev build.
2018-04-27 22:21:22 +03:00
Juho Teperi 1b1b124d8c
Merge pull request #366 from stask/master
typo in cljs version number
2018-04-23 12:30:38 +03:00
stask 9c5d17c127
typo in cljs version number 2018-04-23 11:09:59 +03:00
Juho Teperi 9c9825c289 Refactor template code
- Use two types to store native and hiccup data
- Rename comp to component so cljs.core/comp is not shadowd
- Use className instead of class property
- Rename name property to tag
- Use static properties for React key

Use of static properties in this and other commits shrinks test-suite
output size by 2-3kB.
2018-04-19 19:45:13 +03:00
Juho Teperi 7482b2821e Fix cached-custom-prop-name 2018-04-19 19:44:29 +03:00
Juho Teperi afd422615b Style fix 2018-04-19 19:38:37 +03:00
Juho Teperi 2e11ccc85b Use map to apply as-element in expand-seq 2018-04-19 19:38:24 +03:00
Juho Teperi 633122e8ee Fix cljsRatom 2018-04-19 19:37:32 +03:00
Juho Teperi 14256cd487 Fix componentQueue 2018-04-19 19:37:07 +03:00
Juho Teperi 239f03b3da Use static property for reagReactionCache 2018-04-19 19:36:14 +03:00
Juho Teperi f2622f1544 Use unchecked-aget/aset in with-let macro 2018-04-19 19:35:40 +03:00
Juho Teperi b8f80f56f9 Use checked-arrays for all test builds 2018-04-19 19:35:06 +03:00
Juho Teperi a2eed46ea1 Fixes 2018-04-19 17:26:24 +03:00
Juho Teperi b7304d0f3f Fix aget/aset use with objects
This removes the interop macros which used aget/aset and prevented
Closure naming mangling, now normal property and method access is used
where possible, and goog.object used when using variable keys. Further
testing is needed to ensure this works correctly with Closure, as there
are some properties that are used with goog.object in one place, and as
property in another.

Fixes #324
2018-04-19 17:25:37 +03:00
Juho Teperi 1c5d361070
Merge pull request #365 from reagent-project/cljs-options
Fix and optimize Cljs compiler options
2018-04-19 17:05:50 +03:00
Juho Teperi 2f954302f6 Release 0.8.0 2018-04-19 16:59:25 +03:00
Juho Teperi 0be1551b8c Move cljs dependency to dev profile
Direct dependency to ClojureScript can add ClojureScript to uberjar,
when Reagent is used by a library (transitively, on Lein uberjar
profile) or application.
2018-04-17 20:59:20 +03:00
Juho Teperi 6e5356d8b9 Fix and optimize Cljs compiler options
- Enable aot-cache for all builds
- :source-map true is default, no need to set here
- Disable figwheel config validation for now
- Move prerender namespace, which uses built-in Node modules, to
separate folder to ensure this is not part of other builds.
- Use single source-path folder for Cljs to ensure less files are
compiled.
2018-04-17 20:24:41 +03:00
Juho Teperi a4f239104c Fix 2018-04-16 20:58:19 +03:00
Juho Teperi ad96d3cbbd Ensure prerender code is not evaluated during tests 2018-04-16 20:50:32 +03:00
Juho Teperi fddedf4143 Use md5 hash for demo site cache busting instead of build timestamp 2018-04-16 20:41:41 +03:00
Juho Teperi 1ebe5e978b Fix tagged doc update trigger 2018-04-16 20:04:57 +03:00
Juho Teperi 63b7430338 Use cache and install npm deps on circle update-sit job 2018-04-16 20:04:35 +03:00